1
[HELP] How to disable certain mobs spawning naturally
Hey guys, is there anyway I can disable mobs from spawning in a specific world?
Also is there a way we can disable creepers from spawning naturally but being able to spawn through spawners? this is crucial, please let me know!
Skype: Noxious Craft
Also is there a way we can disable creepers from spawning naturally but being able to spawn through spawners? this is crucial, please let me know!
Skype: Noxious Craft
Create an account or sign in to comment.
12
1
It's fine, I found a life save
1
My IGN is Greystalk. I haven't gotten on yet.
1
Is your ingame name rihsomething? Sorry, I just came on and my players told me about you, please feel free to join again
1
noxiouscraft.net or play.noxiouscraft.net
1
Sure, if you give me the IP.
1
You can change the difficulty to peaceful
1
May I kindly ask you to join my server?
1
Ok. Sorry for the late reply. This is a little more complicated. What you're gonna want to do first is run this command once. I suggest doing this around bedrock level at the spawn chunks.
/summon ArmorStand ~ ~1 ~ {Tags:["spawn"],NoGravity:1b,Invisible:1,Invulnerable:1}
Then you need to set up some scoreboards. You can run this from your chat.
/scoreboard objectives add spawnrate dummy
now for the command blocks. These two will basically count and record the number of zombies that spawn.
repeat, always active
/execute @e[type=Zombie,tag=!found] ~ ~ ~ /scoreboard players add @e[tag=spawn] spawnrate 1
chain, always active
/scoreboard players tag @e[type=Zombie,tag=!found] add found
now the final commands. This will just get rid of a random zombie for every ten zombies. To lower the spawn rate even further, just lower the number. For example, if you made the number 2, then it would get rid of a zombie every time two zombies spawned.
chain, always active
/execute @e[tag=spawn,score_spawnrate_min=10] ~ ~ ~ /tp @r[type=Zombie] ~ ~-200 ~
chain, always active
/scoreboard players set @e[tag=spawn,score_spawnrate_min=10] spawnrate 0
I know this seems kinda complicated, but if you read my instructions carefully, you should be able to get it. I did test this and it works like a charm.
/summon ArmorStand ~ ~1 ~ {Tags:["spawn"],NoGravity:1b,Invisible:1,Invulnerable:1}
Then you need to set up some scoreboards. You can run this from your chat.
/scoreboard objectives add spawnrate dummy
now for the command blocks. These two will basically count and record the number of zombies that spawn.
repeat, always active
/execute @e[type=Zombie,tag=!found] ~ ~ ~ /scoreboard players add @e[tag=spawn] spawnrate 1
chain, always active
/scoreboard players tag @e[type=Zombie,tag=!found] add found
now the final commands. This will just get rid of a random zombie for every ten zombies. To lower the spawn rate even further, just lower the number. For example, if you made the number 2, then it would get rid of a zombie every time two zombies spawned.
chain, always active
/execute @e[tag=spawn,score_spawnrate_min=10] ~ ~ ~ /tp @r[type=Zombie] ~ ~-200 ~
chain, always active
/scoreboard players set @e[tag=spawn,score_spawnrate_min=10] spawnrate 0
I know this seems kinda complicated, but if you read my instructions carefully, you should be able to get it. I did test this and it works like a charm.
1
Okay, so I decided that I will just dramatically decrease the spawn rate of mobs, I put the difficulty as easy on my server but they spawn EXTREMELY aggressively. There's around 10 mobs in a radius of 10
1
I don't have skype, but I'd be happy to answer any questions you have here on the forums or in a PM.
1
May I kindly ask you to add me on Skype?
1
This command will make zombies not spawn naturally. Just replace zombie with the entity of your choice. The instant a zombie spawns, it will be teleported into the void, creating the effect that it never spawned at all.
tp @e[type=Zombie] ~ ~-200 ~
for the creepers do these commands. The first command sets a spawner that spawns creepers with a tag, so they won't get targeted by the second command. The second command will just teleport any creeper without the tag, which would be any naturally spawned creeper. I hope this makes sense. Let me know if you have any questions.
/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnData:{id:"Creeper",Tags:["safe"]}}
tp @e[tag=!safe,type=Creeper] ~ ~-200 ~
tp @e[type=Zombie] ~ ~-200 ~
for the creepers do these commands. The first command sets a spawner that spawns creepers with a tag, so they won't get targeted by the second command. The second command will just teleport any creeper without the tag, which would be any naturally spawned creeper. I hope this makes sense. Let me know if you have any questions.
/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnData:{id:"Creeper",Tags:["safe"]}}
tp @e[tag=!safe,type=Creeper] ~ ~-200 ~