Move Vehicle (clientbound)
Play 0x39, server → client.
play · 0x39 · clientbound (server → client)
Sets the absolute position and rotation of the vehicle the player is riding. The server sends it to correct the vehicle when the client’s serverbound MoveVehicle is rejected or when the vehicle is moved by the server. The client moves its vehicle to the given position.
Sent by the server, read by the client. Listen for it with client.on("MoveVehicle", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
x |
Double | |
y |
Double | |
z |
Double | |
yaw |
Float | |
pitch |
Float |
Send it
await client.sendPacket("MoveVehicle", {
x: /* Double */,
y: /* Double */,
z: /* Double */,
yaw: /* Float */,
pitch: /* Float */,
});
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/play/clientbound/MoveVehicle.ts