Skip to content

Spawn Object

Packet IDDirectionMojang NameMCP Name
0x17ClientboundAddEntityPacketPacket23VehicleSpawn

Sent to the client when an object entity should be spawned. The position is in entity space. See the Entity Velocity packet for more info on how velocity is sent.

Clientbound

FieldTypeDescription
Entity IdIntegerThe ID of the entity that will refer to this object
Object TypeByteThe type of the object
XIntegerThe X position of the item entity (Quantized)
YIntegerThe Y position of the item entity (Quantized)
ZIntegerThe Z position of the item entity (Quantized)
Owner Entity IdIntegerEntity Id of object owner (Defaults is 0)
Velocity XShortThe initial velocity in the X direction (if Owner Entity Id is > 0)
Velocity YShortThe initial velocity in the Y direction (if Owner Entity Id is > 0)
Velocity ZShortThe initial velocity in the Z direction (if Owner Entity Id is > 0)

Owner Entity Id is always set to be the Entity Id of the entity that spawned/owns the object. This is only used by Arrows and Fireballs. The value defaults to 0 for all other objects.

Example Packet

FieldValue
Entity Id1298
Object Type1 (Boat)
X5669 (177.15)
Y2176 (68.0)
Z-5325 (-166.40)
Owner Entity Id0