The MatchToolCondition class in @minecraft/server.
Class in @minecraft/server
Extends LootItemCondition
import { MatchToolCondition } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”read-only
readonly count: NumberRange;Types
durability
Section titled “durability”read-only
readonly durability: NumberRange;Types
enchantments
Section titled “enchantments”read-only
readonly enchantments: EnchantInfo[];Types
itemName
Section titled “itemName”read-only
readonly itemName: string;itemTagsAll
Section titled “itemTagsAll”read-only
readonly itemTagsAll: string[];itemTagsAny
Section titled “itemTagsAny”read-only
readonly itemTagsAny: string[];itemTagsNone
Section titled “itemTagsNone”read-only
readonly itemTagsNone: string[];