Set Passengers
Play 0x6B, server → client.
play · 0x6B · clientbound (server → client)
Sets the full list of entities riding on entityId. The server sends it when a passenger mounts or dismounts. The client positions passengers relative to the vehicle and, if the local player is included, enters riding mode.
Sent by the server, read by the client. Listen for it with client.on("SetPassengers", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
entityId |
VarInt | |
passengers |
Array |
Send it
await client.sendPacket("SetPassengers", {
entityId: /* VarInt */,
passengers: /* Array */,
});
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/play/clientbound/SetPassengers.ts