1. Set the world border size
The value is the full width of the box, not the distance from the centre
/worldborder set 500
What it does Will set the world border size (side length) to 500 block(s).
Set the world border, shrink or grow it gradually, and set damage for crossing it (Java only)
The world border is a transparent blue wall that keeps players from going past a set limit — the core tool for Battle Royale-style minigames where the playable area gradually shrinks
This command only exists in Java Edition — Bedrock has no /worldborder so only Java can be selected
The examples below come out of the same generator as the form above, so the commands and explanations always match what the tool produces. Copy one and adjust it from there
The value is the full width of the box, not the distance from the centre
/worldborder set 500
What it does Will set the world border size (side length) to 500 block(s).
Add a time and the border creeps to its new size — the core mechanic of a battle-royale map
/worldborder set 100 300
What it does Will set the world border size (side length) to 100 block(s), gradually over 300 second(s).
The centre starts at 0,0 — move it when the play area should not sit in the middle of the map
/worldborder center 200 -150
What it does Will move the world border center to X=200 Z=-150.
This is the first example above, run through every edition and version this tool supports. Versions that produce the same result share a row
Every version this tool supports produces the same result, so a command you copy works without version-specific edits
/worldborder set 500