How to Set a World Border in Your Minecraft Server
A world border is a built-in Minecraft feature that creates an impassable barrier, limiting the size of your world.
This is an essential tool for managing server performance by controlling file size and is perfect for creating defined gameplay areas or for use with world pre-generation plugins.
Core World Border Commands
The entire world border system is controlled with the /worldborder
command, which requires operator status. Here are the primary commands:
/worldborder center
- Sets the center point of your border. Defaults to 0,0./worldborder set
- Defines the border's width in blocks. The optional time value (in seconds) makes the border gradually shrink or expand.[time] /worldborder get
- Shows the current diameter of the border.

Damage and Warning Configuration
Optional
You can also configure what happens when a player gets too close to the border.
/worldborder warning distance
- Makes a player's screen tint red when they get close to the border./worldborder damage buffer
- Creates a small "safe zone" outside the border where players won't take damage./worldborder damage amount
- Sets how much damage a player takes per second past the buffer zone.

Practical Example
Here is a common use case for setting up a 10,000-block wide world centered at spawn.
- Set the center to the default world spawn with the command:
/worldborder center 0 0
- Set the border size instantly with the command:
/worldborder set 10000
- The server now has a defined 10,000x10,000 playable area.
Conclusion
The world border is a powerful vanilla tool for any server owner.
It allows you to control your world size, improve performance, and create unique gameplay scenarios without needing to install any plugins.