Jump to content

Recommended Posts

Posted

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!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.