Item components in @minecraft/server.
17 pages in @minecraft/server.
Classes
Section titled “Classes”
ItemComponent ClassWhat every item component has.
ItemCooldownComponent ClassAn item's cooldown: once used, items of its category wait before they can be used again.
ItemDurabilityComponent ClassHow worn an item with durability is.
ItemDyeableComponent ClassA leather item's dye.
ItemEnchantableComponent ClassThe enchantments on an item that takes them.
ItemFoodComponent ClassWhat eating a food gives.
ItemInventoryComponent ClassThe slots inside an item: a shulker box's 27.
ItemPotionComponent ClassThe potion a potion, splash potion or lingering potion holds.
Interfaces
Section titled “Interfaces”Typed only
Section titled “Typed only”Declared so plugins written against the full Mojang API type-check. Most are not backed by Basalt yet.