spawn_mobs
booleanJava 26.2 & Bedrock 26.32Controls whether mobs spawn naturally in the world. When false, no hostile or passive mobs spawn naturally. Mobs spawned via /summon or spawn eggs are unaffected.
Enable spawn_mobs
Mobs spawn naturally based on light level, biome, and time (default behavior).
Java
/gamerule spawn_mobs trueBedrock
/gamerule domobspawning trueBedrock uses domobspawning (all-lowercase, no separators).
Disable spawn_mobs
No natural mob spawning. The world will gradually empty of mobs as existing ones despawn. Spawners and /summon still work.
Java
/gamerule spawn_mobs falseBedrock
/gamerule domobspawning falseDefault: true. Restore with /gamerule spawn_mobs true
What spawn_mobs does
Controls whether mobs spawn naturally in the world. When false, no hostile or passive mobs spawn naturally. Mobs spawned via /summon or spawn eggs are unaffected.
Frequently asked questions
- Do mob spawners still work with spawn_mobs false?
- Yes — spawn_mobs only affects natural spawning. Mob spawners, spawn eggs, and /summon are unaffected.
- What happened to doMobSpawning?
- Renamed to spawn_mobs in Java snapshot 25w44a. Bedrock uses /gamerule domobspawning false.