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

Move Player Rot

Play 0x20, client → server.

play · 0x20 · serverbound (client → server)

Updates only the player’s rotation. yaw and pitch are in degrees; flags contains on-ground and horizontal-collision bits. Sent when the player turns without moving.

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

Fields

Field Type Notes
yaw Float
pitch Float
flags MovementFlags

Send it

await client.sendPacket("MovePlayerRot", {
  yaw: /* Float */,
  pitch: /* Float */,
  flags: /* MovementFlags */,
});

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

Source: src/Core/Versions/776/Packets/play/serverbound/MovePlayerRot.ts

Was this page helpful?