From cbc6fd568a9a42164bb0925221dbe65801ff2cae Mon Sep 17 00:00:00 2001 From: Adubbz Date: Thu, 16 Jan 2014 00:02:38 +1100 Subject: [PATCH] Readded custom village biomes, readied configurable village distance, readied custom biome village materials --- .../BOPConfigurationTerrainGen.java | 8 +- .../biomesoplenty/common/core/BOPBiomes.java | 88 +- .../common/eventhandler/BOPEventHandlers.java | 4 + .../eventhandler/world/BOPMapGenVillage.java | 16 + .../world/DecoratorHijackEventHandler.java | 35 - .../world/MapGenEventHandler.java | 17 + .../world/VillageMaterialEventHandler.java | 1360 +++++++++++++++++ 7 files changed, 1484 insertions(+), 44 deletions(-) create mode 100644 src/main/java/biomesoplenty/common/eventhandler/world/BOPMapGenVillage.java delete mode 100644 src/main/java/biomesoplenty/common/eventhandler/world/DecoratorHijackEventHandler.java create mode 100644 src/main/java/biomesoplenty/common/eventhandler/world/MapGenEventHandler.java create mode 100644 src/main/java/biomesoplenty/common/eventhandler/world/VillageMaterialEventHandler.java diff --git a/src/main/java/biomesoplenty/common/configuration/BOPConfigurationTerrainGen.java b/src/main/java/biomesoplenty/common/configuration/BOPConfigurationTerrainGen.java index f7fce643e..acd0849a7 100644 --- a/src/main/java/biomesoplenty/common/configuration/BOPConfigurationTerrainGen.java +++ b/src/main/java/biomesoplenty/common/configuration/BOPConfigurationTerrainGen.java @@ -46,7 +46,7 @@ public class BOPConfigurationTerrainGen public static boolean chaparralVillage; public static boolean cherryBlossomGroveVillage; public static boolean coniferousForestVillage; - public static boolean coniferousForestSnowVillage; + public static boolean snowyConiferousForest; public static boolean cragVillage; public static boolean deadForestVillage; public static boolean deadForestSnowVillage; @@ -55,7 +55,7 @@ public class BOPConfigurationTerrainGen public static boolean deciduousForestVillage; public static boolean dunesVillage; public static boolean fenVillage; - public static boolean fieldVillage; + public static boolean flowerField; public static boolean frostForestVillage; public static boolean fungiForestVillage; public static boolean gardenVillage; @@ -163,7 +163,7 @@ public class BOPConfigurationTerrainGen chaparralVillage = config.get("Allow Villages", "Chaparral", true).getBoolean(false); cherryBlossomGroveVillage = config.get("Allow Villages", "CherryBlossomGrove", false).getBoolean(false); coniferousForestVillage = config.get("Allow Villages", "ConiferousForest", true).getBoolean(false); - coniferousForestSnowVillage = config.get("Allow Villages", "ConiferousForestSnow", true).getBoolean(false); + snowyConiferousForest = config.get("Allow Villages", "SnowyConiferousForest", true).getBoolean(false); //cragVillage = config.get("Allow Villages", "Crag", false).getBoolean(false); deadForestVillage = config.get("Allow Villages", "DeadForest", false).getBoolean(false); deadForestSnowVillage = config.get("Allow Villages", "DeadForestSnow", false).getBoolean(false); @@ -172,7 +172,7 @@ public class BOPConfigurationTerrainGen deciduousForestVillage = config.get("Allow Villages", "DeciduousForest", true).getBoolean(false); dunesVillage = config.get("Allow Villages", "Dunes", false).getBoolean(false); fenVillage = config.get("Allow Villages", "Fen", false).getBoolean(false); - fieldVillage = config.get("Allow Villages", "Field", true).getBoolean(false); + flowerField = config.get("Allow Villages", "FlowerField", true).getBoolean(false); frostForestVillage = config.get("Allow Villages", "FrostForest", true).getBoolean(false); //fungiForestVillage = config.get("Allow Villages", "FungiForest", false).getBoolean(false); //gardenVillage = config.get("Allow Villages", "Garden", false).getBoolean(false); diff --git a/src/main/java/biomesoplenty/common/core/BOPBiomes.java b/src/main/java/biomesoplenty/common/core/BOPBiomes.java index c9da68f42..786ed8c6c 100644 --- a/src/main/java/biomesoplenty/common/core/BOPBiomes.java +++ b/src/main/java/biomesoplenty/common/core/BOPBiomes.java @@ -1,13 +1,12 @@ package biomesoplenty.common.core; -import static biomesoplenty.api.BOPBiomeHelper.get; - -import org.apache.commons.lang3.StringUtils; -import org.apache.commons.lang3.text.WordUtils; - import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.biome.WorldChunkManager; import net.minecraftforge.common.BiomeManager; + +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.text.WordUtils; + import biomesoplenty.api.BOPBiomeHelper; import biomesoplenty.api.BOPBiomeHelper.BOPBiomeListEntry; import biomesoplenty.api.BOPBiomeHelper.BOPBiomeTemperatureType; @@ -72,6 +71,7 @@ import biomesoplenty.common.biomes.BiomeGenWetland; import biomesoplenty.common.biomes.BiomeGenWoodland; import biomesoplenty.common.configuration.BOPConfigurationIDs; import biomesoplenty.common.configuration.BOPConfigurationMisc; +import biomesoplenty.common.configuration.BOPConfigurationTerrainGen; import biomesoplenty.common.world.WorldTypeBOP; public class BOPBiomes @@ -85,6 +85,7 @@ public class BOPBiomes registerBiomes(); useOnlyBiome(); addSpawnBiomes(); + addVillageBiomes(); } private static void registerBiomes() @@ -195,6 +196,78 @@ public class BOPBiomes } } + private static void addVillageBiomes() + { + addVillageBiome(BOPBiomeHelper.get("alps"), BOPConfigurationTerrainGen.alpsVillage); + addVillageBiome(BOPBiomeHelper.get("arctic"), BOPConfigurationTerrainGen.arcticVillage); + //addVillageBiome(BOPBiomeHelper.get("autumnHills"), BOPConfigurationTerrainGen.autumnHillsVillage); + //addVillageBiome(BOPBiomeHelper.get("badlands"), BOPConfigurationTerrainGen.badlandsVillage); + addVillageBiome(BOPBiomeHelper.get("bambooForest"), BOPConfigurationTerrainGen.bambooForestVillage); + addVillageBiome(BOPBiomeHelper.get("bayou"), BOPConfigurationTerrainGen.bayouVillage); + addVillageBiome(BOPBiomeHelper.get("bog"), BOPConfigurationTerrainGen.bogVillage); + addVillageBiome(BOPBiomeHelper.get("borealForest"), BOPConfigurationTerrainGen.borealForestVillage); + addVillageBiome(BOPBiomeHelper.get("brushland"), BOPConfigurationTerrainGen.brushlandVillage); + addVillageBiome(BOPBiomeHelper.get("canyon"), BOPConfigurationTerrainGen.canyonVillage); + addVillageBiome(BOPBiomeHelper.get("chaparral"), BOPConfigurationTerrainGen.chaparralVillage); + addVillageBiome(BOPBiomeHelper.get("cherryBlossomGrove"), BOPConfigurationTerrainGen.cherryBlossomGroveVillage); + addVillageBiome(BOPBiomeHelper.get("coniferousForest"), BOPConfigurationTerrainGen.coniferousForestVillage); + addVillageBiome(BOPBiomeHelper.get("snowyConiferousForest"), BOPConfigurationTerrainGen.snowyConiferousForest); + addVillageBiome(BOPBiomeHelper.get("deadForest"), BOPConfigurationTerrainGen.deadForestVillage); + //addVillageBiome(BOPBiomeHelper.get("deadForestSnow"), BOPConfigurationTerrainGen.deadForestSnowVillage); + addVillageBiome(BOPBiomeHelper.get("deadSwamp"), BOPConfigurationTerrainGen.deadSwampVillage); + addVillageBiome(BOPBiomeHelper.get("deciduousForest"), BOPConfigurationTerrainGen.deciduousForestVillage); + addVillageBiome(BOPBiomeHelper.get("dunes"), BOPConfigurationTerrainGen.dunesVillage); + addVillageBiome(BOPBiomeHelper.get("fen"), BOPConfigurationTerrainGen.fenVillage); + addVillageBiome(BOPBiomeHelper.get("flowerField"), BOPConfigurationTerrainGen.flowerField); + addVillageBiome(BOPBiomeHelper.get("frostForest"), BOPConfigurationTerrainGen.frostForestVillage); + //addVillageBiome(BOPBiomeHelper.get("glacier"), BOPConfigurationTerrainGen.glacierVillage); + addVillageBiome(BOPBiomeHelper.get("grassland"), BOPConfigurationTerrainGen.grasslandVillage); + addVillageBiome(BOPBiomeHelper.get("grove"), BOPConfigurationTerrainGen.groveVillage); + addVillageBiome(BOPBiomeHelper.get("heathland"), BOPConfigurationTerrainGen.heathlandVillage); + addVillageBiome(BOPBiomeHelper.get("highland"), BOPConfigurationTerrainGen.highlandVillage); + //addVillageBiome(BOPBiomeHelper.get("hotSprings"), BOPConfigurationTerrainGen.hotSpringsVillage); + addVillageBiome(BOPBiomeHelper.get("jadeCliffs"), BOPConfigurationTerrainGen.jadeCliffsVillage); + addVillageBiome(BOPBiomeHelper.get("lushDesert"), BOPConfigurationTerrainGen.lushDesertVillage); + addVillageBiome(BOPBiomeHelper.get("lushSwamp"), BOPConfigurationTerrainGen.lushSwampVillage); + //addVillageBiome(BOPBiomeHelper.get("mangrove"), BOPConfigurationTerrainGen.mangroveVillage); + addVillageBiome(BOPBiomeHelper.get("mapleWoods"), BOPConfigurationTerrainGen.mapleWoodsVillage); + addVillageBiome(BOPBiomeHelper.get("marsh"), BOPConfigurationTerrainGen.marshVillage); + addVillageBiome(BOPBiomeHelper.get("meadow"), BOPConfigurationTerrainGen.meadowVillage); + //addVillageBiome(BOPBiomeHelper.get("meadowForest"), BOPConfigurationTerrainGen.meadowVillage); + //addVillageBiome(BOPBiomeHelper.get("mesa"), BOPConfigurationTerrainGen.mesaVillage); + addVillageBiome(BOPBiomeHelper.get("moor"), BOPConfigurationTerrainGen.moorVillage); + addVillageBiome(BOPBiomeHelper.get("mountain"), BOPConfigurationTerrainGen.mountainVillage); + //addVillageBiome(BOPBiomeHelper.get("oasis"), BOPConfigurationTerrainGen.oasisVillage); + + //addVillageBiome(BOPBiomeHelper.get("orchard"), BOPConfigurationTerrainGen.orchardVillage); + addVillageBiome(BOPBiomeHelper.get("outback"), BOPConfigurationTerrainGen.outbackVillage); + //addVillageBiome(BOPBiomeHelper.get("overgrownGreens"), BOPConfigurationTerrainGen.overgrownGreensVillage); + addVillageBiome(BOPBiomeHelper.get("pasture"), BOPConfigurationTerrainGen.pastureVillage); + //addVillageBiome(BOPBiomeHelper.get("polar"), BOPConfigurationTerrainGen.polarVillage); + addVillageBiome(BOPBiomeHelper.get("prairie"), BOPConfigurationTerrainGen.prairieVillage); + addVillageBiome(BOPBiomeHelper.get("quagmire"), BOPConfigurationTerrainGen.quagmireVillage); + addVillageBiome(BOPBiomeHelper.get("rainforest"), BOPConfigurationTerrainGen.rainforestVillage); + addVillageBiome(BOPBiomeHelper.get("redwoodForest"), BOPConfigurationTerrainGen.redwoodForestVillage); + + addVillageBiome(BOPBiomeHelper.get("seasonalForest"), BOPConfigurationTerrainGen.seasonalForestVillage); + addVillageBiome(BOPBiomeHelper.get("shield"), BOPConfigurationTerrainGen.shieldVillage); + //addVillageBiome(BOPBiomeHelper.get("scrubland"), BOPConfigurationTerrainGen.scrublandVillage); + addVillageBiome(BOPBiomeHelper.get("shrubland"), BOPConfigurationTerrainGen.shrublandVillage); + addVillageBiome(BOPBiomeHelper.get("sludgepit"), BOPConfigurationTerrainGen.sludgepitVillage); + addVillageBiome(BOPBiomeHelper.get("spruceWoods"), BOPConfigurationTerrainGen.spruceWoodsVillage); + //addVillageBiome(BOPBiomeHelper.get("steppe"), BOPConfigurationTerrainGen.steppeVillage); + addVillageBiome(BOPBiomeHelper.get("temperateRainforest"), BOPConfigurationTerrainGen.temperateRainforestVillage); + addVillageBiome(BOPBiomeHelper.get("thicket"), BOPConfigurationTerrainGen.thicketVillage); + addVillageBiome(BOPBiomeHelper.get("timber"), BOPConfigurationTerrainGen.timberVillage); + addVillageBiome(BOPBiomeHelper.get("tropicalRainforest"), BOPConfigurationTerrainGen.tropicalRainforestVillage); + addVillageBiome(BOPBiomeHelper.get("tropics"), BOPConfigurationTerrainGen.tropicsVillage); + addVillageBiome(BOPBiomeHelper.get("tundra"), BOPConfigurationTerrainGen.tundraVillage); + addVillageBiome(BOPBiomeHelper.get("volcano"), BOPConfigurationTerrainGen.volcanoVillage); + + addVillageBiome(BOPBiomeHelper.get("wetland"), BOPConfigurationTerrainGen.wetlandVillage); + addVillageBiome(BOPBiomeHelper.get("woodland"), BOPConfigurationTerrainGen.woodlandVillage); + } + public static void registerOnlyBiome(BOPBiomeListEntry biome) { onlyBiome = biome.biome; @@ -216,6 +289,11 @@ public class BOPBiomes BiomeManager.addSpawnBiome(biome); } + private static void addVillageBiome(BiomeGenBase biome, boolean flag) + { + if (biome != null && flag) BiomeManager.addVillageBiome(biome, true); + } + public static void clearAllSpawnBiomes() { WorldChunkManager.allowedBiomes.clear(); diff --git a/src/main/java/biomesoplenty/common/eventhandler/BOPEventHandlers.java b/src/main/java/biomesoplenty/common/eventhandler/BOPEventHandlers.java index 12ce70436..57d0c2729 100755 --- a/src/main/java/biomesoplenty/common/eventhandler/BOPEventHandlers.java +++ b/src/main/java/biomesoplenty/common/eventhandler/BOPEventHandlers.java @@ -12,6 +12,8 @@ import biomesoplenty.common.eventhandler.potions.PotionParalysisEventHandler; import biomesoplenty.common.eventhandler.potions.PotionPossessionEventHandler; import biomesoplenty.common.eventhandler.world.DecorateBiomeEventHandler; import biomesoplenty.common.eventhandler.world.DecorationModificationEventHandler; +import biomesoplenty.common.eventhandler.world.MapGenEventHandler; +import biomesoplenty.common.eventhandler.world.VillageMaterialEventHandler; public class BOPEventHandlers { @@ -28,6 +30,8 @@ public class BOPEventHandlers { MinecraftForge.EVENT_BUS.register(new DecorateBiomeEventHandler()); MinecraftForge.TERRAIN_GEN_BUS.register(new DecorationModificationEventHandler()); + MinecraftForge.TERRAIN_GEN_BUS.register(new VillageMaterialEventHandler()); + MinecraftForge.TERRAIN_GEN_BUS.register(new MapGenEventHandler()); } private static void registerEntityEventHandlers() diff --git a/src/main/java/biomesoplenty/common/eventhandler/world/BOPMapGenVillage.java b/src/main/java/biomesoplenty/common/eventhandler/world/BOPMapGenVillage.java new file mode 100644 index 000000000..1a04cd1b4 --- /dev/null +++ b/src/main/java/biomesoplenty/common/eventhandler/world/BOPMapGenVillage.java @@ -0,0 +1,16 @@ +package biomesoplenty.common.eventhandler.world; + +import net.minecraft.world.gen.structure.MapGenVillage; +import biomesoplenty.common.configuration.BOPConfigurationTerrainGen; +import cpw.mods.fml.relauncher.ReflectionHelper; + +public class BOPMapGenVillage extends MapGenVillage +{ + public BOPMapGenVillage() + { + super(); + + ReflectionHelper.setPrivateValue(MapGenVillage.class, this, BOPConfigurationTerrainGen.villageDistance, "field_82665_g"); + ReflectionHelper.setPrivateValue(MapGenVillage.class, this, BOPConfigurationTerrainGen.villageDistance / 4, "field_82666_h"); + } +} diff --git a/src/main/java/biomesoplenty/common/eventhandler/world/DecoratorHijackEventHandler.java b/src/main/java/biomesoplenty/common/eventhandler/world/DecoratorHijackEventHandler.java deleted file mode 100644 index a13bd461a..000000000 --- a/src/main/java/biomesoplenty/common/eventhandler/world/DecoratorHijackEventHandler.java +++ /dev/null @@ -1,35 +0,0 @@ -package biomesoplenty.common.eventhandler.world; - -import net.minecraft.world.biome.BiomeDecorator; -import net.minecraftforge.event.terraingen.BiomeEvent.CreateDecorator; -import biomesoplenty.common.world.decoration.BOPBiomeDecorator; -import cpw.mods.fml.common.eventhandler.SubscribeEvent; - -public class DecoratorHijackEventHandler -{ - @SubscribeEvent - public void onDecoratorReplace(CreateDecorator event) - { - //if (BOPBiomeHelper.biomeList.containsValue(event.biome)) - //{ - BiomeDecorator originalBiomeDecorator = event.originalBiomeDecorator; - BOPBiomeDecorator newBiomeDecorator = new BOPBiomeDecorator(); - - newBiomeDecorator.bigMushroomsPerChunk = originalBiomeDecorator.bigMushroomsPerChunk; - newBiomeDecorator.cactiPerChunk = originalBiomeDecorator.cactiPerChunk; - newBiomeDecorator.clayPerChunk = originalBiomeDecorator.clayPerChunk; - newBiomeDecorator.deadBushPerChunk = originalBiomeDecorator.deadBushPerChunk; - newBiomeDecorator.flowersPerChunk = originalBiomeDecorator.flowersPerChunk; - newBiomeDecorator.generateLakes = originalBiomeDecorator.generateLakes; - newBiomeDecorator.grassPerChunk = originalBiomeDecorator.grassPerChunk; - newBiomeDecorator.mushroomsPerChunk = originalBiomeDecorator.mushroomsPerChunk; - newBiomeDecorator.reedsPerChunk = originalBiomeDecorator.reedsPerChunk; - newBiomeDecorator.sandPerChunk = originalBiomeDecorator.sandPerChunk; - newBiomeDecorator.sandPerChunk2 = originalBiomeDecorator.sandPerChunk2; - newBiomeDecorator.treesPerChunk = originalBiomeDecorator.treesPerChunk; - newBiomeDecorator.waterlilyPerChunk = originalBiomeDecorator.waterlilyPerChunk; - - event.newBiomeDecorator = newBiomeDecorator; - //} - } -} diff --git a/src/main/java/biomesoplenty/common/eventhandler/world/MapGenEventHandler.java b/src/main/java/biomesoplenty/common/eventhandler/world/MapGenEventHandler.java new file mode 100644 index 000000000..e9ea9551a --- /dev/null +++ b/src/main/java/biomesoplenty/common/eventhandler/world/MapGenEventHandler.java @@ -0,0 +1,17 @@ +package biomesoplenty.common.eventhandler.world; + +import net.minecraftforge.event.terraingen.InitMapGenEvent; +import net.minecraftforge.event.terraingen.InitMapGenEvent.EventType; +import cpw.mods.fml.common.eventhandler.SubscribeEvent; + +public class MapGenEventHandler +{ + @SubscribeEvent + public void onMapGenInit(InitMapGenEvent event) + { + if (event.type == EventType.VILLAGE) + { + event.newGen = new BOPMapGenVillage(); + } + } +} diff --git a/src/main/java/biomesoplenty/common/eventhandler/world/VillageMaterialEventHandler.java b/src/main/java/biomesoplenty/common/eventhandler/world/VillageMaterialEventHandler.java new file mode 100644 index 000000000..424f82eb9 --- /dev/null +++ b/src/main/java/biomesoplenty/common/eventhandler/world/VillageMaterialEventHandler.java @@ -0,0 +1,1360 @@ +package biomesoplenty.common.eventhandler.world; + +import net.minecraft.block.Block; +import net.minecraft.init.Blocks; +import net.minecraftforge.event.terraingen.BiomeEvent; +import biomesoplenty.api.BOPBiomeHelper; +import biomesoplenty.api.BOPBlockHelper; +import cpw.mods.fml.common.eventhandler.Event.Result; +import cpw.mods.fml.common.eventhandler.SubscribeEvent; + +public class VillageMaterialEventHandler +{ + //TODO: FEATURE All commented out + @SubscribeEvent + public void getVillageBlockID(BiomeEvent.GetVillageBlockID event) + { + //Arctic + if (event.biome == BOPBiomeHelper.get("arctic")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = Blocks.snow; + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = Blocks.snow; + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = Blocks.snow; + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = Blocks.snow; + event.setResult(Result.DENY); + } + + //Cobblestone Stairs + if (event.original == Blocks.stone_brick_stairs) + { + event.replacement = Blocks.snow; + event.setResult(Result.DENY); + } + + //Single Stone Slabs + if (event.original == Blocks.stone_slab) + { + event.replacement = Blocks.snow; + event.setResult(Result.DENY); + } + + //Glass Panes + if (event.original == Blocks.glass_pane) + { + event.replacement = Blocks.ice; + event.setResult(Result.DENY); + } + + //Iron Bars + if (event.original == Blocks.iron_bars) + { + event.replacement = Blocks.snow; + event.setResult(Result.DENY); + } + + //Double Stone Slabs + if (event.original == Blocks.double_stone_slab) + { + event.replacement = Blocks.snow; + event.setResult(Result.DENY); + } + + //Lava + if (event.original == Blocks.lava) + { + event.replacement = Blocks.ice; + event.setResult(Result.DENY); + } + if (event.original == Blocks.flowing_lava) + { + event.replacement = Blocks.ice; + event.setResult(Result.DENY); + } + + //Water + if (event.original == Blocks.water) + { + event.replacement = Blocks.ice; + event.setResult(Result.DENY); + } + if (event.original == Blocks.flowing_water) + { + event.replacement = Blocks.ice; + event.setResult(Result.DENY); + } + + //Crops + if (event.original == Blocks.wheat) + { + event.replacement = Blocks.air; + event.setResult(Result.DENY); + } + if (event.original == Blocks.potatoes) + { + event.replacement = Blocks.air; + event.setResult(Result.DENY); + } + if (event.original == Blocks.carrots) + { + event.replacement = Blocks.air; + event.setResult(Result.DENY); + } + + //Farmland + if (event.original == Blocks.farmland) + { + event.replacement = Blocks.dirt; + event.setResult(Result.DENY); + } + } + + //Birch Forest + /*if (event.biome == Biomes.birchForest.get()) + { + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = Block.stairsWoodBirch.blockID; + event.setResult(Result.DENY); + } + }*/ + + //Brushland + if (event.biome == BOPBiomeHelper.get("brushland")) + { + //Gravel + if (event.original == Blocks.gravel) + { + event.replacement = Blocks.sand; + event.setResult(Result.DENY); + } + } + + //Coniferous Forest + if (event.biome == BOPBiomeHelper.get("coniferousForest")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = BOPBlockHelper.get("logs1"); + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = BOPBlockHelper.get("logs1"); + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = BOPBlockHelper.get("planks"); + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = BOPBlockHelper.get("firStairs"); + event.setResult(Result.DENY); + } + + //Cobblestone Stairs + if (event.original == Blocks.stone_brick_stairs) + { + event.replacement = BOPBlockHelper.get("firStairs"); + event.setResult(Result.DENY); + } + + //Stone Slabs + if (event.original == Blocks.stone_slab) + { + event.replacement = BOPBlockHelper.get("woodenSingleSlab1"); + event.setResult(Result.DENY); + } + + //Lava + if (event.original == Blocks.lava) + { + event.replacement = Blocks.water; + event.setResult(Result.DENY); + } + if (event.original == Blocks.flowing_lava) + { + event.replacement = Blocks.flowing_water; + event.setResult(Result.DENY); + } + + //Glass Panes + if (event.original == Blocks.glass_pane) + { + event.replacement = Blocks.iron_bars; + event.setResult(Result.DENY); + } + } + + //Desert + /*if (event.biome == Biomes.desertNew.get()) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = Block.sandStone.blockID; + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = Block.sandStone.blockID; + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = Block.sandStone.blockID; + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = Block.stairsSandStone.blockID; + event.setResult(Result.DENY); + } + + //Cobblestone Stairs + if (event.original == Blocks.stone_brick_stairs) + { + event.replacement = Block.stairsSandStone.blockID; + event.setResult(Result.DENY); + } + + //Gravel + if (event.original == Blocks.gravel) + { + event.replacement = Block.sandStone.blockID; + event.setResult(Result.DENY); + } + }*/ + + //Grove + if (event.biome == BOPBiomeHelper.get("grove")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = Blocks.log; + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = Blocks.leaves; + event.setResult(Result.DENY); + } + + //Cobblestone Stairs + if (event.original == Blocks.stone_brick_stairs) + { + event.replacement = Blocks.spruce_stairs; + event.setResult(Result.DENY); + } + + //Stone Slabs + if (event.original == Blocks.stone_slab) + { + event.replacement = Blocks.wooden_slab; + event.setResult(Result.DENY); + } + + //Lava + if (event.original == Blocks.lava) + { + event.replacement = Blocks.water; + event.setResult(Result.DENY); + } + if (event.original == Blocks.flowing_lava) + { + event.replacement = Blocks.flowing_water; + event.setResult(Result.DENY); + } + + //Glass Panes + if (event.original == Blocks.glass_pane) + { + event.replacement = Blocks.iron_bars; + event.setResult(Result.DENY); + } + } + + //Heathland + if (event.biome == BOPBiomeHelper.get("heathland")) + { + //Logs + if (event.original == Blocks.log) + { + event.replacement = BOPBlockHelper.get("logs4"); + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = BOPBlockHelper.get("planks"); + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = BOPBlockHelper.get("jacarandaStairs"); + event.setResult(Result.DENY); + } + + //Gravel + if (event.original == Blocks.gravel) + { + event.replacement = Blocks.sand; + event.setResult(Result.DENY); + } + } + + //Lush Desert + if (event.biome == BOPBiomeHelper.get("lushDesert")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = BOPBlockHelper.get("redRock"); + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = Blocks.log2; + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = Blocks.acacia_stairs; + event.setResult(Result.DENY); + } + + //Cobblestone Stairs + if (event.original == Blocks.stone_brick_stairs) + { + event.replacement = BOPBlockHelper.get("redCobbleStairs"); + event.setResult(Result.DENY); + } + + //Stone Slabs + if (event.original == Blocks.stone_slab) + { + event.replacement = BOPBlockHelper.get("stoneSingleSlab"); + event.setResult(Result.DENY); + } + + //Gravel + if (event.original == Blocks.gravel) + { + event.replacement = Blocks.sand; + event.setResult(Result.DENY); + } + + //Glass Panes + if (event.original == Blocks.glass_pane) + { + event.replacement = Blocks.iron_bars; + event.setResult(Result.DENY); + } + } + + //Lush Swamp + if (event.biome == BOPBiomeHelper.get("lushSwamp")) + { + //Gravel + if (event.original == Blocks.cobblestone) + { + event.replacement = Blocks.mossy_cobblestone; + event.setResult(Result.DENY); + } + } + + //Maple Woods + if (event.biome == BOPBiomeHelper.get("mapleWoods")) + { + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = Blocks.spruce_stairs; + event.setResult(Result.DENY); + } + } + + //Meadow + if (event.biome == BOPBiomeHelper.get("meadow")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = Blocks.log; + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = Blocks.spruce_stairs; + event.setResult(Result.DENY); + } + + //Cobblestone Stairs + if (event.original == Blocks.stone_brick_stairs) + { + event.replacement = Blocks.spruce_stairs; + event.setResult(Result.DENY); + } + + //Stone Slabs + if (event.original == Blocks.stone_slab) + { + event.replacement = Blocks.wooden_slab; + event.setResult(Result.DENY); + } + + //Lava + if (event.original == Blocks.lava) + { + event.replacement = Blocks.water; + event.setResult(Result.DENY); + } + if (event.original == Blocks.flowing_lava) + { + event.replacement = Blocks.flowing_water; + event.setResult(Result.DENY); + } + + //Glass Panes + if (event.original == Blocks.glass_pane) + { + event.replacement = Blocks.iron_bars; + event.setResult(Result.DENY); + } + } + + //Meadow Forest + /*if (event.biome == Biomes.meadowForest.get()) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = Blocks.log; + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = Blocks.spruce_stairs; + event.setResult(Result.DENY); + } + + //Cobblestone Stairs + if (event.original == Blocks.stone_brick_stairs) + { + event.replacement = Blocks.spruce_stairs; + event.setResult(Result.DENY); + } + + //Stone Slabs + if (event.original == Blocks.stone_slab) + { + event.replacement = Blocks.wooden_slab; + event.setResult(Result.DENY); + } + + //Lava + if (event.original == Blocks.lava) + { + event.replacement = Blocks.water; + event.setResult(Result.DENY); + } + if (event.original == Blocks.flowing_lava) + { + event.replacement = Blocks.flowing_water; + event.setResult(Result.DENY); + } + + //Glass Panes + if (event.original == Blocks.glass_pane) + { + event.replacement = Blocks.iron_bars; + event.setResult(Result.DENY); + } + }*/ + + //Outback + if (event.biome == BOPBiomeHelper.get("outback")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = Blocks.log2; + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = Blocks.log2; + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = Blocks.planks; + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = Blocks.leaves; + event.setResult(Result.DENY); + } + + //Cobblestone Stairs + if (event.original == Blocks.stone_brick_stairs) + { + event.replacement = Blocks.acacia_stairs; + event.setResult(Result.DENY); + } + + //Stone Slabs + if (event.original == Blocks.stone_slab) + { + event.replacement = BOPBlockHelper.get("woodenSingleSlab1"); + event.setResult(Result.DENY); + } + + //Lava + if (event.original == Blocks.lava) + { + event.replacement = Blocks.water; + event.setResult(Result.DENY); + } + if (event.original == Blocks.flowing_lava) + { + event.replacement = Blocks.flowing_water; + event.setResult(Result.DENY); + } + + //Gravel + if (event.original == Blocks.gravel) + { + event.replacement = Blocks.sand; + event.setResult(Result.DENY); + } + + //Glass Panes + if (event.original == Blocks.glass_pane) + { + event.replacement = Blocks.iron_bars; + event.setResult(Result.DENY); + } + } + + //Overgrown Greens + /*if (event.biome == Biomes.overgrownGreens.get()) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = Blocks.mossy_cobblestone; + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = Blocks.leaves; + event.setResult(Result.DENY); + } + + //Gravel + if (event.original == Blocks.gravel) + { + event.replacement = Blocks.grass; + event.setResult(Result.DENY); + } + }*/ + + //Prairie + if (event.biome == BOPBiomeHelper.get("prairie")) + { + //Gravel + if (event.original == Blocks.gravel) + { + event.replacement = Blocks.sand; + event.setResult(Result.DENY); + } + } + + //Savanna + /*if (event.biome == Biomes.savanna.get()) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = BOPBlockHelper.get("logs1"); + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = BOPBlockHelper.get("logs1"); + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = BOPBlockHelper.get("planks"); + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = Blocks.acacia_stairs; + event.setResult(Result.DENY); + } + + //Cobblestone Stairs + if (event.original == Blocks.stone_brick_stairs) + { + event.replacement = Blocks.acacia_stairs; + event.setResult(Result.DENY); + } + + //Stone Slabs + if (event.original == Blocks.stone_slab) + { + event.replacement = BOPBlockHelper.get("woodenSingleSlab1"); + event.setResult(Result.DENY); + } + + //Lava + if (event.original == Blocks.lava) + { + event.replacement = Blocks.water; + event.setResult(Result.DENY); + } + if (event.original == Blocks.flowing_lava) + { + event.replacement = Blocks.flowing_water; + event.setResult(Result.DENY); + } + + //Gravel + if (event.original == Blocks.gravel) + { + event.replacement = Blocks.sand; + event.setResult(Result.DENY); + } + + //Glass Panes + if (event.original == Blocks.glass_pane) + { + event.replacement = Blocks.iron_bars; + event.setResult(Result.DENY); + } + }*/ + + //Scrubland + /*if (event.biome == Biomes.scrubland.get()) + { + //Gravel + if (event.original == Blocks.gravel) + { + event.replacement = Blocks.sand; + event.setResult(Result.DENY); + } + }*/ + + //Snowy Coniferous Forest + if (event.biome == BOPBiomeHelper.get("snowyConiferousForest")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = BOPBlockHelper.get("logs1"); + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = BOPBlockHelper.get("logs1"); + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = BOPBlockHelper.get("planks"); + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = BOPBlockHelper.get("firStairs"); + event.setResult(Result.DENY); + } + + //Cobblestone Stairs + if (event.original == Blocks.stone_brick_stairs) + { + event.replacement = BOPBlockHelper.get("firStairs"); + event.setResult(Result.DENY); + } + + //Stone Slabs + if (event.original == Blocks.stone_slab) + { + event.replacement = BOPBlockHelper.get("woodenSingleSlab1"); + event.setResult(Result.DENY); + } + + //Lava + if (event.original == Blocks.lava) + { + event.replacement = Blocks.water; + event.setResult(Result.DENY); + } + if (event.original == Blocks.flowing_lava) + { + event.replacement = Blocks.flowing_water; + event.setResult(Result.DENY); + } + + //Glass Panes + if (event.original == Blocks.glass_pane) + { + event.replacement = Blocks.iron_bars; + event.setResult(Result.DENY); + } + } + + //Spruce Woods + if (event.biome == BOPBiomeHelper.get("spruceWoods")) + { + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = Blocks.spruce_stairs; + event.setResult(Result.DENY); + } + } + + //Steppe + /*if (event.biome == BOPBiomeHelper.get("steppe")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = BOPBlockHelper.get("logs1"); + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = BOPBlockHelper.get("logs1"); + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = BOPBlockHelper.get("planks"); + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = Blocks.acacia_stairs; + event.setResult(Result.DENY); + } + + //Cobblestone Stairs + if (event.original == Blocks.stone_brick_stairs) + { + event.replacement = Blocks.acacia_stairs; + event.setResult(Result.DENY); + } + + //Stone Slabs + if (event.original == Blocks.stone_slab) + { + event.replacement = BOPBlockHelper.get("woodenSingleSlab1"); + event.setResult(Result.DENY); + } + + //Lava + if (event.original == Blocks.lava) + { + event.replacement = Blocks.water; + event.setResult(Result.DENY); + } + if (event.original == Blocks.flowing_lava) + { + event.replacement = Blocks.flowing_water; + event.setResult(Result.DENY); + } + + //Gravel + if (event.original == Blocks.gravel) + { + event.replacement = Blocks.sand; + event.setResult(Result.DENY); + } + + //Glass Panes + if (event.original == Blocks.glass_pane) + { + event.replacement = Blocks.iron_bars; + event.setResult(Result.DENY); + } + }*/ + + //Tropical Rainforest + if (event.biome == BOPBiomeHelper.get("tropicalRainforest")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = Blocks.log; + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = Blocks.jungle_stairs; + event.setResult(Result.DENY); + } + + //Cobblestone Stairs + if (event.original == Blocks.stone_brick_stairs) + { + event.replacement = Blocks.jungle_stairs; + event.setResult(Result.DENY); + } + + //Stone Slabs + if (event.original == Blocks.stone_slab) + { + event.replacement = Blocks.wooden_slab; + event.setResult(Result.DENY); + } + + //Lava + if (event.original == Blocks.lava) + { + event.replacement = Blocks.water; + event.setResult(Result.DENY); + } + if (event.original == Blocks.flowing_lava) + { + event.replacement = Blocks.flowing_water; + event.setResult(Result.DENY); + } + + //Gravel + if (event.original == Blocks.gravel) + { + event.replacement = Blocks.sand; + event.setResult(Result.DENY); + } + + //Glass Panes + if (event.original == Blocks.glass_pane) + { + event.replacement = Blocks.iron_bars; + event.setResult(Result.DENY); + } + } + + //Wetland + if (event.biome == BOPBiomeHelper.get("wetland")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = BOPBlockHelper.get("logs3"); + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = BOPBlockHelper.get("logs3"); + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = BOPBlockHelper.get("planks"); + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = BOPBlockHelper.get("willowStairs"); + event.setResult(Result.DENY); + } + + //Cobblestone Stairs + if (event.original == Blocks.stone_brick_stairs) + { + event.replacement = BOPBlockHelper.get("willowStairs"); + event.setResult(Result.DENY); + } + + //Stone Slabs + if (event.original == Blocks.stone_slab) + { + event.replacement = BOPBlockHelper.get("woodenSingleSlab2"); + event.setResult(Result.DENY); + } + + //Lava + if (event.original == Blocks.lava) + { + event.replacement = Blocks.water; + event.setResult(Result.DENY); + } + if (event.original == Blocks.flowing_lava) + { + event.replacement = Blocks.flowing_water; + event.setResult(Result.DENY); + } + + //Glass Panes + if (event.original == Blocks.glass_pane) + { + event.replacement = Blocks.iron_bars; + event.setResult(Result.DENY); + } + } + } + + @SubscribeEvent + public void getVillageBlockMeta(BiomeEvent.GetVillageBlockMeta event) + { + //Birch Forest + /*if (event.biome == Biomes.birchForest.get()) + { + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = 2; + event.setResult(Result.DENY); + } + }*/ + + //Coniferous Forest + if (event.biome == BOPBiomeHelper.get("coniferousForest")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = 3; + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = 3; + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = 3; + event.setResult(Result.DENY); + } + + //Single Stone Slab + if (event.original == Blocks.stone_slab) + { + event.replacement = 3; + event.setResult(Result.DENY); + } + } + + //Desert + /*if (event.biome == Biomes.desertNew.get()) + { + //Logs + if (event.original == Blocks.log) + { + event.replacement = 0; + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = 2; + event.setResult(Result.DENY); + } + }*/ + + //Grove + if (event.biome == BOPBiomeHelper.get("grove")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = 5; + event.setResult(Result.DENY); + } + + //Single Stone Slab + if (event.original == Blocks.stone_slab) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + } + + //Heathland + if (event.biome == BOPBiomeHelper.get("heathland")) + { + //Logs + if (event.original == Blocks.log) + { + event.replacement = 2; + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = 13; + event.setResult(Result.DENY); + } + } + + //Lush Desert + if (event.biome == BOPBiomeHelper.get("lushDesert")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = 4; + event.setResult(Result.DENY); + } + + //Single Stone Slab + if (event.original == Blocks.stone_slab) + { + event.replacement = 0; + event.setResult(Result.DENY); + } + } + + //Maple Woods + if (event.biome == BOPBiomeHelper.get("mapleWoods")) + { + //Logs + if (event.original == Blocks.log) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + } + + //Meadow + if (event.biome == BOPBiomeHelper.get("meadow")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + + //Single Stone Slab + if (event.original == Blocks.stone_slab) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + } + + //Meadow Forest + /*if (event.biome == Biomes.meadowForest.get()) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + + //Single Stone Slab + if (event.original == Blocks.stone_slab) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + }*/ + + //Outback + if (event.biome == BOPBiomeHelper.get("outback")) + { + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = 4; + event.setResult(Result.DENY); + } + + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = 4; + event.setResult(Result.DENY); + } + } + + //Overgrown Greens + /*if (event.biome == Biomes.overgrownGreens.get()) + { + //Wooden Stairs + if (event.original == Blocks.oak_stairs) + { + event.replacement = 4; + event.setResult(Result.DENY); + } + }*/ + + //Snowy Coniferous Forest + if (event.biome == BOPBiomeHelper.get("snowyConiferousForest")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = 3; + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = 3; + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = 3; + event.setResult(Result.DENY); + } + + //Single Stone Slab + if (event.original == Blocks.stone_slab) + { + event.replacement = 3; + event.setResult(Result.DENY); + } + } + + //Spruce Woods + if (event.biome == BOPBiomeHelper.get("spruceWoods")) + { + //Logs + if (event.original == Blocks.log) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + } + + //Tropical Rainforest + if (event.biome == BOPBiomeHelper.get("tropicalRainforest")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = 3; + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = 3; + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = 3; + event.setResult(Result.DENY); + } + + //Single Stone Slab + if (event.original == Blocks.stone_slab) + { + event.replacement = 3; + event.setResult(Result.DENY); + } + } + + //Wetland + if (event.biome == BOPBiomeHelper.get("wetland")) + { + //Cobblestone + if (event.original == Blocks.cobblestone) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + + //Logs + if (event.original == Blocks.log) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + + //Wooden Planks + if (event.original == Blocks.planks) + { + event.replacement = 9; + event.setResult(Result.DENY); + } + + //Single Stone Slab + if (event.original == Blocks.stone_slab) + { + event.replacement = 1; + event.setResult(Result.DENY); + } + } + } +} \ No newline at end of file