Shrink the World Border Over Time
Make the world border close in gradually like a battle royale
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Animates the world border to a new size over a set number of seconds. This example shrinks (or grows) the border to 50 blocks across, easing to that size over 60 seconds — the classic battle-royale closing ring. Use a smaller target than the current size to shrink; use /worldborder add <distance> <time> to change relative to the current size.
/worldborder set 50 6022 characters
- Java: yes
- Bedrock: no
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java).
- Optionally set the center first with /worldborder center <x> <z>.
- Paste /worldborder set 50 60 (target size, then seconds).
- Press Enter — the border slides to the new size over that time.
Related commands
Control how much damage players take outside the border
/worldborder damage amount 1Become nearly invincible
/effect give @p resistance 999999 255 trueSwitch to Peaceful mode so hostile mobs don't spawn
/difficulty peaceful