Skip to content
mc-protocol
Esc
↑↓navigate↵open⌘Jpreview
On this page

Move Entity Pos Rot

Play 0x36, server → client.

play · 0x36 · clientbound (server → client)

Moves the entity entityId by a small relative offset and sets its new yaw and pitch. The server sends it when an entity moves less than 8 blocks and also rotates. The client applies both the delta and the rotation.

Sent by the server, read by the client. Listen for it with client.on("MoveEntityPosRot", (data) => …) on the receiving side.

Fields

Field Type Notes
entityId VarInt
dX Short
dY Short
dZ Short
yaw Byte
pitch Byte
onGround Boolean

Send it

await client.sendPacket("MoveEntityPosRot", {
  entityId: /* VarInt */,
  dX: /* Short */,
  dY: /* Short */,
  dZ: /* Short */,
  yaw: /* Byte */,
  pitch: /* Byte */,
  onGround: /* Boolean */,
});

Field aliases listed under Notes are accepted as alternative keys when writing.

Source: src/Core/Versions/776/Packets/play/clientbound/MoveEntityPosRot.ts

Was this page helpful?