Posted May 13, 201411 yr Greetings! I can't quite figure out how to add more than one tree generator to my biome. Here is the biome's code. package fantasy_biomes.biomes; import java.util.Random; import fantasy_biomes.Main; import fantasy_biomes.trees.WorldGenTulipTree; import net.minecraft.block.Block; import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.gen.feature.WorldGenerator; public class BiomeEnchantedGrove extends BiomeGenBase { public BiomeEnchantedGrove(int par1) { super(par1); this.minHeight = 0.1F; this.maxHeight = 0.6F; this.spawnableMonsterList.clear(); this.spawnableCreatureList.clear(); this.topBlock = ((byte)Main.blockEnchantedGrass.blockID); this.fillerBlock = ((byte)Block.dirt.blockID); this.theBiomeDecorator.treesPerChunk = 5; this.setBiomeName("Enchanted Grove"); this.theBiomeDecorator.waterlilyPerChunk = 5; } public WorldGenerator getRandomWorldGenForTrees(Random par1Random) { return (WorldGenerator)new WorldGenTulipTree(true); } } Any help is greatly appreciated!
May 14, 201411 yr You can change the "biome decorator" of your biome, or override its decorate method to do more tree generation.
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.