The components an ItemStack can have, by id.
Interface in @minecraft/server
The components an ItemStack can have, by id.
import type { ItemComponentTypeMap } from '@minecraft/server';Properties
Section titled “Properties”durability
Section titled “durability”durability: ItemDurabilityComponent;minecraft:durability
Section titled “minecraft:durability”"minecraft:durability": ItemDurabilityComponent;enchantable
Section titled “enchantable”enchantable: ItemEnchantableComponent;minecraft:enchantable
Section titled “minecraft:enchantable”"minecraft:enchantable": ItemEnchantableComponent;cooldown
Section titled “cooldown”cooldown: ItemCooldownComponent;minecraft:cooldown
Section titled “minecraft:cooldown”"minecraft:cooldown": ItemCooldownComponent;food: ItemFoodComponent;Types
minecraft:food
Section titled “minecraft:food”"minecraft:food": ItemFoodComponent;Types
dyeable
Section titled “dyeable”dyeable: ItemDyeableComponent;Types
minecraft:dyeable
Section titled “minecraft:dyeable”"minecraft:dyeable": ItemDyeableComponent;Types
potion
Section titled “potion”potion: ItemPotionComponent;Types
minecraft:potion
Section titled “minecraft:potion”"minecraft:potion": ItemPotionComponent;Types
inventory
Section titled “inventory”inventory: ItemInventoryComponent;minecraft:inventory
Section titled “minecraft:inventory”"minecraft:inventory": ItemInventoryComponent;