I have looked through out the forums and on the web for how to register a biome in 1.7.2, but have not found a solution yet. I have tried all the suggestions. Decided to ask here for some help. Here is my registration code. I have removed all spawn biomes to make it easier to find mine, but when I create a world, says can't find spawn biome. The biome does get registered with the BiomeDictionary. Tried with and without the Boolean in the contructor. Used forge 1047 and this is in 1056.
public static final BiomeGenBase TelvarianBiome = (new TelvarianBiome(75, true));
@EventHandler
public void preInit(FMLPreInitializationEvent event)
{
//Remove existing spawn biomes for testing purpose
BiomeManager.removeSpawnBiome(forest);
BiomeManager.removeSpawnBiome(taigaHills);
BiomeManager.removeSpawnBiome(taiga);
BiomeManager.removeSpawnBiome(plains);
BiomeManager.removeSpawnBiome(jungleHills);
BiomeManager.removeSpawnBiome(jungle);
BiomeManager.removeSpawnBiome(forestHills);
//New biome ot biome dictionary
BiomeDictionary.registerBiomeType(TelvarianBiome, Type.FOREST);
System.out.println("The biome registered yes or no !!!!!!!!!!!!! " + BiomeDictionary.registerBiomeType(TelvarianBiome, Type.FOREST));
//Add biome as a spawn biome
BiomeManager.addSpawnBiome(TelvarianBiome);
System.out.println("Allowed biomes**************** " + WorldChunkManager.allowedBiomes);
Here is my biome. Nothing fancy, just trying to get it to work before making more changes.
package test.biome;
import net.minecraft.block.Block;
import net.minecraft.entity.passive.EntityHorse;
import net.minecraft.entity.passive.EntityWolf;
import net.minecraft.init.Blocks;
import net.minecraft.world.biome.BiomeGenBase;
public class TelvarianBiome extends BiomeGenBase {
protected static final BiomeGenBase.Height height_telvarian = new BiomeGenBase.Height(0.2F, 0.2F);
public TelvarianBiome(int par1, Boolean register) {
super(par1, register);
this.setBiomeName("Telvarian Biome");
setHeight(height_telvarian);
this.topBlock = (Block)Blocks.grass;
this.fillerBlock = (Block)Blocks.brick_block;
this.setTemperatureRainfall(0.8F, 0.4F);
this.theBiomeDecorator.treesPerChunk = -999;
this.theBiomeDecorator.deadBushPerChunk = 0;
this.theBiomeDecorator.reedsPerChunk = 0;
this.theBiomeDecorator.cactiPerChunk = 0;
//this.spawnableCreatureList.add(new BiomeGenBase.SpawnListEntry(EntityHorse.class, 5, 2, 6));
//this.spawnableCreatureList.add(new SpawnListEntry(EntityWolf.class, 8, 4, 4));
this.spawnableCaveCreatureList.clear();
System.out.println("Am I getting to this part of the biome #########################");
}
}
Added 6 biomes and searched several worlds. Biomes are either not registering, or not being created. Deleted all code for biomes from mod. Closing this thread.
Still can't find the biome in the overworld, but made a dimension and used my biome and it generates in the new dimension just fine. Just looks like you can not make a custom biome and select it as a player spawn in biome. Or I am still missing something on that end.