Added Birch Forest villages

This commit is contained in:
Matt Caughey 2013-09-15 17:03:29 -04:00
parent 354f03be69
commit c701cc443f
3 changed files with 53 additions and 0 deletions

View file

@ -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);

View file

@ -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);

View file

@ -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