Maybe there's some special way to execute this command and have it work, but I don't know it.
I type "/gamerule doMobSpawning false" (without the quotes), the game tells me the rule has been changed, and mobs still spawn. It's not an issue of them being spawned before it starts; I've created brand new levels, immediately entered the command, checked it with a NBT editing program just to be sure, and then traveled for miles. There are still mobs everywhere, though once it did seem to just be pigs...
Just to be certain, it does affect all mobs, correct? Not just enemies? It's not clearly documented anywhere that I can find.
Could someone please help me? I have no idea why this isn't working.
Edit: Thank you, whoever moved this! I didn't see the correct place to post it.
Seriously, any ideas at all? The only thing I can think of at this point is to reinstall java, which I'm certainly willing to try. Nothing else has worked. I would be forever grateful. This has stopped me from moving forward with an adventure map I'd like to create.
Would being near a dungeon affect passive mobs?
What I've been doing to test it is creating a new creative world with cheats on, quickly changing the gamerule, then traveling in one direction for at least a couple minutes. Thinking that that still might not be enough, I've teleported myself a couple thousand blocks away from my current position, but there are still cows, chickens, pigs, and sheep everywhere. I'm actually more concerned about passive mobs spawning everywhere than the aggressive ones.
Thank you for your suggestions!
I'm not concerned with being attacked or anything. I would just like for a bit of realism in the adventure map I'm making. There aren't cows, chickens, or sheep running around in forests in real life as far as I'm aware, and I would prefer they only spawn where I place them.
Well, still no luck so I've basically given up. One thing, though for anyone else to try here, if you would:
If you set a gamerule, but use something other than "true" or "false" what happens? For example, if you were to type
/gamerule doMobSpawning banana
what happens? For me, it treats it as "false." I was just wondering if that's the case with anyone else here. Thanks for your time.
I am having the same trouble. Although, if you have a small enough map, you can make it a beach biome. Which will not allow any passive mobs, ebsides squid to spawn, but will keep the green vegetation.
doMobSpawning will stop new mobs from spawning but mobs that have already spawned won't just disappear. Are you sure that isn't the case? Have you tried using a kill all entities function after activating the command?
No, I wasn't aware anything like that existed. I usually play without any mods, if that's what I would need. To test it I've started by creating a new world, immediately changing the gamerule, then traveling in one direction for a long time, usually five full minutes or so. I'm fairly certain that that distance should be enough to see the results, but there are still mobs everywhere.
rodabon, the command "/killall" is only with the Single Player Commands mod, which adds a bunch of different commands, like "/speed 5". You can also check out Antvenom's first or third video about the farlands for proof. Read the wiki for more info about the farlands if you want. (Version Infdev- Beta 1.7.3) Check out Infdev as well while your there. The wiki is good for info!
As rodabon said, it will prevent mobs from spawning, but mobs that already spawned won't be killed, plus it takes less than a second for mobs to spawn around the world, am having this problem in snapshot 14w11b, if you are playing in 1.8 snapshot try /kill @e[type=!Player].
I kill all non player mobs in the world and all items but after some seconds i do the command again and it says killed sheep,killed pig,killed cow, tho doMobSpawning is false for me, looks like a bug of some kind.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I type "/gamerule doMobSpawning false" (without the quotes), the game tells me the rule has been changed, and mobs still spawn. It's not an issue of them being spawned before it starts; I've created brand new levels, immediately entered the command, checked it with a NBT editing program just to be sure, and then traveled for miles. There are still mobs everywhere, though once it did seem to just be pigs...
Just to be certain, it does affect all mobs, correct? Not just enemies? It's not clearly documented anywhere that I can find.
Could someone please help me? I have no idea why this isn't working.
Edit: Thank you, whoever moved this! I didn't see the correct place to post it.
[quote=Badgerz]You have to keep in mind that people are stupid.
[quote=Catelite]Just because you don't understand how something works, doesn't make it broken or pointless. >_<
What I've been doing to test it is creating a new creative world with cheats on, quickly changing the gamerule, then traveling in one direction for at least a couple minutes. Thinking that that still might not be enough, I've teleported myself a couple thousand blocks away from my current position, but there are still cows, chickens, pigs, and sheep everywhere. I'm actually more concerned about passive mobs spawning everywhere than the aggressive ones.
Thank you for your suggestions!
If you set a gamerule, but use something other than "true" or "false" what happens? For example, if you were to type
/gamerule doMobSpawning banana
what happens? For me, it treats it as "false." I was just wondering if that's the case with anyone else here. Thanks for your time.
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumby c0yote
I tried it with terrible results. I gave my wife my glasses for a second, a creeper showed up and now my wife is pregnant.
Stupid 3D..
I kill all non player mobs in the world and all items but after some seconds i do the command again and it says killed sheep,killed pig,killed cow, tho doMobSpawning is false for me, looks like a bug of some kind.