2013-10-16 05:33:43 +00:00
|
|
|
package biomesoplenty.eventhandlers;
|
2013-09-14 23:01:07 +00:00
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
2013-09-14 23:17:39 +00:00
|
|
|
import net.minecraftforge.event.Event.Result;
|
2013-09-14 23:01:07 +00:00
|
|
|
import net.minecraftforge.event.ForgeSubscribe;
|
|
|
|
import net.minecraftforge.event.terraingen.BiomeEvent;
|
|
|
|
import biomesoplenty.api.Biomes;
|
2013-09-15 03:38:04 +00:00
|
|
|
import biomesoplenty.api.Blocks;
|
2013-09-14 23:01:07 +00:00
|
|
|
|
|
|
|
public class VillageMaterialEventHandler
|
|
|
|
{
|
|
|
|
@ForgeSubscribe
|
|
|
|
public void getVillageBlockID(BiomeEvent.GetVillageBlockID event)
|
|
|
|
{
|
2013-09-15 03:38:04 +00:00
|
|
|
//Arctic
|
|
|
|
if (event.biome == Biomes.arctic.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.blockSnow.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.blockSnow.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.blockSnow.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.blockSnow.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Cobblestone Stairs
|
|
|
|
if (event.original == Block.stairsCobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.blockSnow.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Single Stone Slabs
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.blockSnow.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Glass Panes
|
|
|
|
if (event.original == Block.thinGlass.blockID)
|
|
|
|
{
|
2013-09-19 03:57:33 +00:00
|
|
|
event.replacement = Block.ice.blockID;
|
2013-09-15 03:38:04 +00:00
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Iron Bars
|
|
|
|
if (event.original == Block.fenceIron.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.blockSnow.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Double Stone Slabs
|
|
|
|
if (event.original == Block.stoneDoubleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.blockSnow.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Lava
|
|
|
|
if (event.original == Block.lavaStill.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.ice.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
if (event.original == Block.lavaMoving.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.ice.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Water
|
|
|
|
if (event.original == Block.waterStill.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.ice.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
if (event.original == Block.waterMoving.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.ice.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Crops
|
|
|
|
if (event.original == Block.crops.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 0;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
if (event.original == Block.potato.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 0;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
if (event.original == Block.carrot.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 0;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Farmland
|
|
|
|
if (event.original == Block.tilledField.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.dirt.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-15 21:03:29 +00:00
|
|
|
//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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:20:14 +00:00
|
|
|
//Brushland
|
|
|
|
if (event.biome == Biomes.brushland.get())
|
|
|
|
{
|
|
|
|
//Gravel
|
|
|
|
if (event.original == Block.gravel.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.sand.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:58:32 +00:00
|
|
|
//Coniferous Forest
|
|
|
|
if (event.biome == Biomes.coniferousForest.get())
|
|
|
|
{
|
2013-09-19 03:57:33 +00:00
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.logs1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:58:32 +00:00
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.logs1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.planks.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.firStairs.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-19 03:57:33 +00:00
|
|
|
|
|
|
|
//Cobblestone Stairs
|
|
|
|
if (event.original == Block.stairsCobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.firStairs.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Stone Slabs
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.woodenSingleSlab1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Lava
|
|
|
|
if (event.original == Block.lavaStill.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterStill.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
if (event.original == Block.lavaMoving.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterMoving.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Glass Panes
|
|
|
|
if (event.original == Block.thinGlass.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.fenceIron.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 18:58:32 +00:00
|
|
|
}
|
|
|
|
|
2013-09-15 18:20:14 +00:00
|
|
|
//Desert
|
|
|
|
if (event.biome == Biomes.desertNew.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.sandStone.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.sandStone.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.sandStone.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.stairsSandStone.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Cobblestone Stairs
|
|
|
|
if (event.original == Block.stairsCobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.stairsSandStone.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Gravel
|
|
|
|
if (event.original == Block.gravel.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.sandStone.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//Grove
|
|
|
|
if (event.biome == Biomes.grove.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.wood.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.leaves.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Cobblestone Stairs
|
|
|
|
if (event.original == Block.stairsCobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.stairsWoodSpruce.blockID;
|
|
|
|
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)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterStill.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
if (event.original == Block.lavaMoving.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterMoving.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-19 03:57:33 +00:00
|
|
|
|
|
|
|
//Glass Panes
|
|
|
|
if (event.original == Block.thinGlass.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.fenceIron.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 18:20:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//Heathland
|
|
|
|
if (event.biome == Biomes.heathland.get())
|
|
|
|
{
|
2013-09-19 03:57:33 +00:00
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.logs4.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.planks.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.jacarandaStairs.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:20:14 +00:00
|
|
|
//Gravel
|
|
|
|
if (event.original == Block.gravel.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.sand.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//Lush Desert
|
|
|
|
if (event.biome == Biomes.lushDesert.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.redRock.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.logs1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.planks.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.acaciaStairs.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Cobblestone Stairs
|
|
|
|
if (event.original == Block.stairsCobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.redCobbleStairs.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Stone Slabs
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.stoneSingleSlab.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Gravel
|
|
|
|
if (event.original == Block.gravel.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.sand.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-19 03:57:33 +00:00
|
|
|
|
|
|
|
//Glass Panes
|
|
|
|
if (event.original == Block.thinGlass.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.fenceIron.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 18:20:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//Lush Swamp
|
|
|
|
if (event.biome == Biomes.lushSwamp.get())
|
|
|
|
{
|
|
|
|
//Gravel
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.cobblestoneMossy.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:58:32 +00:00
|
|
|
//Maple Woods
|
2013-09-16 23:18:00 +00:00
|
|
|
if (event.biome == Biomes.mapleWoods.get())
|
2013-09-15 18:58:32 +00:00
|
|
|
{
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.stairsWoodSpruce.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:20:14 +00:00
|
|
|
//Meadow
|
|
|
|
if (event.biome == Biomes.meadow.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.wood.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.stairsWoodSpruce.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Cobblestone Stairs
|
|
|
|
if (event.original == Block.stairsCobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.stairsWoodSpruce.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
2013-09-15 21:03:29 +00:00
|
|
|
//Stone Slabs
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.woodSingleSlab.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:20:14 +00:00
|
|
|
//Lava
|
|
|
|
if (event.original == Block.lavaStill.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterStill.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
if (event.original == Block.lavaMoving.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterMoving.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-19 03:57:33 +00:00
|
|
|
|
|
|
|
//Glass Panes
|
|
|
|
if (event.original == Block.thinGlass.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.fenceIron.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 18:20:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//Meadow Forest
|
|
|
|
if (event.biome == Biomes.meadowForest.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.wood.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.stairsWoodSpruce.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Cobblestone Stairs
|
|
|
|
if (event.original == Block.stairsCobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.stairsWoodSpruce.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
2013-09-15 21:03:29 +00:00
|
|
|
//Stone Slabs
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.woodSingleSlab.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:20:14 +00:00
|
|
|
//Lava
|
|
|
|
if (event.original == Block.lavaStill.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterStill.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
if (event.original == Block.lavaMoving.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterMoving.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-19 03:57:33 +00:00
|
|
|
|
|
|
|
//Glass Panes
|
|
|
|
if (event.original == Block.thinGlass.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.fenceIron.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 18:20:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//Outback
|
|
|
|
if (event.biome == Biomes.outback.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.logs1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.logs1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.planks.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.leaves.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Cobblestone Stairs
|
|
|
|
if (event.original == Block.stairsCobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.acaciaStairs.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Stone Slabs
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.woodenSingleSlab1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Lava
|
|
|
|
if (event.original == Block.lavaStill.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterStill.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
if (event.original == Block.lavaMoving.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterMoving.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Gravel
|
|
|
|
if (event.original == Block.gravel.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.sand.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-19 03:57:33 +00:00
|
|
|
|
|
|
|
//Glass Panes
|
|
|
|
if (event.original == Block.thinGlass.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.fenceIron.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 18:20:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//Overgrown Greens
|
|
|
|
if (event.biome == Biomes.overgrownGreens.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.cobblestoneMossy.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.leaves.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Gravel
|
|
|
|
if (event.original == Block.gravel.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.grass.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//Prairie
|
|
|
|
if (event.biome == Biomes.prairie.get())
|
|
|
|
{
|
|
|
|
//Gravel
|
|
|
|
if (event.original == Block.gravel.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.sand.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-15 03:38:04 +00:00
|
|
|
//Savanna
|
2013-09-14 23:01:07 +00:00
|
|
|
if (event.biome == Biomes.savanna.get())
|
|
|
|
{
|
2013-09-15 03:38:04 +00:00
|
|
|
//Cobblestone
|
2013-09-14 23:01:07 +00:00
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
2013-09-15 03:38:04 +00:00
|
|
|
event.replacement = Blocks.logs1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.logs1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.planks.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.acaciaStairs.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Cobblestone Stairs
|
|
|
|
if (event.original == Block.stairsCobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.acaciaStairs.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Stone Slabs
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.woodenSingleSlab1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Lava
|
|
|
|
if (event.original == Block.lavaStill.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterStill.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
if (event.original == Block.lavaMoving.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterMoving.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Gravel
|
|
|
|
if (event.original == Block.gravel.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.sand.blockID;
|
2013-09-15 01:22:11 +00:00
|
|
|
event.setResult(Result.DENY);
|
2013-09-14 23:01:07 +00:00
|
|
|
}
|
2013-09-19 03:57:33 +00:00
|
|
|
|
|
|
|
//Glass Panes
|
|
|
|
if (event.original == Block.thinGlass.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.fenceIron.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-14 23:01:07 +00:00
|
|
|
}
|
2013-09-15 18:20:14 +00:00
|
|
|
|
|
|
|
//Scrubland
|
|
|
|
if (event.biome == Biomes.scrubland.get())
|
|
|
|
{
|
|
|
|
//Gravel
|
|
|
|
if (event.original == Block.gravel.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.sand.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:58:32 +00:00
|
|
|
//Snowy Coniferous Forest
|
|
|
|
if (event.biome == Biomes.coniferousForestSnow.get())
|
|
|
|
{
|
2013-09-19 03:57:33 +00:00
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.logs1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:58:32 +00:00
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.logs1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.planks.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.firStairs.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-19 03:57:33 +00:00
|
|
|
|
|
|
|
//Cobblestone Stairs
|
|
|
|
if (event.original == Block.stairsCobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.firStairs.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Stone Slabs
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.woodenSingleSlab1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Lava
|
|
|
|
if (event.original == Block.lavaStill.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterStill.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
if (event.original == Block.lavaMoving.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterMoving.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Glass Panes
|
|
|
|
if (event.original == Block.thinGlass.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.fenceIron.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 18:58:32 +00:00
|
|
|
}
|
|
|
|
|
2013-09-15 18:20:14 +00:00
|
|
|
//Spruce Woods
|
|
|
|
if (event.biome == Biomes.spruceWoods.get())
|
|
|
|
{
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.stairsWoodSpruce.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//Steppe
|
|
|
|
if (event.biome == Biomes.steppe.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.logs1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.logs1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.planks.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.acaciaStairs.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Cobblestone Stairs
|
|
|
|
if (event.original == Block.stairsCobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.acaciaStairs.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Stone Slabs
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.woodenSingleSlab1.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Lava
|
|
|
|
if (event.original == Block.lavaStill.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterStill.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
if (event.original == Block.lavaMoving.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterMoving.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Gravel
|
|
|
|
if (event.original == Block.gravel.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.sand.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-19 03:57:33 +00:00
|
|
|
|
|
|
|
//Glass Panes
|
|
|
|
if (event.original == Block.thinGlass.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.fenceIron.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 18:20:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//Tropical Rainforest
|
|
|
|
if (event.biome == Biomes.tropicalRainforest.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.wood.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.stairsWoodJungle.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Cobblestone Stairs
|
|
|
|
if (event.original == Block.stairsCobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.stairsWoodJungle.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
2013-09-19 03:57:33 +00:00
|
|
|
//Stone Slabs
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.woodSingleSlab.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:20:14 +00:00
|
|
|
//Lava
|
|
|
|
if (event.original == Block.lavaStill.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterStill.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
if (event.original == Block.lavaMoving.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterMoving.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Gravel
|
|
|
|
if (event.original == Block.gravel.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.sand.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-19 03:57:33 +00:00
|
|
|
|
|
|
|
//Glass Panes
|
|
|
|
if (event.original == Block.thinGlass.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.fenceIron.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 18:20:14 +00:00
|
|
|
}
|
2013-09-15 18:58:32 +00:00
|
|
|
|
|
|
|
//Wetland
|
|
|
|
if (event.biome == Biomes.wetland.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.logs3.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.logs3.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.planks.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.willowStairs.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Cobblestone Stairs
|
|
|
|
if (event.original == Block.stairsCobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.willowStairs.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Stone Slabs
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Blocks.woodenSingleSlab2.get().blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Lava
|
|
|
|
if (event.original == Block.lavaStill.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterStill.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
if (event.original == Block.lavaMoving.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.waterMoving.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-19 03:57:33 +00:00
|
|
|
|
|
|
|
//Glass Panes
|
|
|
|
if (event.original == Block.thinGlass.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = Block.fenceIron.blockID;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 18:58:32 +00:00
|
|
|
}
|
2013-09-15 18:20:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@ForgeSubscribe
|
|
|
|
public void getVillageBlockMeta(BiomeEvent.GetVillageBlockMeta event)
|
|
|
|
{
|
2013-09-15 21:03:29 +00:00
|
|
|
//Birch Forest
|
|
|
|
if (event.biome == Biomes.birchForest.get())
|
|
|
|
{
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 2;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:58:32 +00:00
|
|
|
//Coniferous Forest
|
|
|
|
if (event.biome == Biomes.coniferousForest.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 3;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 3;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 3;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-19 03:57:33 +00:00
|
|
|
|
|
|
|
//Single Stone Slab
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 3;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 18:58:32 +00:00
|
|
|
}
|
|
|
|
|
2013-09-15 18:20:14 +00:00
|
|
|
//Desert
|
|
|
|
if (event.biome == Biomes.desertNew.get())
|
|
|
|
{
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 0;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 2;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//Grove
|
|
|
|
if (event.biome == Biomes.grove.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 5;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Single Stone Slab
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-19 03:57:33 +00:00
|
|
|
//Heathland
|
|
|
|
if (event.biome == Biomes.heathland.get())
|
|
|
|
{
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 2;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 13;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:20:14 +00:00
|
|
|
//Lush Desert
|
|
|
|
if (event.biome == Biomes.lushDesert.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Single Stone Slab
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 0;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:58:32 +00:00
|
|
|
//Maple Woods
|
2013-09-16 23:18:00 +00:00
|
|
|
if (event.biome == Biomes.mapleWoods.get())
|
2013-09-15 18:58:32 +00:00
|
|
|
{
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:20:14 +00:00
|
|
|
//Meadow
|
|
|
|
if (event.biome == Biomes.meadow.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 21:03:29 +00:00
|
|
|
|
|
|
|
//Single Stone Slab
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 18:20:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//Meadow Forest
|
|
|
|
if (event.biome == Biomes.meadowForest.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 21:03:29 +00:00
|
|
|
|
|
|
|
//Single Stone Slab
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 18:20:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//Outback
|
|
|
|
if (event.biome == Biomes.outback.get())
|
|
|
|
{
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 4;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//Overgrown Greens
|
|
|
|
if (event.biome == Biomes.overgrownGreens.get())
|
|
|
|
{
|
|
|
|
//Wooden Stairs
|
|
|
|
if (event.original == Block.stairsWoodOak.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 4;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-09-15 18:58:32 +00:00
|
|
|
//Snowy Coniferous Forest
|
|
|
|
if (event.biome == Biomes.coniferousForestSnow.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 3;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 3;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 3;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-19 03:57:33 +00:00
|
|
|
|
|
|
|
//Single Stone Slab
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 3;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 18:58:32 +00:00
|
|
|
}
|
|
|
|
|
2013-09-15 18:20:14 +00:00
|
|
|
//Spruce Woods
|
|
|
|
if (event.biome == Biomes.spruceWoods.get())
|
|
|
|
{
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//Tropical Rainforest
|
|
|
|
if (event.biome == Biomes.tropicalRainforest.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 3;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 3;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 3;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-19 03:57:33 +00:00
|
|
|
|
|
|
|
//Single Stone Slab
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 3;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
2013-09-15 18:20:14 +00:00
|
|
|
}
|
2013-09-15 18:58:32 +00:00
|
|
|
|
|
|
|
//Wetland
|
|
|
|
if (event.biome == Biomes.wetland.get())
|
|
|
|
{
|
|
|
|
//Cobblestone
|
|
|
|
if (event.original == Block.cobblestone.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Logs
|
|
|
|
if (event.original == Block.wood.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Wooden Planks
|
|
|
|
if (event.original == Block.planks.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 9;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
|
|
|
|
//Single Stone Slab
|
|
|
|
if (event.original == Block.stoneSingleSlab.blockID)
|
|
|
|
{
|
|
|
|
event.replacement = 1;
|
|
|
|
event.setResult(Result.DENY);
|
|
|
|
}
|
|
|
|
}
|
2013-09-14 23:01:07 +00:00
|
|
|
}
|
|
|
|
}
|