---
title: Move Entity Rot
description: "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

```ts
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`](https://github.com/GDLev/mc-protocol/blob/master/src/Core/Versions/776/Packets/play/clientbound/MoveEntityRot.ts)
