diff --git a/common/biomesoplenty/configuration/BOPBiomes.java b/common/biomesoplenty/configuration/BOPBiomes.java index 2de4fea5b..61927798a 100644 --- a/common/biomesoplenty/configuration/BOPBiomes.java +++ b/common/biomesoplenty/configuration/BOPBiomes.java @@ -522,6 +522,7 @@ public class BOPBiomes { private static void addVillageBiomes() { addVillageBiome(Biomes.arctic, BOPConfigurationTerrainGen.arcticVillage); + addVillageBiome(Biomes.birchForest, BOPConfigurationTerrainGen.birchForestVillage); addVillageBiome(Biomes.brushland, BOPConfigurationTerrainGen.brushlandVillage); addVillageBiome(Biomes.chaparral, BOPConfigurationTerrainGen.chaparralVillage); addVillageBiome(Biomes.coniferousForest, BOPConfigurationTerrainGen.coniferousForestVillage); diff --git a/common/biomesoplenty/configuration/configfile/BOPConfigurationTerrainGen.java b/common/biomesoplenty/configuration/configfile/BOPConfigurationTerrainGen.java index 4761599fc..aaa784f65 100644 --- a/common/biomesoplenty/configuration/configfile/BOPConfigurationTerrainGen.java +++ b/common/biomesoplenty/configuration/configfile/BOPConfigurationTerrainGen.java @@ -27,6 +27,7 @@ public class BOPConfigurationTerrainGen // Village biomes public static boolean arcticVillage; + public static boolean birchForestVillage; public static boolean brushlandVillage; public static boolean chaparralVillage; public static boolean coniferousForestVillage; @@ -86,6 +87,7 @@ public class BOPConfigurationTerrainGen // Biomes with villages arcticVillage = config.get("Allow Villages", "Arctic", true).getBoolean(false); + birchForestVillage = config.get("Allow Villages", "BirchForest", true).getBoolean(false); brushlandVillage = config.get("Allow Villages", "Brushland", true).getBoolean(false); chaparralVillage = config.get("Allow Villages", "Chaparral", true).getBoolean(false); coniferousForestVillage = config.get("Allow Villages", "ConiferousForest", true).getBoolean(false); diff --git a/common/biomesoplenty/handlers/VillageMaterialEventHandler.java b/common/biomesoplenty/handlers/VillageMaterialEventHandler.java index bc005a3f9..c99a5d60f 100644 --- a/common/biomesoplenty/handlers/VillageMaterialEventHandler.java +++ b/common/biomesoplenty/handlers/VillageMaterialEventHandler.java @@ -141,6 +141,17 @@ public class VillageMaterialEventHandler } } + //Birch Forest + if (event.biome == Biomes.birchForest.get()) + { + //Wooden Stairs + if (event.original == Block.stairsWoodOak.blockID) + { + event.replacement = Block.stairsWoodBirch.blockID; + event.setResult(Result.DENY); + } + } + //Brushland if (event.biome == Biomes.brushland.get()) { @@ -377,6 +388,13 @@ public class VillageMaterialEventHandler event.setResult(Result.DENY); } + //Stone Slabs + if (event.original == Block.stoneSingleSlab.blockID) + { + event.replacement = Block.woodSingleSlab.blockID; + event.setResult(Result.DENY); + } + //Lava if (event.original == Block.lavaStill.blockID) { @@ -414,6 +432,13 @@ public class VillageMaterialEventHandler event.setResult(Result.DENY); } + //Stone Slabs + if (event.original == Block.stoneSingleSlab.blockID) + { + event.replacement = Block.woodSingleSlab.blockID; + event.setResult(Result.DENY); + } + //Lava if (event.original == Block.lavaStill.blockID) { @@ -811,6 +836,17 @@ public class VillageMaterialEventHandler @ForgeSubscribe public void getVillageBlockMeta(BiomeEvent.GetVillageBlockMeta event) { + //Birch Forest + if (event.biome == Biomes.birchForest.get()) + { + //Wooden Planks + if (event.original == Block.planks.blockID) + { + event.replacement = 2; + event.setResult(Result.DENY); + } + } + //Coniferous Forest if (event.biome == Biomes.coniferousForest.get()) { @@ -952,6 +988,13 @@ public class VillageMaterialEventHandler event.replacement = 1; event.setResult(Result.DENY); } + + //Single Stone Slab + if (event.original == Block.stoneSingleSlab.blockID) + { + event.replacement = 1; + event.setResult(Result.DENY); + } } //Meadow Forest @@ -977,6 +1020,13 @@ public class VillageMaterialEventHandler event.replacement = 1; event.setResult(Result.DENY); } + + //Single Stone Slab + if (event.original == Block.stoneSingleSlab.blockID) + { + event.replacement = 1; + event.setResult(Result.DENY); + } } //Outback