Skip to content
[/craft]

Set World Border Damage

Control how much damage players take outside the border

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Sets how much damage per second per block players take when they go past the world border's buffer zone. The default is 0.2; raising it to 1 makes straying out much more punishing. Pair it with /worldborder damage buffer <blocks> to change how far outside the border players can go before damage starts (default 5 blocks).

/worldborder damage amount 1
28 characters

How to use

  1. Open chat (T on Java).
  2. Paste /worldborder damage amount 1 (damage per second per block).
  3. Press Enter.
  4. Tune the safe zone with /worldborder damage buffer <blocks>.

Related commands

Make the world border close in gradually like a battle royale

/worldborder set 50 60

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