Skip to content
mc-protocol
Esc
↑↓navigate↵open⌘Jpreview
On this page

Set Equipment

Play 0x66, server → client.

play · 0x66 · clientbound (server → client)

Sets the items an entity holds or wears in the given equipment slots (hands, armor, body). The server sends it when a tracked entity’s equipment changes and when the entity comes into view. The client updates the rendered equipment.

Sent by the server, read by the client. Listen for it with client.on("SetEquipment", (data) => …) on the receiving side.

Fields

Field Type Notes
entityId VarInt
equipments Array

Send it

await client.sendPacket("SetEquipment", {
  entityId: /* VarInt */,
  equipments: /* Array */,
});

Field aliases listed under Notes are accepted as alternative keys when writing.

Source: src/Core/Versions/776/Packets/play/clientbound/SetEquipment.ts

Was this page helpful?