← All guides

Minecraft World Border: Limit Your Server's Map Size

Updated November 29, 2026 · 5 min read

An unlimited map sounds nice until one player flies 40,000 blocks in a straight line, the world folder grows to 20 GB and the server stutters every time they load new chunks. A world border fixes that with one command, and it's built into the game.

Short answer
Stand where you want the middle of the map and run /worldborder center ~ ~, then /worldborder set 10000. The number is the full width, not the radius, so 10000 means 5,000 blocks out from the center. On Paper and Spigot the Nether and End are separate worlds, so set a border in each one too.

Why bother with a border

Set the border

You need to be an operator (or use the server console). First set the center. Standing at spawn and using your own position is easiest:

/worldborder center ~ ~

Or type coordinates directly. Note it takes only X and Z, no Y:

/worldborder center 0 0

Then set the size:

/worldborder set 10000

That's it. Players see a blue striped wall when they get close, and they can't walk, fly or ride past it.

Check the current size any time with:

/worldborder get

How big should it be?

The number you type is the diameter. A few starting points:

Server Border width Distance from center
2 to 5 friends 6,000 to 8,000 3,000 to 4,000
10 to 20 player SMP 10,000 to 16,000 5,000 to 8,000
Bigger public server 20,000 or more 10,000 or more

Start smaller than you think. You can grow the border later in a few seconds, but shrinking it after people have built near the edge means moving their bases or losing them.

To grow it by a set amount instead of typing a new total:

/worldborder add 2000

That adds 2,000 to the width, which is 1,000 more blocks in each direction.

Shrink or grow it over time

Add a time in seconds to make the border move slowly instead of jumping:

/worldborder set 500 1800

This shrinks (or grows) the border to 500 wide over 30 minutes. While it shrinks, the wall turns red. While it grows, it turns green. This is how battle royale and "shrinking border" events work.

You can control what happens to players caught outside:

/worldborder damage amount 0.2
/worldborder damage buffer 5

damage amount is the damage per second for every block past the buffer. damage buffer is how far outside the border a player can be before damage starts.

There are also warning settings that tint the screen red as players get close:

/worldborder warning distance 10
/worldborder warning time 15

Warning distance is in blocks. Warning time is in seconds and kicks in when a moving border will reach the player within that time.

The Nether and the End

This is where most people get caught out, because it works differently depending on your server software.

Vanilla server: the Overworld border controls the other dimensions. The Nether border is scaled by 8 to match Nether coordinates, so a 10,000 wide Overworld border becomes 1,250 wide in the Nether.

Paper, Spigot and Purpur: each dimension is its own world (world, world_nether, world_the_end) with its own border. Setting a border in the Overworld does nothing to the Nether. Run the command from inside each dimension, or target it from the console with /execute:

/execute in minecraft:the_nether run worldborder center 0 0
/execute in minecraft:the_nether run worldborder set 2000
/execute in minecraft:the_end run worldborder set 6000

For the Nether, divide your Overworld size by 8 if you want portals to line up with the edge. Many SMPs go a little bigger than that to give Nether tunnels some room.

If you use a world manager plugin for extra worlds, each of those worlds needs its own border too. See multiple worlds with Multiverse.

Pre-generate everything inside the border

A border and pre-generation go together. Once the edge is fixed, you know exactly which chunks will ever exist, so you can build them all ahead of time while nobody is online.

The Chunky plugin can read your border directly:

/chunky worldborder
/chunky start

The first command sets Chunky's area to match the world border in the current world. Then start begins generating. Repeat it for the Nether and End if you want those done too. The full walkthrough is in how to pre-generate your world.

A 10,000 wide square is 100 million blocks of surface, so expect it to take a while. Run it overnight, and make a backup first if the world already has builds.

Common problems

"Nothing changed" after setting the border. You probably set it in a different world. On Paper, check which dimension you were standing in, and use /worldborder get in each one.

Players spawn outside the border. The world spawn is outside the new border. Move it inside with /setworldspawn. See how to set the world spawn.

Someone's base is now outside. Grow the border with /worldborder add, or ask them to move. Players outside take damage after the buffer, so don't leave it like that.

Border is in the wrong place. Run /worldborder center again. The size stays the same, only the middle moves.

I want a round border. Vanilla borders are always square. Round borders need a plugin.

Removing the border

There's no "off" command. To go back to the default, set it to the maximum width:

/worldborder set 59999968

Related

FAQ

Is the number in /worldborder set the radius or the diameter?

The diameter. /worldborder set 10000 makes a square 10,000 blocks wide, so players can go 5,000 blocks from the center in each direction.

Does the world border stop players from going through Nether portals outside it?

Players can't walk or fly past the border, and portal travel won't drop them outside it. If a portal would lead past the edge, the destination is clamped inside the border.

Do I need a plugin for a world border?

No. The /worldborder command is built into vanilla Minecraft and works the same on Paper, Spigot and Purpur. Plugins are only needed for extras like round borders.

Want a server that just runs fast?

FreaksMC runs on NVMe hardware with performance-tuned defaults baked in - pre-optimized Paper, sane view distances, and one-click world pre-generation. Set up in 60 seconds.

See plans from $3/mo

We use cookies for analytics & ads to measure how our site performs. Essential cookies always run. See our Privacy Policy.