1
Command block system to prevent spawning.
I am making a survival map, but I want to make a system that only allows certain mobs to spawn. So I can't change doMobSpawning because it will prevent ALL mobs from spawning. Is there a lag-proof way to do this?
I have tried killing the mobs that should not be spawned, but you can see it flickering as it spawn and dies and it sometimes causes lag.
I have tried killing the mobs that should not be spawned, but you can see it flickering as it spawn and dies and it sometimes causes lag.
7
Alternatively, instead of moving the mobs, the fill clock could be attached to commands which make the necessary mobs invisible and have NoAI set to 1? Then they're basically not there.
With purely command blocks, you can only kill them or do what TheArchitect said and teleport them into the void. If neither of those will work for you, then you'll have to find some other way to do it.
Gonna use plugins with SpigotMC
Use your existing system, which sounds like a fill clock, but teleport the prohibited mobs to y=-200, they will practically disappear.
That was the plan, but it might cause lag and if the mobs spawn in front of you you can see it flicker. Maybe make the textures of the mobs invisible with a resource pack?
You just answered your own question?
Well, we're discussing
