Improved the Redwood Forest biome and thin redwood tree generation.
This commit is contained in:
parent
bb72175452
commit
111ed34276
2 changed files with 4 additions and 4 deletions
|
@ -7,6 +7,7 @@ import biomesoplenty.worldgen.WorldGenRedwoodTree2;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.world.biome.BiomeGenBase;
|
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.WorldGenTallGrass;
|
||||||
import net.minecraft.world.gen.feature.WorldGenerator;
|
import net.minecraft.world.gen.feature.WorldGenerator;
|
||||||
|
|
||||||
|
@ -19,7 +20,7 @@ public class BiomeGenRedwoodForest extends BiomeGenBase
|
||||||
super(par1);
|
super(par1);
|
||||||
this.theBiomeDecorator = new BiomeDecoratorBOP(this);
|
this.theBiomeDecorator = new BiomeDecoratorBOP(this);
|
||||||
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
|
this.customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
|
||||||
this.customBiomeDecorator.treesPerChunk = 10;
|
this.customBiomeDecorator.treesPerChunk = 6;
|
||||||
this.customBiomeDecorator.grassPerChunk = 16;
|
this.customBiomeDecorator.grassPerChunk = 16;
|
||||||
this.customBiomeDecorator.bushesPerChunk = 4;
|
this.customBiomeDecorator.bushesPerChunk = 4;
|
||||||
this.customBiomeDecorator.generatePumpkins = false;
|
this.customBiomeDecorator.generatePumpkins = false;
|
||||||
|
@ -30,8 +31,7 @@ public class BiomeGenRedwoodForest extends BiomeGenBase
|
||||||
*/
|
*/
|
||||||
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
|
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
|
||||||
{
|
{
|
||||||
//return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenRedwood2() : new WorldGenRedwood1());
|
return (WorldGenerator)(par1Random.nextInt(4) == 0 ? new WorldGenRedwoodTree(false) : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(0,0) : new WorldGenRedwoodTree2(false)));
|
||||||
return (WorldGenerator)(par1Random.nextInt(3) == 0 ? new WorldGenRedwoodTree(false) : new WorldGenRedwoodTree2(false));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -154,7 +154,7 @@ public class WorldGenRedwoodTree2 extends WorldGenerator
|
||||||
for (var11 = par4 - var9 + var6; var11 <= par4 + var6; ++var11)
|
for (var11 = par4 - var9 + var6; var11 <= par4 + var6; ++var11)
|
||||||
{
|
{
|
||||||
var12 = var11 - (par4 + var6);
|
var12 = var11 - (par4 + var6);
|
||||||
var13 = var18 + 1 - var12 / 8;
|
var13 = var18 + 1 - var12 / 6;
|
||||||
|
|
||||||
for (var14 = par3 - var13; var14 <= par3 + var13; ++var14)
|
for (var14 = par3 - var13; var14 <= par3 + var13; ++var14)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue