Skip to content

Set Inventory Slot

Packet IDDirectionMojang NameMCP Name
0x67ClientboundContainerSetSlotPacketPacket103SetSlot

This packet is sent by the client when an inventory slot is updated. See the inventory page for more information.

Clientbound

FieldTypeDescription
Window IDByteThe incremental ID of the window. Ranges from 0 to 99
SlotShortThe ID of the updated slot. See the inventory page for slot mapping.
Item IDShortThe ID of the new item (-1 if empty slot)
Item AmountByteThe amount of the new item (only sent if ID > 0)
Item MetadataShortThe meta of the new item (only sent if ID > 0)

If both the window ID and slot ID are -1, then the item that's currently held by the mouse is affected.

Example Packet

FieldValue
Window ID2
Slot22
Item IDShort50 (Torch)
Item AmountByte63
Item Meta/DamageShort0