Control the Size of the World Border
The /worldborder command lets you control the outer boundary of your world in Minecraft Java Edition. With it, you can change the size of the border, move its center coordinates, and adjust how much damage players take outside the boundary.
Server admins and map makers often use this command to keep players inside a set play area or to create shrinking arenas for survival games. Because it requires permission level 2, you must be an operator or have cheats turned on in single-player to run it.
/worldborder add <distance> [<time>]/worldborder center <pos>/worldborder damage amount <damagePerBlock>/worldborder damage buffer <distance>/worldborder get/worldborder set <distance> [<time>]/worldborder warning distance <distance>/worldborder warning time <time>/worldborder set <distance> [<time>]/worldborder add <distance> [<time>]/worldborder center <pos>/worldborder get/worldborder damage amount <damagePerBlock>/worldborder damage buffer <distance>/worldborder warning distance <distance>/worldborder warning time <time>| Argument | Type | What it means |
|---|---|---|
<distance> | decimal number -59999968.0 to 59999968.0 | A distance value that accepts a decimal from -59999968.0 to 59999968.0 for border sizes, a decimal of at least 0.0 for the damage buffer, or a whole number of at least 0 for the warning distance. |
<time> | time at least 0 | A time duration of at least 0, written as a number of ticks like 100, seconds like 5s, or days like 2d. |
<pos> | x z position | Two coordinates representing the X and Z position for the center of the world border. |
<damagePerBlock> | decimal number at least 0.0 | A decimal number of at least 0.0 that defines the damage amount per block, such as 0.5. |
<distance> | decimal number at least 0.0 | A distance value that accepts a decimal from -59999968.0 to 59999968.0 for border sizes, a decimal of at least 0.0 for the damage buffer, or a whole number of at least 0 for the warning distance. |
<distance> | whole number at least 0 | A distance value that accepts a decimal from -59999968.0 to 59999968.0 for border sizes, a decimal of at least 0.0 for the damage buffer, or a whole number of at least 0 for the warning distance. |
/worldborder getChecks and outputs the current width of the world border.
/worldborder center 0 0Moves the center of the world border to the X and Z coordinates 0, 0.
/worldborder set 500.0Immediately sets the world border size to 500.0 blocks wide.
/worldborder set 100.5 60sChanges the world border width to 100.5 blocks over a period of 60 seconds.
/worldborder add -50.0 200Shrinks the current world border by 50.0 blocks over a duration of 200 ticks.
/worldborder add 250.25Expands the current world border size by 250.25 blocks immediately.
/worldborder damage buffer 3.5Sets the safe buffer zone outside the world border to 3.5 blocks.
/worldborder damage amount 0.5Sets the border damage rate to 0.5 per block past the buffer.
/worldborder warning distance 15Displays the screen warning when a player gets within 15 blocks of the border.
/worldborder warning time 10sShows the warning screen 10 seconds before a moving border reaches the player.
Measured from the game files of every Java release from 1.13 to 26.3.
The /worldborder command is only available in Minecraft Java Edition. Bedrock Edition has no command with this name.
You can shrink the border over time by adding a duration to the end of the set or add command, such as /worldborder add -100.0 30s to reduce the width by 100 blocks over 30 seconds.
You need permission level 2 to run this command, which means you must be a server operator or have cheats enabled in your single-player world.
No, Bedrock Edition does not have a /worldborder command. This command is only in Java Edition, where it has been available since at least version 1.13 through 26.3.
/clone/difficulty/fill/fillbiome/forceload/gamerule/locate/place/seed/setblock/setworldspawn/time/waypoint/weather