Skip to content

Player Position and Rotation

Packet IDDirectionMojang NameMCP Name
0x0DBothMovePlayerPacket.PosRotPacket13PlayerLookMove

Clientbound

Sent to the client when the player is teleported and their view direction needs to be defined.

FieldTypeDescription
XDoubleThe X position of the player
YDoubleThe Y position of the player
Camera YDoubleThe Y position of the player camera
ZDoubleThe Z position of the player
YawFloatAbsolute rotation on the X Axis, in degrees
PitchFloatAbsolute rotation on the Y Axis, in degrees
On GroundBooleanSee note on Player Movement Packet page

Serverbound

Sent to the server when the player is moving and looking around.

FieldTypeDescription
XDoubleThe X position of the player
Camera YDoubleThe Y position of the player camera
YDoubleThe Y position of the player
ZDoubleThe Z position of the player
YawFloatAbsolute rotation on the X Axis, in degrees
PitchFloatAbsolute rotation on the Y Axis, in degrees
On GroundBooleanSee note on Player Movement Packet page

WARNING

The ordering between server- and clientbound is different! This is not some copy-paste accident on the Wikis part but a client-side bug.

This error(?) is also present in the standalone Player Position packet.

Example Packets

FieldValue
X5669.06
Y68.4
Camera Y70.02
Z-5325.32
Yaw22.4f
Pitch12.68f
On Groundtrue