Skip to content
[/craft]
Disable Mob Spawning

Disable Mob Spawning

Stop mobs from spawning naturally in the world

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Prevents all natural mob spawning. Mobs summoned with commands still appear. Set back to true to restore normal spawning.

/gamerule doMobSpawning false
29 characters

How to use

  1. Open chat (T on Java, / on Bedrock).
  2. Paste the command.
  3. Press Enter — no new mobs will spawn.

Related commands