Accept Teleportation
Play 0x00, client → server.
play · 0x00 · serverbound (client → server)
Confirms a server-initiated teleport. The client sends the teleportId from the PlayerPosition packet it received. Until the server gets this confirmation it ignores the client’s movement packets, so the client must send it promptly.
Sent by the client, read by the server. Listen for it with client.on("AcceptTeleportation", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
teleportId |
VarInt |
Send it
await client.sendPacket("AcceptTeleportation", {
teleportId: /* VarInt */,
});
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/play/serverbound/AcceptTeleportation.ts