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

Move Entity Rot

Play 0x38, server → client.

play · 0x38 · clientbound (server → client)

Sets the yaw and pitch of the entity entityId without moving it. The server sends it when an entity only rotates. The client updates the entity’s body rotation.

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

Fields

Field Type Notes
entityId VarInt
yaw Byte
pitch Byte
onGround Boolean

Send it

await client.sendPacket("MoveEntityRot", {
  entityId: /* VarInt */,
  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/MoveEntityRot.ts

Was this page helpful?