WorldJava
/worldborder
Controls the square world border: its center, diameter (instant or interpolated over time), warning distance/time, and the damage applied to players outside it. The border blocks movement and can be shrunk gradually for shrinking-map games.
Syntax
Alternate forms:
Parameters
- action
- literal
- add / center / damage / get / set / warning.
- distanceoptional
- float
- Border diameter in blocks (for set/add).
- timeoptional
- integer
- Seconds to interpolate to the new size.
Examples
Set the border to a 500-block diameter instantly.
Shrink the border to 100 blocks over 60 seconds.
Re-center the border on the origin.
Permission level
/worldborder requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.