Packet 31
MobEquipmentPacket
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.
HeaderID 31varuint
0Target Runtime IDActorRuntimeID · variable
1ItemNetworkItemStackDescriptor · variable
2Slotuint8 · 1 byte
3Selected Slotuint8 · 1 byte
4Container IDuint8 · 1 byte
Serialized fields
5 top-level fields0Target Runtime IDRuntime ID of the mob or player whose equipment is changing.ActorRuntimeID
- 0Actor Runtime IDCompression
varuint64
- 1ItemThe item stack being equipped. Send an empty descriptor to indicate no item.NetworkItemStackDescriptor
- 2SlotThe inventory slot index the item occupies within the container.Compression
uint8 - 3Selected SlotThe hotbar slot that is currently selected by the player. Matches Slot for non-player mobs.Compression
uint8 - 4Container IDIdentifies which container the item belongs to, e.g. inventory or offhand.Compression
uint8
Changelog
Stable releases
Changes between stable protocol releases.
No stable release changes are recorded for this packet.
All builds
Changes between consecutive stable releases and preview builds.
No changes are recorded for this packet.