From 142ff6680fb4f76bada801f9a06236c85064b10f Mon Sep 17 00:00:00 2001 From: Forstride Date: Sat, 25 May 2019 04:36:50 -0400 Subject: [PATCH] Added Igloos/Woodland Mansions to certain biomes --- .../biomesoplenty/common/biome/overworld/ColdDesertBiome.java | 2 ++ .../common/biome/overworld/ConiferousForestBiome.java | 2 ++ .../biomesoplenty/common/biome/overworld/DeadForestBiome.java | 2 ++ .../biomesoplenty/common/biome/overworld/OminousWoodsBiome.java | 2 ++ .../common/biome/overworld/SeasonalForestBiome.java | 2 ++ .../biomesoplenty/common/biome/overworld/SnowyForestBiome.java | 2 ++ .../biomesoplenty/common/biome/overworld/WoodlandBiome.java | 2 ++ 7 files changed, 14 insertions(+) diff --git a/src/main/java/biomesoplenty/common/biome/overworld/ColdDesertBiome.java b/src/main/java/biomesoplenty/common/biome/overworld/ColdDesertBiome.java index 1f4544fdf..31e6622d9 100644 --- a/src/main/java/biomesoplenty/common/biome/overworld/ColdDesertBiome.java +++ b/src/main/java/biomesoplenty/common/biome/overworld/ColdDesertBiome.java @@ -28,6 +28,7 @@ import net.minecraft.world.gen.feature.LiquidsConfig; import net.minecraft.world.gen.feature.MinableConfig; import net.minecraft.world.gen.feature.ProbabilityConfig; import net.minecraft.world.gen.feature.SphereReplaceConfig; +import net.minecraft.world.gen.feature.structure.IglooConfig; import net.minecraft.world.gen.feature.structure.MineshaftConfig; import net.minecraft.world.gen.feature.structure.MineshaftStructure; import net.minecraft.world.gen.feature.structure.StrongholdConfig; @@ -49,6 +50,7 @@ public class ColdDesertBiome extends BiomeBOP super((new Biome.BiomeBuilder()).surfaceBuilder(new CompositeSurfaceBuilder(BOPBiomeFeatures.COLD_DESERT_SURFACE_BUILDER, GRAVEL_SURFACE)).precipitation(Biome.RainType.NONE).category(Biome.Category.ICY).depth(0.0F).scale(0.0F).temperature(-0.25F).downfall(0.0F).waterColor(4159204).waterFogColor(329011).parent((String)null)); // Mineshafts and Strongholds + this.addStructure(Feature.IGLOO, new IglooConfig()); this.addStructure(Feature.MINESHAFT, new MineshaftConfig(0.004D, MineshaftStructure.Type.NORMAL)); this.addStructure(Feature.STRONGHOLD, new StrongholdConfig()); diff --git a/src/main/java/biomesoplenty/common/biome/overworld/ConiferousForestBiome.java b/src/main/java/biomesoplenty/common/biome/overworld/ConiferousForestBiome.java index 960d9d645..07037ecf2 100644 --- a/src/main/java/biomesoplenty/common/biome/overworld/ConiferousForestBiome.java +++ b/src/main/java/biomesoplenty/common/biome/overworld/ConiferousForestBiome.java @@ -33,6 +33,7 @@ import net.minecraft.world.gen.feature.SphereReplaceConfig; import net.minecraft.world.gen.feature.structure.MineshaftConfig; import net.minecraft.world.gen.feature.structure.MineshaftStructure; import net.minecraft.world.gen.feature.structure.StrongholdConfig; +import net.minecraft.world.gen.feature.structure.WoodlandMansionConfig; import net.minecraft.world.gen.placement.AtSurfaceWithExtraConfig; import net.minecraft.world.gen.placement.ChanceConfig; import net.minecraft.world.gen.placement.CountRangeConfig; @@ -50,6 +51,7 @@ public class ConiferousForestBiome extends BiomeBOP super((new Biome.BiomeBuilder()).surfaceBuilder(new CompositeSurfaceBuilder(DEFAULT_SURFACE_BUILDER, GRASS_DIRT_GRAVEL_SURFACE)).precipitation(Biome.RainType.RAIN).category(Biome.Category.TAIGA).depth(0.2F).scale(0.1F).temperature(0.45F).downfall(0.5F).waterColor(4159204).waterFogColor(329011).parent((String)null)); // Mineshafts and Strongholds + this.addStructure(Feature.WOODLAND_MANSION, new WoodlandMansionConfig()); this.addStructure(Feature.MINESHAFT, new MineshaftConfig(0.004D, MineshaftStructure.Type.NORMAL)); this.addStructure(Feature.STRONGHOLD, new StrongholdConfig()); diff --git a/src/main/java/biomesoplenty/common/biome/overworld/DeadForestBiome.java b/src/main/java/biomesoplenty/common/biome/overworld/DeadForestBiome.java index 13a68fb79..eb9b8ba3b 100644 --- a/src/main/java/biomesoplenty/common/biome/overworld/DeadForestBiome.java +++ b/src/main/java/biomesoplenty/common/biome/overworld/DeadForestBiome.java @@ -32,6 +32,7 @@ import net.minecraft.world.gen.feature.SphereReplaceConfig; import net.minecraft.world.gen.feature.structure.MineshaftConfig; import net.minecraft.world.gen.feature.structure.MineshaftStructure; import net.minecraft.world.gen.feature.structure.StrongholdConfig; +import net.minecraft.world.gen.feature.structure.WoodlandMansionConfig; import net.minecraft.world.gen.placement.AtSurfaceWithExtraConfig; import net.minecraft.world.gen.placement.ChanceConfig; import net.minecraft.world.gen.placement.CountRangeConfig; @@ -51,6 +52,7 @@ public class DeadForestBiome extends BiomeBOP super((new Biome.BiomeBuilder()).surfaceBuilder(new CompositeSurfaceBuilder(DEFAULT_SURFACE_BUILDER, GRASS_DIRT_GRAVEL_SURFACE)).precipitation(Biome.RainType.RAIN).category(Biome.Category.FOREST).depth(0.2F).scale(0.2F).temperature(0.3F).downfall(0.3F).waterColor(4159204).waterFogColor(329011).parent((String)null)); // Mineshafts and Strongholds + this.addStructure(Feature.WOODLAND_MANSION, new WoodlandMansionConfig()); this.addStructure(Feature.MINESHAFT, new MineshaftConfig(0.004D, MineshaftStructure.Type.NORMAL)); this.addStructure(Feature.STRONGHOLD, new StrongholdConfig()); diff --git a/src/main/java/biomesoplenty/common/biome/overworld/OminousWoodsBiome.java b/src/main/java/biomesoplenty/common/biome/overworld/OminousWoodsBiome.java index afc377649..8b55c9fa3 100644 --- a/src/main/java/biomesoplenty/common/biome/overworld/OminousWoodsBiome.java +++ b/src/main/java/biomesoplenty/common/biome/overworld/OminousWoodsBiome.java @@ -31,6 +31,7 @@ import net.minecraft.world.gen.feature.structure.MineshaftConfig; import net.minecraft.world.gen.feature.structure.MineshaftStructure; import net.minecraft.world.gen.feature.structure.StrongholdConfig; import net.minecraft.world.gen.feature.structure.SwampHutConfig; +import net.minecraft.world.gen.feature.structure.WoodlandMansionConfig; import net.minecraft.world.gen.placement.AtSurfaceWithExtraConfig; import net.minecraft.world.gen.placement.ChanceConfig; import net.minecraft.world.gen.placement.CountRangeConfig; @@ -50,6 +51,7 @@ public class OminousWoodsBiome extends BiomeBOP super((new Biome.BiomeBuilder()).surfaceBuilder(new CompositeSurfaceBuilder(DEFAULT_SURFACE_BUILDER, GRASS_DIRT_GRAVEL_SURFACE)).precipitation(Biome.RainType.RAIN).category(Biome.Category.FOREST).depth(0.1F).scale(0.2F).temperature(0.6F).downfall(0.6F).waterColor(0x312346).waterFogColor(0x0A030C).parent((String)null)); // Mineshafts and Strongholds + this.addStructure(Feature.WOODLAND_MANSION, new WoodlandMansionConfig()); this.addStructure(Feature.SWAMP_HUT, new SwampHutConfig()); this.addStructure(Feature.MINESHAFT, new MineshaftConfig(0.004D, MineshaftStructure.Type.NORMAL)); this.addStructure(Feature.STRONGHOLD, new StrongholdConfig()); diff --git a/src/main/java/biomesoplenty/common/biome/overworld/SeasonalForestBiome.java b/src/main/java/biomesoplenty/common/biome/overworld/SeasonalForestBiome.java index 49d4ab25b..ac8d2e8a2 100644 --- a/src/main/java/biomesoplenty/common/biome/overworld/SeasonalForestBiome.java +++ b/src/main/java/biomesoplenty/common/biome/overworld/SeasonalForestBiome.java @@ -34,6 +34,7 @@ import net.minecraft.world.gen.feature.SphereReplaceConfig; import net.minecraft.world.gen.feature.structure.MineshaftConfig; import net.minecraft.world.gen.feature.structure.MineshaftStructure; import net.minecraft.world.gen.feature.structure.StrongholdConfig; +import net.minecraft.world.gen.feature.structure.WoodlandMansionConfig; import net.minecraft.world.gen.placement.AtSurfaceWithExtraConfig; import net.minecraft.world.gen.placement.ChanceConfig; import net.minecraft.world.gen.placement.CountRangeConfig; @@ -53,6 +54,7 @@ public class SeasonalForestBiome extends BiomeBOP super((new Biome.BiomeBuilder()).surfaceBuilder(new CompositeSurfaceBuilder(DEFAULT_SURFACE_BUILDER, GRASS_DIRT_GRAVEL_SURFACE)).precipitation(Biome.RainType.RAIN).category(Biome.Category.TAIGA).depth(0.2F).scale(0.2F).temperature(0.4F).downfall(0.8F).waterColor(4159204).waterFogColor(329011).parent((String)null)); // Mineshafts and Strongholds + this.addStructure(Feature.WOODLAND_MANSION, new WoodlandMansionConfig()); this.addStructure(Feature.MINESHAFT, new MineshaftConfig(0.004D, MineshaftStructure.Type.NORMAL)); this.addStructure(Feature.STRONGHOLD, new StrongholdConfig()); diff --git a/src/main/java/biomesoplenty/common/biome/overworld/SnowyForestBiome.java b/src/main/java/biomesoplenty/common/biome/overworld/SnowyForestBiome.java index 9887ce1ea..e0330cd3b 100644 --- a/src/main/java/biomesoplenty/common/biome/overworld/SnowyForestBiome.java +++ b/src/main/java/biomesoplenty/common/biome/overworld/SnowyForestBiome.java @@ -28,6 +28,7 @@ import net.minecraft.world.gen.feature.MinableConfig; import net.minecraft.world.gen.feature.ProbabilityConfig; import net.minecraft.world.gen.feature.RandomDefaultFeatureListConfig; import net.minecraft.world.gen.feature.SphereReplaceConfig; +import net.minecraft.world.gen.feature.structure.IglooConfig; import net.minecraft.world.gen.feature.structure.MineshaftConfig; import net.minecraft.world.gen.feature.structure.MineshaftStructure; import net.minecraft.world.gen.feature.structure.StrongholdConfig; @@ -50,6 +51,7 @@ public class SnowyForestBiome extends BiomeBOP super((new Biome.BiomeBuilder()).surfaceBuilder(new CompositeSurfaceBuilder(DEFAULT_SURFACE_BUILDER, GRASS_DIRT_GRAVEL_SURFACE)).precipitation(Biome.RainType.SNOW).category(Biome.Category.ICY).depth(0.2F).scale(0.2F).temperature(-0.25F).downfall(0.5F).waterColor(4159204).waterFogColor(329011).parent((String)null)); // Mineshafts and Strongholds + this.addStructure(Feature.IGLOO, new IglooConfig()); this.addStructure(Feature.MINESHAFT, new MineshaftConfig(0.004D, MineshaftStructure.Type.NORMAL)); this.addStructure(Feature.STRONGHOLD, new StrongholdConfig()); diff --git a/src/main/java/biomesoplenty/common/biome/overworld/WoodlandBiome.java b/src/main/java/biomesoplenty/common/biome/overworld/WoodlandBiome.java index 5797f2ea1..b3856f0f8 100644 --- a/src/main/java/biomesoplenty/common/biome/overworld/WoodlandBiome.java +++ b/src/main/java/biomesoplenty/common/biome/overworld/WoodlandBiome.java @@ -33,6 +33,7 @@ import net.minecraft.world.gen.feature.SphereReplaceConfig; import net.minecraft.world.gen.feature.structure.MineshaftConfig; import net.minecraft.world.gen.feature.structure.MineshaftStructure; import net.minecraft.world.gen.feature.structure.StrongholdConfig; +import net.minecraft.world.gen.feature.structure.WoodlandMansionConfig; import net.minecraft.world.gen.placement.AtSurfaceWithExtraConfig; import net.minecraft.world.gen.placement.ChanceConfig; import net.minecraft.world.gen.placement.CountRangeConfig; @@ -52,6 +53,7 @@ public class WoodlandBiome extends BiomeBOP super((new Biome.BiomeBuilder()).surfaceBuilder(new CompositeSurfaceBuilder(DEFAULT_SURFACE_BUILDER, GRASS_DIRT_GRAVEL_SURFACE)).precipitation(Biome.RainType.RAIN).category(Biome.Category.TAIGA).depth(0.1F).scale(0.1F).temperature(0.8F).downfall(0.5F).waterColor(4159204).waterFogColor(329011).parent((String)null)); // Mineshafts and Strongholds + this.addStructure(Feature.WOODLAND_MANSION, new WoodlandMansionConfig()); this.addStructure(Feature.MINESHAFT, new MineshaftConfig(0.004D, MineshaftStructure.Type.NORMAL)); this.addStructure(Feature.STRONGHOLD, new StrongholdConfig());