Skip to main content

Drop Item Stack

This packet is sent when the player drops an item stack by dragging it outside of their inventory.

  • ID: 0x21 (33)
  • Size: 12 bytes
  • LZ4 Compressed: Yes
  • State: Playing
  • Bound To: Client -> Server

Structure

OffsetField NameField TypeNotes
0x00Container IDbe u32The amount of items to drop.
0x04Slotbe u32The index of slot in the container the item stack to drop is located in.
0x08Quantitybe u32The ID of the container the item stack to drop is in.
note

In this packet, the slot and quantity are stored as 32 bit integers, while in other packets they are stored as 16 bit integers.

Validation

If the quantity to drop is higher than the amount of items in the container slot, no items are dropped.

If the quantity to drop is zero, the container does not exist, or the slot does not exist, nothing happens.