Script API - v1.21.120.21
    Preparing search index...

    Class MatchToolConditionBeta

    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)

    Index

    Constructors

    Properties

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

    This property can't be read in early-execution mode.

    durability: NumberRange

    The durability value required for this condition to pass.

    This property can't be read in early-execution mode.

    enchantments: EnchantInfo[]

    Array of enchantments required for this condition to pass.

    This property can't be read in early-execution mode.

    itemName: string

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

    This property can't be read in early-execution mode.

    itemTagsAll: string[]

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

    This property can't be read in early-execution mode.

    itemTagsAny: string[]

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

    This property can't be read in early-execution mode.

    itemTagsNone: string[]

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

    This property can't be read in early-execution mode.