Posted May 11, 201411 yr Hello, I have a biome but I dont know how to register it. GameRegistry.addBiome has been removed so how can i register it? Thanks to the helpers!
May 11, 201411 yr Author The BiomeGenBase class: package cc.cu.maximka.GreenCraft.biome; import cc.cu.maximka.GreenCraft.block.BlockHandler; import cc.cu.maximka.GreenCraft.lib.BiomeNames; import net.minecraft.world.biome.BiomeGenBase; public class BiomeGenGreenCraft extends BiomeGenBase { public BiomeGenGreenCraft(int biomeId) { super(biomeId); this.temperature = 1.0F; this.rootHeight = -0.5F; this.setBiomeName("greenCraft.greenCraftBiome"); this.setHeight(height_Default); this.topBlock = BlockHandler.blockMalachiteBlock; this.fillerBlock = BlockHandler.blockMalachiteOre; } } The BiomeHandler class (called at the end of preInit after registering items and blocks): package cc.cu.maximka.GreenCraft.biome; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.common.BiomeDictionary; import net.minecraftforge.common.BiomeDictionary.Type; import net.minecraftforge.common.BiomeManager; public class BiomeHandler { public static BiomeGenBase biomeGreenCraft; public static void registerBiomes() { biomeGreenCraft = new BiomeGenGreenCraft(40); BiomeManager.addSpawnBiome(biomeGreenCraft); BiomeDictionary.registerBiomeType(biomeGreenCraft, Type.FOREST); } }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.