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 60- 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
Set World Border Damage
Control how much damage players take outside the border
God Mode (Resistance + Regeneration)
Become nearly invincible
Set Gamemode to Creative
Switch yourself into Creative mode
Kill All Mobs
Instantly remove every mob from the world except players
Add Experience Levels
Give yourself XP levels for enchanting
Set Difficulty to Peaceful
Switch to Peaceful mode so hostile mobs don't spawn