Improved the Redwood Forest biome and thin redwood tree generation.

This commit is contained in:
Matt Caughey 2013-05-07 09:10:33 -04:00
parent bb72175452
commit 111ed34276
2 changed files with 4 additions and 4 deletions

View file

@ -7,6 +7,7 @@ import biomesoplenty.worldgen.WorldGenRedwoodTree2;
import net.minecraft.block.Block;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.feature.WorldGenShrub;
import net.minecraft.world.gen.feature.WorldGenTallGrass;
import net.minecraft.world.gen.feature.WorldGenerator;
@ -19,7 +20,7 @@ public class BiomeGenRedwoodForest extends BiomeGenBase
super(par1);
this.theBiomeDecorator = new BiomeDecoratorBOP(this);
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
this.customBiomeDecorator.treesPerChunk = 10;
this.customBiomeDecorator.treesPerChunk = 6;
this.customBiomeDecorator.grassPerChunk = 16;
this.customBiomeDecorator.bushesPerChunk = 4;
this.customBiomeDecorator.generatePumpkins = false;
@ -30,8 +31,7 @@ public class BiomeGenRedwoodForest extends BiomeGenBase
*/
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
//return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenRedwood2() : new WorldGenRedwood1());
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenRedwoodTree(false) : new WorldGenRedwoodTree2(false));
return (WorldGenerator)(par1Random.nextInt(4) == 0 ? new WorldGenRedwoodTree(false) : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(0,0) : new WorldGenRedwoodTree2(false)));
}
/**

View file

@ -154,7 +154,7 @@ public class WorldGenRedwoodTree2 extends WorldGenerator
for (var11 = par4 - var9 + var6; var11 <= par4 + var6; ++var11)
{
var12 = var11 - (par4 + var6);
var13 = var18 + 1 - var12 / 8;
var13 = var18 + 1 - var12 / 6;
for (var14 = par3 - var13; var14 <= par3 + var13; ++var14)
{