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 1- 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
Shrink the World Border Over Time
Make the world border close in gradually like a battle royale
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