The game itself shows this in /help worldborder: in angular brackets — what to substitute, in square brackets — optional, separated by a slash — one of.
On this page 6 sections
At a glance
Examples have been tested in the game — copy
-
Border of 5000 blocks
/worldborder set 5000 -
Center at zero
/worldborder center 0 0 -
Check size
/worldborder get
Permissions — game master.
/worldborder add <distance> [<time>]/worldborder set <distance> [<time>]/worldborder center <pos>/worldborder damage (amount|buffer)/worldborder get/worldborder warning (distance|time)
A 'Game Master' level is required: Operator level 2 — for team blocks, data pack functions, and guests on a public world with allowed commands. In the server console, it is written without a slash.
| What | Value |
|---|---|
| The command | /worldborder |
| Permissions | Game master (2) |
| Where it is | On the server and in single-player with cheats enabled |
| Subcommands | add, center, damage, get, set, warning |
How do I use /worldborder?
Syntax: /worldborder add <distance> [<time>]. For example, /worldborder set 5000 — world border set to 5000 blocks.
What permissions are required for /worldborder?
An game master level is required: operator level 2 — in command blocks, data pack functions, and guests in a world open to the network with allowed commands.
Does /worldborder work in a command block?
Yes: a Command Block executes commands with level 2 permission, and that's all required. The slash is not needed in the block.
- /clone
- /difficulty
- /fill
- /fillbiome
- /forceload
- /gamerule
- /locate
- /place
- /seed
- /setblock
- /setworldspawn
- /spreadplayers
- /tick
- /time
- /weather
Minecraft 26.3 data: syntax — from the game's /help hint, permissions — from command report, each example verified by command parsing.