Code Clean-Sweep!
This commit is contained in:
parent
7d7a8f0b7e
commit
02e6be9d0e
34 changed files with 610 additions and 766 deletions
|
|
@ -11,40 +11,22 @@ import cpw.mods.fml.common.IWorldGenerator;
|
|||
|
||||
public class WorldgenSmoothLimestone implements IWorldGenerator
|
||||
{
|
||||
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
|
||||
{
|
||||
switch (world.provider.dimensionId)
|
||||
{
|
||||
case 0: generateSurface(world, random, chunkX*16, chunkZ*16);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void generateSurface(World world, Random random, int blockX, int blockZ)
|
||||
{
|
||||
if(Config.Rare == false){
|
||||
for(int i=0; i<3; i++)
|
||||
{
|
||||
int Xcoord = blockX + random.nextInt(16);
|
||||
int Ycoord = random.nextInt(40) + 20;
|
||||
int Zcoord = blockZ + random.nextInt(16);
|
||||
|
||||
(new WorldGenMinable(MysticStones.Stones.blockID, 2, 48, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
}
|
||||
|
||||
if(Config.Rare == true){
|
||||
for(int i=0; i<2; i++)
|
||||
{
|
||||
int Xcoord = blockX + random.nextInt(16);
|
||||
int Ycoord = random.nextInt(40) + 20;
|
||||
int Zcoord = blockZ + random.nextInt(16);
|
||||
|
||||
(new WorldGenMinable(MysticStones.Stones.blockID, 2, 48, Block.stone.blockID)).generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
|
||||
{
|
||||
switch(world.provider.dimensionId)
|
||||
{
|
||||
case 0:generateSurface(world, random, chunkX*16, chunkZ*16);
|
||||
}
|
||||
}
|
||||
|
||||
private void generateSurface(World world, Random random, int blockX, int blockZ)
|
||||
{
|
||||
for(int i=0; Config.Rare ? i<2 : i<3; i++)
|
||||
{
|
||||
int Xcoord = blockX + random.nextInt(16);
|
||||
int Ycoord = random.nextInt(40) + 20;
|
||||
int Zcoord = blockZ + random.nextInt(16);
|
||||
new WorldGenMinable(MysticStones.Stones.blockID, 2, 48, Block.stone.blockID).generate(world, random, Xcoord, Ycoord, Zcoord);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue