Skip to content
[/craft]

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 2026

Animates 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
22 characters

How to use

  1. Open chat (T on Java).
  2. Optionally set the center first with /worldborder center <x> <z>.
  3. Paste /worldborder set 50 60 (target size, then seconds).
  4. 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 1

Become nearly invincible

/effect give @p resistance 999999 255 true

Switch yourself into Creative mode

/gamemode creative

Instantly remove every mob from the world except players

/kill @e[type=!player]

Give yourself XP levels for enchanting

/experience add @p 30 levels

Switch to Peaceful mode so hostile mobs don't spawn

/difficulty peaceful