For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/MatchToolCondition.md.

Class: MatchToolCondition

Beta

用于检查是否使用合适的工具触发战利品事件的战利品物品条件。可以描述要比较的物品类型、数量、耐久度、附魔或物品标签数组。

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.

Extends

Properties

count

readonly count: NumberRange

Beta

此条件通过所需的堆叠大小或数量。

Remarks

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


durability

readonly durability: NumberRange

Beta

此条件通过所需的耐久度值。

Remarks

The durability value required for this condition to pass.


enchantments

readonly enchantments: EnchantInfo[]

Beta

此条件通过所需的附魔数组。

Remarks

Array of enchantments required for this condition to pass.


itemName

readonly itemName: string

Beta

此条件通过所需的工具物品名称。

Remarks

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


itemTagsAll

readonly itemTagsAll: string[]

Beta

此条件通过必须全部匹配的物品标签数组。

Remarks

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


itemTagsAny

readonly itemTagsAny: string[]

Beta

此条件通过至少需要匹配一个的物品标签数组。

Remarks

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


itemTagsNone

readonly itemTagsNone: string[]

Beta

此条件通过需要恰好零个匹配的物品标签数组。

Remarks

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