How to stop mobs from spawning in Minecraft
Run /gamerule spawn_mobs false and no mobs spawn naturally in the world. Spawners and /summon still work.
spawn_mobs
Controls whether mobs spawn naturally in the world.
/gamerule spawn_mobs <true|false> Examples
/gamerule spawn_mobs false Stop all natural mob spawning.
Values
| Value | What it does |
|---|---|
| trueDefault | On |
| false | Off |
Arguments
true|falseOptionaltrueturns the rule on,falseturns it off. Leave it out to show the current value.
What it does
With false, no mobs spawn on their own, neither animals nor monsters. Spawners, spawn eggs and /summon still work. To stop only hostile mobs, use spawn_monsters instead.
Good to know
- Renamed from
doMobSpawning.
Run it on your server
On a SLASHPLAY server, type it in the Console tab without the leading slash; in game, operators type it in chat with the slash. New to this? Start a Minecraft server first.
Your own
Minecraft server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.