
/worldborder
Changes the world border's size, centre, damage and warnings. Its basic form is /worldborder add <distance>; it has 10 syntax forms and 4 arguments. Permission: Cheats / op 2.
/worldborder syntax
Game dataEvery form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.
/worldborder add <distance>/worldborder add <distance> <time>/worldborder center <pos>/worldborder damage amount <damagePerBlock>/worldborder damage buffer <distance>/worldborder get/worldborder set <distance>/worldborder set <distance> <time>/worldborder warning distance <distance>/worldborder warning time <time>/worldborder examples
Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.
/worldborder set 2000- Makes the border 2,000 blocks wide (1,000 each way from the centre).
/worldborder center 0 0- Centres the border on 0, 0.
/worldborder set 500 600- Shrinks the border to 500 blocks over 600 seconds, the classic battle-royale squeeze.
/worldborder arguments
What each argument expects, with the limits the game enforces.
| Argument | Expects | Limits |
|---|---|---|
<distance> | Number | -59,999,968 … 59,999,968 |
<time> | Duration (number with d, s or t) | at least 0 |
<pos> | Two coordinates | — |
<damagePerBlock> | Number | at least 0 |
Other commands
Data: Minecraft Java Edition 26.3 game files. How we source this
Changes the world border's size, centre, damage and warnings. It has 10 syntax forms and can be run by: Cheats / op 2.
See Also
Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.
/worldborder FAQ (Java 26.3)
What does /worldborder do in Minecraft?
Changes the world border's size, centre, damage and warnings.
What is the syntax of /worldborder?
The basic form is /worldborder add <distance>. All forms are listed above.
What is an example of /worldborder?
/worldborder set 2000 — Makes the border 2,000 blocks wide (1,000 each way from the centre).
Do you need cheats for /worldborder?
Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).