Topic category: Help with 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.