Added config options for wither wart and burning blossom gen
This commit is contained in:
parent
cd477d67ca
commit
b80e6e58f7
|
@ -1154,6 +1154,8 @@ public class BiomeDecoratorBOP extends BiomeDecorator
|
|||
lilyOfTheValleyGen.generate(currentWorld, randomGenerator, var3, var4, var5);
|
||||
}
|
||||
|
||||
if (BOPConfigurationTerrainGen.burningBlossomGen)
|
||||
{
|
||||
for (var2 = 0; var2 < burningBlossomsPerChunk; ++var2)
|
||||
{
|
||||
var3 = chunk_X + randomGenerator.nextInt(16) + 8;
|
||||
|
@ -1161,6 +1163,7 @@ public class BiomeDecoratorBOP extends BiomeDecorator
|
|||
var5 = chunk_Z + randomGenerator.nextInt(16) + 8;
|
||||
burningBlossomGen.generate(currentWorld, randomGenerator, var3, var4, var5);
|
||||
}
|
||||
}
|
||||
|
||||
for (var2 = 0; var2 < lavenderPerChunk; ++var2)
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
@ -57,11 +58,14 @@ public class WorldGenNetherWart extends WorldGenerator
|
|||
par1World.setBlock(var8, var9, var10, Block.netherStalk.blockID, 3, 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (BOPConfigurationTerrainGen.witherWartGen)
|
||||
{
|
||||
par1World.setBlock(var8, var9, var10, Blocks.plants.get().blockID, 13, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue