Skip to content

Inventory Contents

Packet IDDirectionMojang NameMCP Name
0x68ClientboundContainerSetContentPacketPacket104WindowItems

Clientbound

Sent to the client to show the contents of inventories

FieldTypeDescription
Window IDByteThe incremental ID of the window. Ranges from 0 to 99
Payload SizeShortThe number of slots in the inventory
Payload*The inventory data

The Payload is a list which describes the items in the sent inventory.

FieldTypeDescription
IDShortThe ID of the item
AmountByteThe quantity of the item (only added if ID > -1)
MetadataShortThe metadata value of the item (only added if ID > -1)

Example Packet

Clientbound

FieldValue
Window ID0
Payload Size45

Repeat the following 45 Times

FieldValue
ID17 (Log)
Count42
Damage1 (Spruce Log)

This would show up as an inventory full of Birch Logs.