← Back to Index

MobEquipmentPacket (31)

Mob Equipment. Changes to any mob's held/offhand item are fired from server to client with this packet. Clients also send this to the server when their held slot or its contents change.
Field Name Type Field Index Description
Target Runtime ID (Required) ActorRuntimeID 0 Runtime ID of the mob or player whose equipment is changing.

ActorRuntimeID

Field Name Type Field Index Description
Actor Runtime ID (Required) varuint64 0
Item (Required) NetworkItemStackDescriptor 1 The item stack being equipped. Send an empty descriptor to indicate no item.
Slot (Required) varuint8 2 The inventory slot index the item occupies within the container.
Selected Slot (Required) varuint8 3 The hotbar slot that is currently selected by the player. Matches Slot for non-player mobs.
Container ID (Required) varuint8 4 Identifies which container the item belongs to, e.g. inventory or offhand.