Disable Hostile Mobs on Your Minecraft Server

How to turn off hostile mob spawning on your Minecraft Java server.

Disabling Hostile Mobs

In server.properties:

spawn-monsters=false

This prevents all hostile mobs (zombies, skeletons, creepers, etc.) from spawning naturally. Already-spawned mobs remain until killed.

Other Mob Controls

PropertyDefaultDescription
spawn-monsterstrueHostile mob spawning
spawn-animalstruePassive mob spawning (cows, pigs, etc.)
spawn-npcstrueVillager spawning
difficultyeasySet to peaceful to remove all hostile mobs instantly

💡 Tip: Setting difficulty=peaceful is the quickest way to remove all hostile mobs — it despawns them immediately. spawn-monsters=false only prevents new spawns.

How is this guide?

40% Off — Limited TimeGet your Minecraft server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page