Set Spawn Radius (Spawn Protection)
Control the size of the spawn protection area
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Sets 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 Inventory On Death
Keep your items when you die instead of dropping them
Always Day / Stop Time
Freeze time so it's permanently daytime
Clear Weather / Always Sunny
Stop rain and keep the weather clear
Stop Mob Griefing
Stop creepers +2 more
Disable Fall Damage
Turn off fall damage
Turn Off Fire Spread
Stop fire from spreading to nearby blocks