Skip to content

Spawn Item

Packet IDDirectionMojang NameMCP Name
0x15ClientboundAddItemEntityPacketPacket21PickupSpawn

Sent to the client when an item entity should be spawned. The position and rotation are in entity space.

The sent velocity values are multiplied by 128 before being sent out. The client undoes this multiplication.

The velocity values are capped between -1.00 (-128/128) and +0.99 (+127/128), as they're sent as signed bytes.

Clientbound

FieldTypeDescription
Entity IDIntegerThe ID of the entity that will refer to this item
Item IDShortThe ID of the item
Item AmountByteThe quantity of items
Item MetadataShortThe metadata value
XIntegerThe X position of the item entity (Quantized)
YIntegerThe Y position of the item entity (Quantized)
ZIntegerThe Z position of the item entity (Quantized)
X VelocityByteVelocity on the X axis (Quantized)
Y VelocityByteVelocity on the Y axis (Quantized)
Z VelocityByteVelocity on the Z axis (Quantized)

Example Packet

FieldValue
Entity ID1298
Item ID17 (Log)
Item Quantity1
Item Metadata0 (Oak Log)
X5669 (177.15)
Y2176 (68.0)
Z-5325 (-166.40)
X Velocity-9 (-0.07)
Y Velocity25 (0.19)
Z Velocity-1 (-0.00)