I'm trying to add my own biome, yet I keep crashing on world creation.
TerraMagna:
package terramagna;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.network.NetworkMod;
@Mod(modid = "terramagna", name = "Terra Magna")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class TerraMagna
{
@Instance("terraramagna")
public static TerraMagna instance;
@SidedProxy(clientSide = "terramagna.ClientProxy", serverSide = "terramagna.ServerProxy")
public static ServerProxy proxy;
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
System.out.println("***********************************************************************************************************************************");
System.out.println("Initializing TerraMagna");
System.out.println("***********************************************************************************************************************************");
}
@EventHandler
public void load(FMLInitializationEvent event)
{
ClientProxy.init();
}
@EventHandler
public void postInit(FMLPostInitializationEvent event)
{
System.out.println("***********************************************************************************************************************************");
System.out.println("Finished initializing TerraMagna");
System.out.println("***********************************************************************************************************************************");
}
}
ClientProxy:
package terramagna;
import terramagna.helpers.*;
public class ClientProxy extends ServerProxy
{
@Override
public void registerRenderers()
{}
public static void init()
{
ConfigurationHelper.init();
MiscHelper.init();
OverworldBlockHelper.init();
OverworldItemHelper.init();
MalumBlockHelper.init();
MalumItemHelper.init();
BiomeHelper.init();
}
}
BiomeGenHelper:
package terramagna.helpers;
import cpw.mods.fml.common.registry.GameRegistry;
import terramagna.biomes.*;
import net.minecraft.world.biome.BiomeGenBase;
public class BiomeHelper
{
public static BiomeGenBase malumLands;
public static void init()
{
malumLands = new BiomeGenMalumLands(20);
GameRegistry.addBiome(malumLands);
}
}
BiomeGenMalumLands
package terramagna.biomes;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.entity.monster.EntityGhast;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.SpawnListEntry;
import terramagna.helpers.MalumBlockHelper;
public class BiomeGenMalumLands extends BiomeGenBase
{
public BiomeGenMalumLands(int id)
{
super(id);
this.topBlock = (byte)MalumBlockHelper.MalumGrass.blockID;
this.fillerBlock = (byte)MalumBlockHelper.MalumDirt.blockID;
this.biomeName = "Malum Lands";
this.temperature = 2.0F;
this.waterColorMultiplier = 0xE01B1B;
this.setMinMaxHeight(50.0F, 200.0F);
this.theBiomeDecorator.treesPerChunk = 0;
this.theBiomeDecorator.flowersPerChunk = 0;
this.theBiomeDecorator.grassPerChunk = 0;
this.theBiomeDecorator.clayPerChunk = 0;
this.theBiomeDecorator.reedsPerChunk = 0;
this.spawnableCreatureList.clear();
this.spawnableCaveCreatureList.clear();
this.spawnableMonsterList.clear();
this.spawnableWaterCreatureList.clear();
this.spawnableMonsterList.add(new SpawnListEntry(EntityGhast.class, id, 1, 2));
}
}