ReadonlytypeStatic ReadonlycomponentThe equipment slot. e.g. "head", "chest", "offhand"
Returns the item equipped to the given EquipmentSlot. If empty, returns undefined.
Gets the equipped item for the given EquipmentSlot.
This function can't be called in read-only mode.
The equipment slot. e.g. "head", "chest", "offhand".
OptionalitemStack: ItemStackThe item to equip. If undefined, clears the slot.
Replaces the item in the given EquipmentSlot.
This function can't be called in read-only mode.
Provides access to a mob's equipment slots. This component exists for all mob entities.