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 block space.

Clientbound

FieldTypeDescription
Entity IdIntegerThe ID of the entity that will refer to this object
Object TypeByteThe type of the object
XIntegerThe X block position of the object
YIntegerThe Y block position of the object
ZIntegerThe Z block position of the object
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
Y68
Z-5325
Owner Entity Id0