---
title: Set Border Center
description: "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

```ts
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`](https://github.com/GDLev/mc-protocol/blob/master/src/Core/Versions/776/Packets/play/clientbound/SetBorderCenter.ts)
