Jump to content

[SOLVED] addSpawn and removeSpawn


Recommended Posts

Hello all! I'm new to Forge (obviously) and recently switched over from ModLoader.


Anyways, my mod removes a lot of the vanilla mobs and adds a few new ones, but the addSpawn and removeSpawn methods in EntityRegistry don't seem to be working for me... There are no errors, yet they don't... Work.


Some code:

EntityRegistry.removeSpawn(EntityPig.class, EnumCreatureType.creature, WorldType.base12Biomes);
EntityRegistry.addSpawn(EntityWalker.class, 50, 5, 20, EnumCreatureType.monster);


Would really appreciate some help with this, thanks! :)

Link to comment
Share on other sites

Is it in your @Init method?


The removes are in a separate method that is called in the init method, so I can keep it less cluttered. The addSpawns are still inside the init method, though. Neither work. :( When I was using the ModLoader versions they seemed to work somewhat. Though monsters still spawned in dark places... Hence I tried switching to the EntityRegistry methods to see if they would fix that, but they didn't work at all... xD


EDIT: Thanks for the response, by the way. :)

Link to comment
Share on other sites

This topic is now closed to further replies.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.