Set World Border Damage
Control how much damage players take outside the border
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Sets 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 128 characters
- Java: yes
- Bedrock: no
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java).
- Paste /worldborder damage amount 1 (damage per second per block).
- Press Enter.
- 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 60Become nearly invincible
/effect give @p resistance 999999 255 trueSwitch to Peaceful mode so hostile mobs don't spawn
/difficulty peaceful