---
title: Teleport To Entity
description: "Play 0x40, client → server."
---

`play` · `0x40` · **serverbound** (client → server)

Spectator teleport by player `uuid`, used when a spectator selects a player in the spectator menu. The server teleports the spectator to that entity, possibly across dimensions.

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

## Fields

| Field | Type | Notes |
|---|---|---|
| `uuid` | UUID |  |

## Send it

```ts
await client.sendPacket("TeleportToEntity", {
  uuid: /* UUID */,
});
```

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

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