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:
- Place a Command Block
- Set the block type to “repeat” or “current” depending on your version of Minecraft.
- Set the condition to “unconditional.”
- Set the Redstone settings to “always active.”
- 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.