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

Set Border Center

Play 0x58, server → client.

play · 0x58 · clientbound (server → client)

Sets the center of the world border to x, z. The server sends it when the border center changes. The client updates the rendered border.

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

Fields

Field Type Notes
x Double
z Double

Send it

await client.sendPacket("SetBorderCenter", {
  x: /* Double */,
  z: /* Double */,
});

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

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

Was this page helpful?