@minecraft
    正在准备搜索索引...

    类 MatchToolCondition实验性

    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.

    层级 (查看层级一览)

    索引

    属性

    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.