Where an item is worn or held, for EntityEquippableComponent.
Enum in @minecraft/server
Where an item is worn or held, for EntityEquippableComponent.
import { EquipmentSlot } from '@minecraft/server';Example
Section titled “Example”import { EquipmentSlot } from '@minecraft/server';
const value: EquipmentSlot = EquipmentSlot.Body;console.log(value); // "Body"import { EquipmentSlot } from '@minecraft/server';
const value = EquipmentSlot.Body;console.log(value); // "Body"Values
Section titled “Values”| Name | Value | Description |
|---|---|---|
Body |
"Body" |
A mob’s alone, such as a wolf’s armour; a player’s throws. |
Chest |
"Chest" |
|
Feet |
"Feet" |
|
Head |
"Head" |
|
Legs |
"Legs" |
|
Mainhand |
"Mainhand" |
The hotbar slot held. |
Offhand |
"Offhand" |
Used by
Section titled “Used by”EntityEquippableComponent.getEquipment, EntityEquippableComponent.getEquipmentSlot, EntityEquippableComponent.setEquipment