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

Set Border Size

Play 0x5A, server → client.

play · 0x5A · clientbound (server → client)

Sets the world border diameter immediately. The server sends it when the border size changes without animation.

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

Fields

Field Type Notes
diameter Double

Send it

await client.sendPacket("SetBorderSize", {
  diameter: /* Double */,
});

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

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

Was this page helpful?