Skip to content

Click Slot ​

Packet IDDirectionMojang NameMCP Name
0x66ServerboundContainerClickPacketPacket102WindowClick

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

Serverbound ​

FieldTypeDescription
Window IDByteThe incremental ID of the window. Ranges from 0 to 99
SlotShortThe ID of the clicked slot. See the inventory page for slot mapping.
Right ClickBooleanIf client right-clicked
Action numberShortThe unique ID for this action (See transaction packet)
ShiftBooleanIf client shift-clicked
Item IDShortThe ID of the clicked item (-1 if empty slot)
Item AmountByteThe quantity of the clicked item (only sent if ID > 0)
Item MetadataShortThe metadata of the clicked item (only sent if ID > 0)

Example Packet ​

FieldValue
Window ID2
Slot22
Right ClickByte0
Action numberShort1
ShiftByte1
Item IDShort50 (Torch)
Item AmountByte63
Item Meta/DamageShort0