From 83348587ce461e2a8da722ea58281821c0871a2c Mon Sep 17 00:00:00 2001 From: Matt Caughey Date: Fri, 22 Jan 2016 19:58:21 -0500 Subject: [PATCH] Tweaked the wetland biome, made dead forests and dead swamps less common --- .../common/biome/overworld/BiomeGenDeadForest.java | 4 ++-- .../common/biome/overworld/BiomeGenDeadSwamp.java | 2 +- .../common/biome/overworld/BiomeGenWetland.java | 14 ++++++-------- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/main/java/biomesoplenty/common/biome/overworld/BiomeGenDeadForest.java b/src/main/java/biomesoplenty/common/biome/overworld/BiomeGenDeadForest.java index 9ee40e78d..445fc7c24 100644 --- a/src/main/java/biomesoplenty/common/biome/overworld/BiomeGenDeadForest.java +++ b/src/main/java/biomesoplenty/common/biome/overworld/BiomeGenDeadForest.java @@ -46,8 +46,8 @@ public class BiomeGenDeadForest extends BOPBiome this.setColor(0xBCA165); this.setTemperatureRainfall(0.4F, 0.3F); - this.addWeight(BOPClimates.COOL_TEMPERATE, 5); - this.addWeight(BOPClimates.BOREAL, 1); + this.addWeight(BOPClimates.COOL_TEMPERATE, 2); + this.addWeight(BOPClimates.BOREAL, 3); // gravel this.addGenerator("gravel", GeneratorStage.SAND_PASS2, (new GeneratorWaterside.Builder()).amountPerChunk(4).maxRadius(7).with(Blocks.gravel.getDefaultState()).create()); diff --git a/src/main/java/biomesoplenty/common/biome/overworld/BiomeGenDeadSwamp.java b/src/main/java/biomesoplenty/common/biome/overworld/BiomeGenDeadSwamp.java index bccafa598..8e867b25f 100644 --- a/src/main/java/biomesoplenty/common/biome/overworld/BiomeGenDeadSwamp.java +++ b/src/main/java/biomesoplenty/common/biome/overworld/BiomeGenDeadSwamp.java @@ -55,7 +55,7 @@ public class BiomeGenDeadSwamp extends BOPBiome this.canGenerateRivers = false; this.canGenerateVillages = false; - this.addWeight(BOPClimates.COLD_SWAMP, 5); + this.addWeight(BOPClimates.COLD_SWAMP, 3); this.spawnableCreatureList.clear(); this.spawnableWaterCreatureList.clear(); diff --git a/src/main/java/biomesoplenty/common/biome/overworld/BiomeGenWetland.java b/src/main/java/biomesoplenty/common/biome/overworld/BiomeGenWetland.java index 9a3bb8ad8..80577f1dc 100644 --- a/src/main/java/biomesoplenty/common/biome/overworld/BiomeGenWetland.java +++ b/src/main/java/biomesoplenty/common/biome/overworld/BiomeGenWetland.java @@ -9,8 +9,9 @@ package biomesoplenty.common.biome.overworld; import net.minecraft.block.BlockDoublePlant; -import net.minecraft.block.BlockTallGrass; import net.minecraft.block.BlockFlower.EnumFlowerType; +import net.minecraft.block.BlockLeaves; +import net.minecraft.block.BlockTallGrass; import net.minecraft.entity.monster.EntitySlime; import net.minecraft.init.Blocks; import net.minecraft.util.BlockPos; @@ -25,7 +26,6 @@ import biomesoplenty.common.block.BlockBOPLeaves; import biomesoplenty.common.block.BlockBOPLilypad; import biomesoplenty.common.block.BlockBOPMushroom; import biomesoplenty.common.block.BlockBOPPlant; -import biomesoplenty.common.block.BlockBOPVine; import biomesoplenty.common.enums.BOPClimates; import biomesoplenty.common.enums.BOPFlowers; import biomesoplenty.common.enums.BOPGems; @@ -33,8 +33,6 @@ import biomesoplenty.common.enums.BOPPlants; import biomesoplenty.common.enums.BOPTrees; import biomesoplenty.common.enums.BOPWoods; import biomesoplenty.common.util.biome.GeneratorUtils.ScatterYMethod; -import biomesoplenty.common.util.block.BlockQuery; -import biomesoplenty.common.util.block.BlockQuery.IBlockPosQuery; import biomesoplenty.common.world.BOPWorldSettings; import biomesoplenty.common.world.feature.GeneratorColumns; import biomesoplenty.common.world.feature.GeneratorDoubleFlora; @@ -51,7 +49,7 @@ public class BiomeGenWetland extends BOPBiome public BiomeGenWetland() { // terrain - this.terrainSettings.avgHeight(63).heightVariation(5, 10).octaves(1, 1, 1, 1, 0, 0).sidewaysNoise(0.0F); + this.terrainSettings.avgHeight(63).heightVariation(5, 15).octaves(1, 1, 1, 1, 0, 0).sidewaysNoise(0.0F); this.setColor(0x4F9657); this.setTemperatureRainfall(0.6F, 0.9F); @@ -70,10 +68,10 @@ public class BiomeGenWetland extends BOPBiome this.addGenerator("mud", GeneratorStage.SAND_PASS2, (new GeneratorWaterside.Builder()).amountPerChunk(10).maxRadius(8).with(BOPBlocks.mud.getDefaultState()).create()); // trees & logs - GeneratorWeighted treeGenerator = new GeneratorWeighted(9); + GeneratorWeighted treeGenerator = new GeneratorWeighted(7); this.addGenerator("trees", GeneratorStage.TREE, treeGenerator); - treeGenerator.add("willow", 5, (new GeneratorBasicTree.Builder()).log(BOPWoods.WILLOW).leaves(BOPTrees.WILLOW).minHeight(8).maxHeight(12).minLeavesRadius(2).vine(BlockBOPLeaves.paging.getVariantState(BOPTrees.WILLOW)).create()); - treeGenerator.add("spruce", 4, (new GeneratorTaigaTree.Builder()).maxHeight(13).create()); // TODO: implement pine cones + treeGenerator.add("willow", 3, (new GeneratorBasicTree.Builder()).log(BOPWoods.WILLOW).leaves(BOPTrees.WILLOW).minHeight(8).maxHeight(12).minLeavesRadius(2).vine(BlockBOPLeaves.paging.getVariantState(BOPTrees.WILLOW).withProperty(BlockLeaves.DECAYABLE, Boolean.valueOf(false))).leavesOffset(0).create()); + treeGenerator.add("spruce", 5, (new GeneratorTaigaTree.Builder()).maxHeight(13).create()); // TODO: implement pine cones // grasses GeneratorWeighted grassGenerator = new GeneratorWeighted(10.0F);