Skip to content

Spawn Player ​

Packet IDDirectionMojang NameMCP Name
0x14ClientboundAddPlayerPacketPacket20NamedEntitySpawn

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

Clientbound ​

FieldTypeDescription
Entity IDIntegerThe ID of the entity that will refer to this player
UsernameString16The username. Maximum of 16 characters!
XIntegerThe X position of the player (Quantized)
YIntegerThe Y position of the player (Quantized)
ZIntegerThe Z position of the player (Quantized)
YawByteRotation on the X Axis (Quantized)
PitchByteRotation on the Y Axis (Quantized)
Held itemShortHeld item/block of the player

WARNING

Even though "Held item" can be -1 to represent an empty slot, the client doesn't know how to render held item -1 on other players when they spawn in. As a result, this value must never be lower than 0! This only applies to if this packet is sent in isolation and not immediately followed up by a set equipment packet. Read up on proper usage of this packet on the relevant behavior page!

Example Packet ​

FieldValue
Entity ID1298
UsernamePixelBrushArt
X5669 (177.15)
Y2176 (68.0)
Z-5325 (-166.40)
Yaw16 (22.58)
Pitch9 (12.70)
Held item256 (Iron Shovel)