Skip to content
/craftcmd

Set World Border Size

Create or resize the world border boundary

⚠︎ Awaiting in-game verification for Java 26.2

Sets the world border to a radius of 500 blocks. Players cannot go beyond this boundary.

/worldborder set 500
20 characters

How to use

  1. Java: open chat (T) and paste the command with your desired size.
  2. Press Enter — the world border is set.
  3. Approach the edge to see the purple warning particle.

Related commands

Become nearly invincible

/effect give @p resistance 999999 255 true

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
Find the Nearest Village
Find the Nearest Village Awaiting in-game verification
Both

Get coordinates of the nearest village structure

/locate structure village
Find the Nearest Stronghold
Find the Nearest Stronghold Awaiting in-game verification
Both

Locate the stronghold with the end portal

/locate structure stronghold