Skip to content
mc-protocol
Esc
↑↓navigate↵open⌘Jpreview
On this page

Set Entity Link

Play 0x64, server → client.

play · 0x64 · clientbound (server → client)

Attaches or detaches a lead between an entity and its holder. The server sends it when a leash is attached (vehicleId is the holder) or removed (vehicleId is -1). The client renders the lead.

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

Fields

Field Type Notes
entityId Int
vehicleId Int

Send it

await client.sendPacket("SetEntityLink", {
  entityId: /* Int */,
  vehicleId: /* Int */,
});

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

Source: src/Core/Versions/776/Packets/play/clientbound/SetEntityLink.ts

Was this page helpful?