Entity Position and Look

Packet ID Direction
0x22 Clientbound

Clientbound

Sent to the client to set an entity’s position absolutely. Usually sent when an entity moves more than 4 blocks, as the position data is in entity space. Rotation data is also quantized.

Field Type Description
Entity ID Integer The ID of the entity that should be moved
X Integer The X position of the player (Quantized)
Y Integer The Y position of the player (Quantized)
Z Integer The Z position of the player (Quantized)
Yaw Byte Rotation on the X Axis (Quantized)
Pitch Byte Rotation on the Y Axis (Quantized)

Example Packets

Clientbound

TODO: Provide integer example for these numbers

Field Value
Entity ID 1298
X 5669.064
Y 68.4
Z -5325.32
Yaw 22.4
Pitch 12.68