Disable Mob Spawning
Stop mobs from spawning naturally in the world
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Prevents all natural mob spawning. Mobs summoned with commands still appear. Set back to true to restore normal spawning.
/gamerule doMobSpawning false29 characters
- Java: yes
- Bedrock: yes
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock).
- Paste the command.
- Press Enter — no new mobs will spawn.
Related commands
Stop Mob Griefing
Stop creepers +2 more
Turn Off Fire Spread
Stop fire from spreading to nearby blocks
Disable Block Drops (No Loot)
Stop mined blocks from dropping items
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