Skip to content

Spawn Player Entity

Packet IDDirectionMojang NameMCP Name
0x14ClientboundAddPlayerPacketPacket20NamedEntitySpawn

Sent to the client when a player entity should be spawned. The position is in block space, while the angles are quantized.

Clientbound

FieldTypeDescription
Entity IDIntegerThe ID of the entity that will refer to this player
UsernameString16The username. Maximum of 16 characters!
XIntegerThe X block position of the player
YIntegerThe Y block position of the player
ZIntegerThe Z block position of the player
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 an entity equipment packet. Read up on proper usage of this packet on the relevant behavior page!

Example Packet

FieldValue
Entity ID1298
UsernamePixelBrushArt
X5
Y2
Z15
Yaw16 (22.58)
Pitch9 (12.70)
Held item256 (Iron Shovel)