Skip to content
/craftcmd

Set Spawn Radius (Spawn Protection)

Control the size of the spawn protection area

⚠︎ Awaiting in-game verification for Java 26.2

Sets the spawn protection radius in blocks. At 0, no protection. Higher values protect a larger area. Default is 10.

/gamerule spawnRadius 0
23 characters

How to use

  1. Java: open chat (T) and paste the command with your desired radius.
  2. Press Enter — spawn protection adjusts immediately.
  3. Set to 0 for no protection, or higher (e.g. 50) for larger protected zones.

Related commands

Keep your items when you die instead of dropping them

/gamerule keepInventory true

Freeze time so it's permanently daytime

/gamerule doDaylightCycle false

Stop rain and keep the weather clear

/gamerule doWeatherCycle false

Stop creepers, endermen, and other mobs from changing blocks

/gamerule mobGriefing false

Turn off fall damage

/gamerule fallDamage false

Stop fire from spreading to nearby blocks

/gamerule doFireTick false