Set a World Border on Your Minecraft Server
Limit how far players can travel on your Minecraft server with a world border. Set the size and center, add damage and warnings, and pair it with Chunky on RealisticNode.
A world border is the wall that stops players from going further. A smaller border keeps your world size (and your disk space and backups) under control, keeps players closer together and, together with Chunky, avoids lag from generating new terrain.
Type the commands in the Console without the leading /. In-game, add / and make sure you are an operator.
Set a border
Choose the center
Most servers center the border on 0 0 or on the spawn:
worldborder center 0 0In-game you can use ~ ~ to center it where you are standing.
Choose the size
worldborder set 10000The size is the full width of the square, in blocks. 10000 means players can go from -5,000 to +5,000 on X and Z (when centered on 0 0).
Check it
worldborder getThe console shows the current width. In-game, the border appears as a blue striped wall when you get close.
All world border commands
| Command | What it does |
|---|---|
worldborder center <x> <z> | Moves the center of the border. |
worldborder set <width> | Sets the width instantly. |
worldborder set <width> <seconds> | Grows or shrinks the border slowly over that time. Great for events. |
worldborder add <blocks> [seconds] | Adds (or with a negative number, removes) width. |
worldborder get | Shows the current width. |
worldborder damage amount <number> | Damage per second, per block a player is outside the border (default 0.2). |
worldborder damage buffer <blocks> | How far outside the border players can be before taking damage (default 5). |
worldborder warning distance <blocks> | Shows a red screen tint when players get this close (default 5). |
worldborder warning time <seconds> | Warns players when a shrinking border will reach them in this time (default 15). |
To remove the border, set it back to the maximum: worldborder set 59999968.
The Nether and the End
Each dimension can have its own border, but how it works depends on your server:
| Server | How the border works |
|---|---|
| Paper, Purpur, Spigot | Each world has its own border. |
| Vanilla, Fabric, Forge 1.21.9 and newer | Each dimension has its own border. |
| Vanilla, Fabric, Forge before 1.21.9 | One border is shared by all dimensions. |
Commands typed in the console change the Overworld. To set a border in another dimension, use execute in:
execute in minecraft:the_nether run worldborder set 2000
execute in minecraft:the_end run worldborder set 6000In-game, you can also stand in that dimension and run /worldborder normally.
Nether size tip
One block in the Nether equals 8 blocks in the Overworld. A Nether border of 2000 matches an Overworld border of about 16000, so a Nether border that is 8 times smaller keeps both dimensions balanced.
Pair it with Chunky
Set the border first, then let Chunky generate exactly that area:
worldborder center 0 0
worldborder set 10000
chunky worldborder
chunky startchunky worldborder reads the border's center and size, so you don't have to calculate the radius yourself (Chunky uses half the width, here 5000).
Troubleshooting
Players in spectator mode can fly through the border. For everyone else, check that the border is set in the dimension they are in: run worldborder get there (or with execute in), since each world or dimension may have its own border.
The size is the full width, not the distance from the center. To let players go 5,000 blocks in each direction, use worldborder set 10000.
Teleport them inside, or increase worldborder damage buffer. Shrink the border slowly (worldborder set 8000 600) so players have time to come back.