Set Spawn Radius (Spawn Protection)
Control the size of the spawn protection area
⚠︎ Awaiting in-game verification for Java 26.2Sets the spawn protection radius in blocks. At 0, no protection. Higher values protect a larger area. Default is 10.
/gamerule spawnRadius 023 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 radius.
- Press Enter — spawn protection adjusts immediately.
- 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 trueStop creepers, endermen, and other mobs from changing blocks
/gamerule mobGriefing false