Skip to content

Entity Equipment

Packet IDDirectionMojang NameMCP Name
0x05ClientboundSetEquippedItemPacketPacket5PlayerInventory

After an entity has been spawned, this packet may be sent to change the armor and held item of the entity. It is unclear if this packet may be used to equip entities other than players and what the client will do if the inventory slot is not within 0 to 4.

Clientbound

FieldTypeDescription
Entity IDIntegerThe ID of the player/entity
Inventory SlotShort0 for held item, 1 for boots, 2 for leggings, 3 for chestplate, 4 for helmet
Item IDShort-1 to reset the slot to be empty
Item MetadataShortThe metadata value of the item

Example Packet

FieldValue
Entity ID1298
Inventory Slot0 (Hand)
Item ID276 (Diamond Sword)
Item Metadata0