Skip to content

Entity Relative Position and Look

Packet IDDirectionMojang NameMCP Name
0x21ClientboundMoveEntityPacket.PosRotPacket33RelEntityMoveLook

Clientbound

Sent to the client to set an entity's position relative to the clients previous position. Usually sent when an entity has moved less than 4 blocks. Position and rotation data is in entity space and thus quantized.

FieldTypeDescription
Entity IDIntegerThe ID of the entity that should be moved
XByteThe X position of the player (Quantized)
YByteThe Y position of the player (Quantized)
ZByteThe Z position of the player (Quantized)
YawByteRotation on the X Axis (Quantized)
PitchByteRotation on the Y Axis (Quantized)

Example Packets

Clientbound

FieldValue
Entity ID1298
X5 (0.15)
Y2 (0.06)
Z15 (0.46)
Yaw16 (22.58)
Pitch9 (12.70)