Entity paper/entity_equipment

Entity Equipment

Gets or sets an equipment slot on a living entity (armour, held item, etc.).

Note: Use the Create Item node to build an ItemStack to equip. Both the input and output use the item_stack type for full item data (name, lore, enchantments, etc.).

Inputs

NameTypeOptionalDescription
exec exec Incoming execution.
entity entity The living entity.
item item_stack Item to equip (leave disconnected to only get).
slot string Slot name override.

Outputs

NameTypeDescription
exec exec Continues after the operation.
item item_stack Item currently in the slot.

Properties

KeyTypeDefaultDescription
slot string "HAND" HAND, OFF_HAND, HEAD, CHEST, LEGS, or FEET.

Examples

Equip zombie with iron sword

Give a spawned zombie an iron sword.

  1. Spawn Entity → entity → Entity Equipment
  2. Create Item (IRON_SWORD) → item → Entity Equipment
  3. Set Slot to HAND