From a869bb1abc91d891f49f5b5efc866a3c58e99484 Mon Sep 17 00:00:00 2001 From: Matt Caughey Date: Tue, 13 May 2014 17:49:52 -0400 Subject: [PATCH] Fixed the overgrown netherrack in the Undergarden --- .../biomes/nether/BiomeGenUndergarden.java | 21 ++++++++++++++----- .../blocks/BlockOvergrownNetherrack.java | 1 + .../biomesoplenty/common/core/BOPBiomes.java | 2 +- .../world/decoration/BOPWorldFeatures.java | 2 +- .../generation/WorldGenFieldAssociation.java | 4 ++-- 5 files changed, 21 insertions(+), 9 deletions(-) diff --git a/src/main/java/biomesoplenty/common/biomes/nether/BiomeGenUndergarden.java b/src/main/java/biomesoplenty/common/biomes/nether/BiomeGenUndergarden.java index 75d1b52ee..1aba25516 100644 --- a/src/main/java/biomesoplenty/common/biomes/nether/BiomeGenUndergarden.java +++ b/src/main/java/biomesoplenty/common/biomes/nether/BiomeGenUndergarden.java @@ -3,6 +3,7 @@ package biomesoplenty.common.biomes.nether; import net.minecraft.init.Blocks; import biomesoplenty.api.BOPBlockHelper; import biomesoplenty.common.biomes.BOPNetherBiome; +import biomesoplenty.common.world.features.WorldGenBOPTallGrass; public class BiomeGenUndergarden extends BOPNetherBiome { @@ -12,16 +13,26 @@ public class BiomeGenUndergarden extends BOPNetherBiome this.setColor(15657658); - this.topBlock = Blocks.netherrack; + this.topBlock = BOPBlockHelper.get("overgrownNetherrack"); this.fillerBlock = Blocks.netherrack; - this.bopWorldFeatures.setFeature("netherVinesPerChunk", 12); - this.bopWorldFeatures.setFeature("overgrownNetherrackPerChunk", 60); + this.theBiomeDecorator.mushroomsPerChunk = 60; + this.theBiomeDecorator.bigMushroomsPerChunk = 30; + + this.bopWorldFeatures.setFeature("netherVinesPerChunk", 20); + this.bopWorldFeatures.setFeature("netherrackSplatterPerChunk", 45); //customBiomeDecorator.gravesPerChunk = 1; this.bopWorldFeatures.setFeature("waspHivesPerChunk", 1); this.bopWorldFeatures.setFeature("toadstoolsPerChunk", 3); this.bopWorldFeatures.setFeature("glowshroomsPerChunk", 1); - this.theBiomeDecorator.mushroomsPerChunk = 30; - this.theBiomeDecorator.bigMushroomsPerChunk = 30; + + this.bopWorldFeatures.setFeature("bopGrassPerChunk", 30); + + this.bopWorldFeatures.weightedGrassGen.put(new WorldGenBOPTallGrass(Blocks.tallgrass, 0), 0.25D); + this.bopWorldFeatures.weightedGrassGen.put(new WorldGenBOPTallGrass(Blocks.tallgrass, 1), 1D); + this.bopWorldFeatures.weightedGrassGen.put(new WorldGenBOPTallGrass(BOPBlockHelper.get("foliage"), 1), 0.5D); + this.bopWorldFeatures.weightedGrassGen.put(new WorldGenBOPTallGrass(BOPBlockHelper.get("foliage"), 2), 0.5D); + this.bopWorldFeatures.weightedGrassGen.put(new WorldGenBOPTallGrass(BOPBlockHelper.get("foliage"), 10), 0.5D); + this.bopWorldFeatures.weightedGrassGen.put(new WorldGenBOPTallGrass(BOPBlockHelper.get("foliage"), 11), 0.5D); } } diff --git a/src/main/java/biomesoplenty/common/blocks/BlockOvergrownNetherrack.java b/src/main/java/biomesoplenty/common/blocks/BlockOvergrownNetherrack.java index a37788fb0..d6180d98e 100644 --- a/src/main/java/biomesoplenty/common/blocks/BlockOvergrownNetherrack.java +++ b/src/main/java/biomesoplenty/common/blocks/BlockOvergrownNetherrack.java @@ -3,6 +3,7 @@ package biomesoplenty.common.blocks; import java.util.Random; import net.minecraft.block.Block; +import net.minecraft.block.IGrowable; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.init.Blocks; diff --git a/src/main/java/biomesoplenty/common/core/BOPBiomes.java b/src/main/java/biomesoplenty/common/core/BOPBiomes.java index 1bcd3f614..526419f11 100644 --- a/src/main/java/biomesoplenty/common/core/BOPBiomes.java +++ b/src/main/java/biomesoplenty/common/core/BOPBiomes.java @@ -203,7 +203,7 @@ public class BOPBiomes private static void registerBiomes() { - onlyBiome = alps = registerOverworldBiome(BiomeGenAlps.class, "Alps", TemperatureType.ICY, 5); + alps = registerOverworldBiome(BiomeGenAlps.class, "Alps", TemperatureType.ICY, 5); arctic = registerOverworldBiome(BiomeGenArctic.class, "Arctic", TemperatureType.ICY, 10); bambooForest = registerOverworldBiome(BiomeGenBambooForest.class, "Bamboo Forest", TemperatureType.HOT, 5); bayou = registerOverworldBiome(BiomeGenBayou.class, "Bayou", TemperatureType.WARM, 10); diff --git a/src/main/java/biomesoplenty/common/world/decoration/BOPWorldFeatures.java b/src/main/java/biomesoplenty/common/world/decoration/BOPWorldFeatures.java index ef18bbe12..ac0140460 100644 --- a/src/main/java/biomesoplenty/common/world/decoration/BOPWorldFeatures.java +++ b/src/main/java/biomesoplenty/common/world/decoration/BOPWorldFeatures.java @@ -94,7 +94,7 @@ public class BOPWorldFeatures addFeature("boneSpinesDownPerChunk", 0); addFeature("netherLavaLakesPerChunk", 0); addFeature("netherVinesPerChunk", 0); - addFeature("overgrownNetherrackPerChunk", 0); + addFeature("netherrackSplatterPerChunk", 0); addFeature("bopFlowersPerChunk", 0); addFeature("bopGrassPerChunk", 0); diff --git a/src/main/java/biomesoplenty/common/world/generation/WorldGenFieldAssociation.java b/src/main/java/biomesoplenty/common/world/generation/WorldGenFieldAssociation.java index ee8c562a4..8b6f2519f 100644 --- a/src/main/java/biomesoplenty/common/world/generation/WorldGenFieldAssociation.java +++ b/src/main/java/biomesoplenty/common/world/generation/WorldGenFieldAssociation.java @@ -113,8 +113,8 @@ public class WorldGenFieldAssociation associateFeature("boneSpinesUpPerChunk", new WorldGenBoneSpine(false)); associateFeature("boneSpinesDownPerChunk", new WorldGenBoneSpine(true)); associateFeature("netherLavaLakesPerChunk", new WorldGenLakesNether()); - associateFeature("netherVinesPerChunk", new WorldGenLongVine(BOPBlockHelper.get("ivy"), 15, 30)); - associateFeature("overgrownNetherrackPerChunk", new WorldGenOvergrownNetherrack()); + associateFeature("netherVinesPerChunk", new WorldGenLongVine(BOPBlockHelper.get("ivy"), 15, 45)); + associateFeature("netherrackSplatterPerChunk", new WorldGenSplatter(Blocks.netherrack, BOPBlockHelper.get("overgrownNetherrack"))); associateFeature("bopFlowersPerChunk", new WorldGenBOPFlowerManager()); associateFeature("bopGrassPerChunk", new WorldGenBOPGrassManager());