---
title: Player Look At
description: "Play 0x47, server → client."
---

`play` · `0x47` · **clientbound** (server → client)

Makes the client rotate its player to face a point or an entity. The server sends it for the `/tp ... facing` command. `feet_eyes` selects which anchor of the player is aimed; if `isEntity` is set the target is `entityId` with its own anchor `entity_feet_eyes`.

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

## Fields

| Field | Type | Notes |
|---|---|---|
| `feet_eyes` | VarInt |  |
| `x` | Double |  |
| `y` | Double |  |
| `z` | Double |  |
| `isEntity` | Boolean |  |
| `entityId` | Struct |  |
| `entity_feet_eyes` | Struct |  |

## Send it

```ts
await client.sendPacket("PlayerLookAt", {
  feet_eyes: /* VarInt */,
  x: /* Double */,
  y: /* Double */,
  z: /* Double */,
  isEntity: /* Boolean */,
  entityId: /* Struct */,
  entity_feet_eyes: /* Struct */,
});
```

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

Source: [`src/Core/Versions/776/Packets/play/clientbound/PlayerLookAt.ts`](https://github.com/GDLev/mc-protocol/blob/master/src/Core/Versions/776/Packets/play/clientbound/PlayerLookAt.ts)
