Skip to content

Entity Relative Position

Packet IDDirectionMojang NameMCP Name
0x1FClientboundMoveEntityPacket.PosPacket31RelEntityMove

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. As the position data is in entity space it is 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)

Example Packets

Clientbound

FieldValue
Entity ID1298
X5 (0.15)
Y2 (0.06)
Z15 (0.46)