clock menu more-arrow no yes

Filed under:

How to stop monsters from spawning in Minecraft

You can disable all mobs or specific ones from ruining your Minecraft session

Minecraft Image: Mojang/Microsoft

For those who are looking for a more relaxed Minecraft experience, you can disable monsters from spawning.

There are multiple ways you can set your server up to avoid monsters.

Disabling all monsters

Minecraft Bedrock Edition players can edit their world settings under “Game” and uncheck the box next to “Mob Spawning.”

Java Edition players can type “/gamerule doMobSpawning false” into the chat bar to disable mobs. You’ll need to be a server admin and have cheats enabled.

Keep in mind using this setting will also disable friendly spawns as well, like animals.

Disabling specific monsters

You can use Command Blocks to kill individual monsters as soon as they spawn, leaving behind any drops. You’ll need to do the following:

  1. Place a Command Block
  2. Set the block type to “repeat” or “current” depending on your version of Minecraft.
  3. Set the condition to “unconditional.”
  4. Set the Redstone settings to “always active.”
  5. Insert the command “/kill @e[type=MOB-NAME]” into the command input section.

Just replace “MOB-NAME” with the monsters respective namespaced ID. The IDs for monsters can be found on their Minecraft wiki page. For example, if you want to consistently kill all skeletons, you’ll have to use “/kill @e[type=skeleton]” to do that.

Doing this will instantly kill any mob that spawns in, leaving behind any potential drops. If you don’t want to see any drops left behind, you can use “/tp @e[type=MOB-NAME] ~ -64 ~” instead, which will teleport the mob to a void to vanish.