How to Add a World Border to a Minecraft Server
Adding a world border to your Minecraft server is a great way to keep your world a little more contained. Instead of players wandering 900,000 blocks away because they saw a mountain that looked “kind of cool,” a world border lets you control how far players can travel from a set point.
The world border creates a visible boundary around your world. Players cannot normally move past it, and if they somehow end up outside of it, they can begin taking damage depending on your border settings.
This guide will show you how to add a world border to your Minecraft: Java Edition server using the /worldborder command.
Before You Begin
You will need to have operator permissions on your Minecraft server before using world border commands.
If you are not already an operator, you can find our guide for adding yourself as an operator here: https://nodecraft.com/support/games/minecraft/setup/how-to-set-a-player-as-op-admin
What Does the Minecraft World Border Do?
The world border is the horizontal boundary of a Minecraft dimension. By default, Minecraft worlds have an enormous world border, but you can shrink it down to a more reasonable size for your server. A world border can be useful for:
Keeping players closer together
Limiting world size
Reducing unnecessary exploration
Encouraging players to build near each other
Preparing a smaller area for survival, events, or challenges
The world border is based on diameter, not radius. This is important. For example, /worldborder set 5000 creates a border that is 5,000 blocks wide and 5,000 blocks long. If the border is centered at 0 0, players can travel about 2,500 blocks in each direction from the center.
How to Set the Center of the World Border
Before setting the size, you should decide where the center of the border should be. Most servers use world spawn or coordinates 0 0. To center the world border at 0 0, run /worldborder center 0 0.
You can also center the border on different coordinates by replacing the numbers with the X and Z coordinates you want to use. For example, /worldborder center 250 -400. This sets the center of the world border to X: 250 and Z: -400.
How to Set the World Border Size
Once the center is set, you can choose the size of your world border. To set a 5,000 block world border, run /worldborder set 5000. This changes the border immediately.
You can also make the world border shrink or expand slowly by adding a time value in seconds. For example, /worldborder set 5000 60. This changes the world border to 5,000 blocks over 60 seconds. That is perfect for events, challenges, or dramatic “the world is closing in” moments. Very normal Minecraft behavior. Totally not stressful.
Recommended World Border Sizes
The best world border size depends on your server and how many players you expect. For a small survival server, a border between 5,000 and 10,000 blocks is usually a good starting point. For larger servers, you may want something closer to 15,000 or 20,000 blocks.
Common examples:
/worldborder set 5000Good for smaller groups or tighter survival servers.
/worldborder set 10000Good for medium-sized survival servers.
/worldborder set 20000Good for larger servers that still want to limit endless exploration.
Remember, the number you enter is the full width of the border. A 10,000 block border centered at 0 0 gives players around 5,000 blocks in each direction.
How to Check the Current World Border Size
To check the current world border size, run /worldborder get. This will show the current diameter of the world border.
How to Expand or Shrink the World Border
You can use /worldborder add to increase or decrease the current border size. To expand the border by 1,000 blocks, run /worldborder add 1000. To shrink the border by 1,000 blocks, run /worldborder add -1000. You can also add a time value. For example, /worldborder add -1000 300. This shrinks the border by 1,000 blocks over 300 seconds.
How to Set World Border Damage
Players outside the world border can take damage. You can adjust how much damage they take with /worldborder damage amount 0.2. The default value is 0.2. You can increase the value if you want the border to be more dangerous with /worldborder damage amount 1.
You can also change the damage buffer. The damage buffer controls how far outside the border a player can be before taking damage. You can change it with /worldborder damage buffer 5. The default buffer is 5 blocks.
How to Set the World Border Warning
Minecraft can show a red warning effect when players get close to the world border. To change the warning distance, run /worldborder warning distance 10. This makes the warning appear when a player is within 10 blocks of the border.
You can also set the warning time for a shrinking border with /worldborder warning time 15. This controls how many seconds before a moving border reaches a player that the warning begins.
Example Setup
Here is a simple setup for a survival server using a 10,000 block border centered at spawn:
/worldborder center 0 0/worldborder set 10000/worldborder warning distance 10/worldborder damage buffer 5/worldborder damage amount 0.2
This creates a 10,000 block wide world border, gives players a warning when they get close, and keeps the default damage behavior for anyone outside the border.
Important Notes
World border commands only affect the dimension you run them in. If you want borders in the Overworld, Nether, and End, you will need to run the commands in each dimension.
The world border is measured by diameter, not radius.
The world border does not delete existing chunks or reset your world. It only limits where players can travel.
Players in Creative or Spectator mode may behave differently around the border than survival players.
Conclusion
You have now added a world border to your Minecraft server. With the border in place, players will stay within the area you choose instead of sprinting into the unknown until your world folder starts looking like it needs its own zip code.
World borders are useful for survival servers, events, challenges, and keeping exploration under control. Set the center, choose a size that fits your server, and you are good to go.
Need Help?
If you have questions or run into any issues, our support team is here to help! Reach out using the support widget on our website or visit our support center for further assistance.