Use
package fieldgeneral.example.entity.monster;
public EntityYourMob(World world) {
super(world);
this.tasks.addTask(TASKID, new AI(this));
}
I would go in order and have taskid be 1, 2, 3, and soforth
Replace AI with your AI Class
All of this would go in the EntityYOURMOB class
You have to create a basemod class and use fml Pre Initialization, Initialization, and Post Initialization Events to Register and Load your blocks, mobs, biomes, items, etc.
Fixed it by using
EntityRegistry
.addSpawn(EntityAncientzombie.class, 5, 1, 3, EnumCreatureType.monster, BiomeGenBase.BIOMENAME);
for each biome, tedious but works
Changing
EntityRegistry.addSpawn(EntityAncientzombie.class, 5, 1, 3, EnumCreatureType.monster, BiomeGenBase.biomelist);
to
EntityRegistry.addSpawn(EntityAncientzombie.class, 5, 1, 3, EnumCreatureType.monster, BiomeGenBase.desert);
fixes the problem, but i want it to be able to spawn in all biomes, except the nether or end
Whenever I run my mod it crashes and points to the line of code:
I have added a mob to the game and this is it's spawn method
I don't know how to fix it