/worldborder
Set how big the playable world border is, optionally over time.
Overview
What is the /worldborder command?
The /worldborder command sets and animates the playable boundary of the world. You can set its diameter, shrink or grow it over time, move its centre, and configure the warning distance and the damage players take outside it.
It's central to survival challenges and shrinking-border minigames, and also a practical way to cap world size on a server.
When to use it: Use /worldborder to limit how far players can travel, or to run a shrinking-border survival challenge.
At a glance
Syntax
/worldborder set <distance> [time]See it
What it does
Anatomy
Every part, explained
- 1
CommandRequired/worldborder setSets the border's diameter in blocks.
- 2
DistanceRequired<distance>Width of the border in blocks.
- 3
TimeOptional[time]Optional seconds to grow or shrink over.
Your turn
Try it yourself
Copy & paste
Examples
/worldborder set 1000Set the border to 1000 blocks wide.
/worldborder set 500 60Shrink to 500 blocks over 60 seconds.
/worldborder center 0 0Move the border's center to spawn.
Avoid these
Common mistakes
/worldborder 1000/worldborder set 1000Include the 'set' action before the distance.
/worldborder set 1000 64 0/worldborder center 1000 0Use 'center' to set a position, 'set' for size.
Good to know
Frequently asked questions
- How do you set the world border size?
- Run /worldborder set <blocks>, e.g. /worldborder set 1000 for a 1000-block-wide border centred on 0,0.
- How do you make the border shrink over time?
- Add a time in seconds: /worldborder set 100 600 shrinks (or grows) to 100 blocks over 600 seconds.
- How do you move the border's centre?
- Use /worldborder center <x> <z> to recentre the border on a new location.
Keep going