I am not trying to be rude but in the first post I said that "EntityRegistry.addSpawn(entity.class, spawnRate, min, max, creatureType, biome);" was exactly what I was using and it is not working.
When I was using the global unique ID I was registering it to my entity (and diesieben07 said I should not do that so I registered them with my own IDs.)
The spawn eggs and Summon command were(and are) not a problem. They work fine. My mob is not spawning naturally in the world.
Here is ALL my current code I am using for entitys
Registering Entitys :
public class RegisterEntitys {
public static void RegisterFishyEntitys() {
GerbsEntityRegistrar.registerEntity(EntityCod.class, "entityCod", 8774806, 11784191,0);
GerbsEntityRegistrar.registerEntity(EntitySalmon.class, "entitySalmon", 11295305, 16766904,1);
GerbsEntityRegistrar.registerEntity(EntityPuffer.class, "entityPuffer", 16764928, 3839999,2);
GerbsEntityRegistrar.registerEntity(EntityClown.class, "entityClown", 16740096, 16777215,3);
}
}
public class GerbsEntityRegistrar {
public static void registerEntity(Class entityClass, String name, Integer colorOne, Integer colorTwo, Integer gerbsEntityID) {
int entityID = 354 + gerbsEntityID;
int primaryColor = colorOne;
int secondaryColor = colorTwo;
EntityRegistry.registerModEntity(entityClass, name, entityID, FishyPlus.instance, 64, 1, true);
EntityList.addMapping(entityClass, name, entityID, primaryColor, secondaryColor);
System.out.println("Registering GerbShert's Fish entity " + name + " with ID of " + entityID);
}
}
Making entities spawn in world
public class RegisterEntitySpawns {
static BiomeGenBase[] WaterBiomes = {BiomeGenBase.beach, BiomeGenBase.ocean, BiomeGenBase.deepOcean, BiomeGenBase.swampland, BiomeGenBase.frozenOcean, BiomeGenBase.frozenRiver};
public static void registerEntitySpawns() {
System.out.println("Registering natural fish spawns");
EntityRegistry.addSpawn(EntityCod.class, 50, 1,7, EnumCreatureType.WATER_CREATURE, BiomeGenBase.deepOcean);
EntityRegistry.addSpawn(EntityClown.class, 20, 2, 5, EnumCreatureType.WATER_CREATURE, WaterBiomes);
EntityRegistry.addSpawn(EntitySalmon.class, 20, 2, 7, EnumCreatureType.WATER_CREATURE, WaterBiomes);
}
}