Skip to content
/craftcmd

Disable Mob Spawning

Stop mobs from spawning naturally in the world

⚠︎ Awaiting in-game verification for Java 26.2

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

Stop creepers, endermen, and other mobs from changing blocks

/gamerule mobGriefing false

Stop fire from spreading to nearby blocks

/gamerule doFireTick false
Disable Block Drops (No Loot)
Disable Block Drops (No Loot) Awaiting in-game verification
Both

Stop mined blocks from dropping items

/gamerule doTileDrops false

Keep your items when you die instead of dropping them

/gamerule keepInventory true

Freeze time so it's permanently daytime

/gamerule doDaylightCycle false

Stop rain and keep the weather clear

/gamerule doWeatherCycle false