Set World Border Size
Create or resize the world border boundary
⚠︎ Awaiting in-game verification for Java 26.2Sets 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
Become nearly invincible
/effect give @p resistance 999999 255 trueSwitch to Peaceful mode so hostile mobs don't spawn
/difficulty peacefulGet coordinates of the nearest village structure
/locate structure villageLocate the stronghold with the end portal
/locate structure stronghold