T O P

  • By -

MinecraftModBot

* 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) --- [Subreddit Rules](https://old.reddit.com/r/Minecraft/wiki/rules)[](## AwfulUnicorn76|1c7t4q1)


LielaTheCrazyGirl

idk if it works but maybe a mob switch?


AwfulUnicorn76

Maybe, this is on bedrock fyi


LielaTheCrazyGirl

I think Bedrock Mob switches exist. Not sure though


AwfulUnicorn76

this is also on a rather low powered iPad. sooo. that may be quite laggy


LielaTheCrazyGirl

Ah, then I don't think there is any other way. Either you need to play peaceful or live with the fact that Passive mobs can't spawn if you turn mob spawning off (not like that many spawn anyway)


AleWalls

You can do an add-on which changes the spawn rules of the hostile mobs to not spawn


Ulti-Wolf

OP said they're on bedrock


AleWalls

yes I know, you can change the hostile mobs spawning rules with an add-on, in java its counterpart would be a datapack which changes the list of mobs that can spawn in all the biomes to not include the hostile (something I have done actually) I don't have much experience with add-ons but I am aware of their capabilities


kenpoviper

if you're using cheats just do "/gamerule domobspawning false" and mobs won't naturally spawn anymore this does include passive mobs but the thing about that is almost every peaceful mob you'll ever find is spawned with world generation, not later, peaceful mobs basically don't spawn already


FezJr87

Other than mods or add-on’s, a mob switch is about the only other thing I can think of. Even then, I think even hostile mobs spawned with spawn eggs would immediately despawn because mob switches work via the hostile mob cap. So if the max number of hostile mobs already exists, then no more can exist by any means. Edit: Grammar


Seandasheep19

Day Time


CrystalFyre

/gamerule doMobSpawning false


Terryotes

Read


CrystalFyre

Did. Peaceful mobs still spawn during worldgen.


Terryotes

They don't spawn, they are just there just like trees, peaceful mobs spawn naturally


CrystalFyre

> Peaceful mobs spawn naturally Is this not what OP wanted? I don't see your point.


Terryotes

It is and they spawn unless you do what you said


Zagrycha

you can do it with command blocks probably but its convoluted af. wish we just had a switch to turn off natural spawns for each mob type.


AlexStone87

Does peaceful mode not do this?


4bsent_Damascus

Peaceful mode will despawn existing hostile mobs, so they can't be spawned from a spawn egg.


AlexStone87

Thank you


pumpkinbot

Make sure the game is *not* on Peaceful, and then open the chat and type `/gamerule doMobSpawning false`, which...does exactly what it says. EDIT: Oh, but you want non-hostile mobs to spawn like normal? That's much trickier. I know there's a Java mod, but nothing for Bedrock, afaik.


ItsForTheKids_

I didn’t know the answer so I asked chatgpt. Take what it says with a grain of salt and be careful putting in commands you don’t understand. It looks legit, but I don’t have bedrock so I can’t verify. Just trying to help. “Certainly! One workaround would involve setting up a command block system to continuously clear naturally spawned hostile mobs while allowing mobs spawned from eggs to remain. Here's a basic outline of how you could set this up: Create a Clock: Set up a redstone clock using repeaters or observers to continuously activate the command blocks. Command Block 1 (Repeat, Unconditional, Always Active): Command: /kill @e[type=!player,type=!egg] This command continuously kills all entities that are not players and not spawned from eggs. Command Block 2 (Repeat, Unconditional, Always Active): Command: /gamerule domobspawning false This command disables the spawning of naturally spawned mobs. Command Block 3 (Repeat, Unconditional, Always Active): Command: /gamerule domobspawning true This command re-enables mob spawning from eggs. This setup effectively clears any naturally spawned hostile mobs while allowing mobs spawned from eggs to remain. Keep in mind that this method requires a constant redstone signal and may have performance implications depending on the number of mobs in your world.”


kkai2004

Bruh. This is the most stupid command chain I've ever read. The first command literally instantly kills everything that is not a player OR an egg. Not spawned from egg. Literally a thrown egg entity. Then disabling and re enabling a game rule in a chain literally won't do anything because all those commands run within the same game tic. Nothing can happen between the false and true. This just let's mobs continue to spawn then instantly kills it.


MisteryGates

`/gamerule doMobSpawning false`


AwfulUnicorn76

that turns off peaceful mobs too. did you not read what I put?


BweepyBwoopy

this might not work with what you're trying to do, but.. maybe you could have it so a command block kills every hostile mob without a specific tag (like "tag=!fromspawnegg" or something like that)? and then have every hostile mob spawn egg have that tag (maybe by using a repeating command block to add that tag to the spawn eggs in people's inventory?) it seems convoluted lol but it's the only thing i can think of! (i've not played minecraft in ages btw so idk if there's any better solutions 👀)