Readonly
entityReadonly
typeStatic
Readonly
componentThe equipment slot. e.g. "head", "chest", "offhand"
Returns the item equipped to the given EquipmentSlot. If empty, returns undefined.
The equipment slot. e.g. "head", "chest", "offhand".
Returns the ContainerSlot corresponding to the given EquipmentSlot.
The equipment slot. e.g. "head", "chest", "offhand".
Optional
itemStack: ItemStackThe item to equip. If undefined, clears the slot.
Provides access to a mob's equipment slots. This component exists for all mob entities.
Example: givePlayerElytra.ts
Example: VERY_IMPORTANT.js
Example: clearOffhand.ts
Example: getMainhandSlot.js