Started by
camgampp
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to create a mod that disables all vanilla monsters from spawning. I created a procedure that checks when an entity is spawned, and if it's a monster, de-spawns it. But this procedure drastically reduces the performance of the game. (I'm creating a mod that spawns in hordes of a custom mob instead of vanilla mobs).
I know some Java if scripting is required, but I don't know how to edit vanilla entities.
I'm on 2020.1 by the way
on initial enitity spawn global trigger -> if provided entity = ()
despawn provided entity
Isn't that the same thing?
I'm using the same procedure, on entity spawn checks for each mob and despawns it.
It works but messes up all the spawn rates since mobs technically still spawn and are then removed. I had to create spawners to do the job instead. I made a copy of deadbushes to randomly spawn my mobs since the bushes are found in most biomes.