Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Extends
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.
Properties
count
read-only count: minecraftcommon.NumberRange;
The stack size, or count, required for this condition to pass.
Type: @minecraft/common.NumberRange
durability
read-only durability: minecraftcommon.NumberRange;
The durability value required for this condition to pass.
Type: @minecraft/common.NumberRange
enchantments
read-only enchantments: EnchantInfo[];
Array of enchantments required for this condition to pass.
Type: EnchantInfo[]
itemName
read-only itemName: string;
The name of the tool item required for this condition to pass.
Type: string
itemTagsAll
read-only itemTagsAll: string[];
Array of item tags which ALL must be matched for this condition to pass.
Type: string[]
itemTagsAny
read-only itemTagsAny: string[];
Array of item tags, from which at least 1 must be matched for this condition to pass.
Type: string[]
itemTagsNone
read-only itemTagsNone: string[];
Array of item tags, from which exactly zero must match for this condition to pass.
Type: string[]