Loot item condition that checks whether an appropriate tool was used to trigger the loot event. Can describe item type, count, durability, enchantments, or arrays of item tags to compare against.

Hierarchy (View Summary)

Constructors

Properties

The stack size, or count, required for this condition to pass.

durability: NumberRange

The durability value required for this condition to pass.

enchantments: EnchantInfo[]

Array of enchantments required for this condition to pass.

itemName: string

The name of the tool item required for this condition to pass.

itemTagsAll: string[]

Array of item tags which ALL must be matched for this condition to pass.

itemTagsAny: string[]

Array of item tags, from which at least 1 must be matched for this condition to pass.

itemTagsNone: string[]

Array of item tags, from which exactly zero must match for this condition to pass.