Added config options for wither wart and burning blossom gen

This commit is contained in:
Matt Caughey 2013-09-21 14:44:04 -04:00
parent cd477d67ca
commit b80e6e58f7
3 changed files with 17 additions and 6 deletions

View File

@ -1154,12 +1154,15 @@ public class BiomeDecoratorBOP extends BiomeDecorator
lilyOfTheValleyGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
for (var2 = 0; var2 < burningBlossomsPerChunk; ++var2)
if (BOPConfigurationTerrainGen.burningBlossomGen)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
burningBlossomGen.generate(currentWorld, randomGenerator, var3, var4, var5);
for (var2 = 0; var2 < burningBlossomsPerChunk; ++var2)
{
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
var4 = randomGenerator.nextInt(256);
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
burningBlossomGen.generate(currentWorld, randomGenerator, var3, var4, var5);
}
}
for (var2 = 0; var2 < lavenderPerChunk; ++var2)

View File

@ -22,6 +22,8 @@ public class BOPConfigurationTerrainGen
public static boolean poisonWaterGen;
public static boolean quicksandGen;
public static boolean exposedStone;
public static boolean witherWartGen;
public static boolean burningBlossomGen;
public static int villageDistance;
@ -129,6 +131,8 @@ public class BOPConfigurationTerrainGen
springWaterGen = config.get("Decoration Settings", "Generate Hot Springs", true).getBoolean(true);
poisonWaterGen = config.get("Decoration Settings", "Generate Poison Pools", true).getBoolean(true);
quicksandGen = config.get("Decoration Settings", "Generate Quicksand", true).getBoolean(true);
witherWartGen = config.get("Decoration Settings", "Generate Wither Wart", true).getBoolean(true);
burningBlossomGen = config.get("Decoration Settings", "Generate Burning Blossoms", true).getBoolean(true);
exposedStone = config.get("Decoration Settings", "Generate Sections Of Exposed Stone", true).getBoolean(true);
villageDistance = config.get("Biomes O\' Plenty World Type Settings", "Distance between villages", 32, "In Vanilla it is set to 32").getInt();

View File

@ -6,6 +6,7 @@ import net.minecraft.block.Block;
import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator;
import biomesoplenty.api.Blocks;
import biomesoplenty.configuration.configfile.BOPConfigurationTerrainGen;
public class WorldGenNetherWart extends WorldGenerator
{
@ -58,7 +59,10 @@ public class WorldGenNetherWart extends WorldGenerator
}
else
{
par1World.setBlock(var8, var9, var10, Blocks.plants.get().blockID, 13, 2);
if (BOPConfigurationTerrainGen.witherWartGen)
{
par1World.setBlock(var8, var9, var10, Blocks.plants.get().blockID, 13, 2);
}
}
}
}