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

Rotate Head

Play 0x53, server → client.

play · 0x53 · clientbound (server → client)

Sets the head yaw of an entity. The server sends it whenever a tracked entity’s head rotation changes. The client uses it for head rendering independent of body rotation.

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

Fields

Field Type Notes
entityId VarInt
headYaw Byte

Send it

await client.sendPacket("RotateHead", {
  entityId: /* VarInt */,
  headYaw: /* Byte */,
});

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

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

Was this page helpful?