Skip to content
DonutStatsAPI
Sign up
Object

ProductDetails

Enchantments, contents, names and other extras on an item.

Every field is optional and only appears when it applies. More fields may be added, so ignore keys you do not recognise.

Fields

  • enchantmentsEnchantment[]

    Enchantments on the item itself, sorted by id. Left out when there are none.

    Show2 child fields
    • idstring

      Enchantment id without the minecraft: namespace, for example sharpness.

    • levelinteger

      Enchantment level, starting at 1.

  • storedEnchantmentsEnchantment[]

    Enchantments stored in an enchanted book. Left out for every other item.

    Show2 child fields
    • idstring

      Enchantment id without the minecraft: namespace, for example sharpness.

    • levelinteger

      Enchantment level, starting at 1.

  • contentsContainerEntry[]

    What a shulker box holds, one entry per item id with counts added together, largest first.

    Show2 child fields
    • itemstring

      Item id, for example netherite_sword.

    • countinteger

      Total number of that item in the box.

  • customNamestring

    The name shown in game when it differs from the default item name. DonutSMP renames some items, for example Dried Ghast on a skeleton skull.

  • flightDurationinteger

    Flight duration of a firework rocket, from 1 to 3.