From da7f311e7f8829ffd417c583bdb94d1985808d10 Mon Sep 17 00:00:00 2001 From: Matt Caughey Date: Thu, 15 May 2014 18:10:54 -0400 Subject: [PATCH] Tweaked the Deciduous Forest and Shrubland --- .../biomes/overworld/BiomeGenDeciduousForest.java | 12 +++++++----- .../common/biomes/overworld/BiomeGenShrubland.java | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenDeciduousForest.java b/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenDeciduousForest.java index 5ce1b7369..bb9f543b2 100644 --- a/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenDeciduousForest.java +++ b/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenDeciduousForest.java @@ -25,7 +25,7 @@ public class BiomeGenDeciduousForest extends BOPBiome this.setColor(12695369); this.setTemperatureRainfall(0.7F, 0.8F); - this.theBiomeDecorator.treesPerChunk = 15; + this.theBiomeDecorator.treesPerChunk = 18; this.theBiomeDecorator.grassPerChunk = 10; this.theBiomeDecorator.flowersPerChunk = -999; @@ -52,7 +52,7 @@ public class BiomeGenDeciduousForest extends BOPBiome //TODO: getRandomWorldGenForTrees() public WorldGenAbstractTree func_150567_a(Random random) { - return random.nextInt(4) == 0 ? new WorldGenShrub(2,2) : new WorldGenBulbTree(Blocks.log, Blocks.leaves, 0, 0, false, 10, 15, false); + return random.nextInt(6) == 0 ? new WorldGenShrub(2,2) : (random.nextInt(3) == 0 ? new WorldGenShrub(0,0) : new WorldGenBulbTree(Blocks.log, Blocks.leaves, 0, 0, false, 10, 15, false)); } @@ -78,14 +78,16 @@ public class BiomeGenDeciduousForest extends BOPBiome } @Override - public int getBiomeGrassColor(int p_150558_1_, int p_150558_2_, int p_150558_3_) + public int getBiomeGrassColor(int x, int y, int z) { - return 12695369; + double d0 = plantNoise.func_151601_a((double)x * 0.0225D, (double)z * 0.0225D); + return d0 < -0.1D ? 12695369 : 11374145; } @Override public int getBiomeFoliageColor(int x, int y, int z) { - return 12896570; + double d0 = plantNoise.func_151601_a((double)x * 0.0225D, (double)z * 0.0225D); + return d0 < -0.1D ? 12896570 : 11510344; } } diff --git a/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenShrubland.java b/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenShrubland.java index 3f735f5d3..c20dff1c3 100644 --- a/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenShrubland.java +++ b/src/main/java/biomesoplenty/common/biomes/overworld/BiomeGenShrubland.java @@ -29,7 +29,7 @@ public class BiomeGenShrubland extends BOPBiome this.spawnableCreatureList.add(new SpawnListEntry(EntityHorse.class, 5, 2, 6)); - this.theBiomeDecorator.treesPerChunk = 0; + this.theBiomeDecorator.treesPerChunk = 1; this.theBiomeDecorator.flowersPerChunk = 0; this.theBiomeDecorator.grassPerChunk = 5;