Set World Border Size
Create or resize the world border boundary
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Sets the world border to a radius of 500 blocks. Players cannot go beyond this boundary.
/worldborder set 50020 characters
- Java: yes
- Bedrock: no
- Command block: yes
- Needs cheats / OP: yes
How to use
- Java: open chat (T) and paste the command with your desired size.
- Press Enter — the world border is set.
- Approach the edge to see the purple warning particle.
Related commands
God Mode (Resistance + Regeneration)
Become nearly invincible
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
Find the Nearest Village
Get coordinates of the nearest village structure
Find the Nearest Stronghold
Locate the stronghold with the end portal