Skip to content

Entity Position and Look

Packet IDDirectionMojang NameMCP Name
0x22ClientboundTeleportEntityPacketPacket34EntityTeleport

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. Position and rotation data is in entity space and thus quantized.

FieldTypeDescription
Entity IDIntegerThe ID of the entity that should be moved
XIntegerThe X position of the player (Quantized)
YIntegerThe Y position of the player (Quantized)
ZIntegerThe Z position of the player (Quantized)
YawByteRotation on the X Axis (Quantized)
PitchByteRotation on the Y Axis (Quantized)

Example Packets

Clientbound

FieldValue
Entity ID1298
X5669 (177.15)
Y68 (2.12)
Z-5325 (-166.40)
Yaw16 (22.58)
Pitch9 (12.70)