* Upvote this comment if this is a good quality post that fits the purpose of r/Minecraft
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
No, it does affect non-hostile mobs somewhat, but is still probably the best solution.
IronCat_25002026-01-15 23:54
It’s a difficulty level called “peaceful”
IllustriousAd23922026-01-15 23:56
there is the gamerule spawn monsters, you can just set it to false
Dangerous-Quit78212026-01-16 00:06
Learn how to spawn proof.
JackDis232026-01-16 02:12
For every specific creature type you don't want in your world, you can make a command block that will teleport them to the void beneath your world. Keep them all together in a pile and set a ticking area command for where they are.
Each different creature type will need a command block with "/tp @e [type=____] 0 -100 0" and set to always active and repeat.
OkAngle23532026-01-17 05:18
Either create a mob switch or create a datapack to set a block at every location where a hostile spawns. For the datapack option, I would apply a tag to every hostile mob and then use the setblock command to set a slab or something nonspawnable.
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
Shouldn’t affect non-hostile mobs.
Each different creature type will need a command block with "/tp @e [type=____] 0 -100 0" and set to always active and repeat.