summaryrefslogtreecommitdiff
path: root/src/main/java/darkknight/jewelrycraft/worldGen/Generation.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/worldGen/Generation.java')
-rw-r--r--src/main/java/darkknight/jewelrycraft/worldGen/Generation.java39
1 files changed, 13 insertions, 26 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/worldGen/Generation.java b/src/main/java/darkknight/jewelrycraft/worldGen/Generation.java
index 5992273..d71b44c 100644
--- a/src/main/java/darkknight/jewelrycraft/worldGen/Generation.java
+++ b/src/main/java/darkknight/jewelrycraft/worldGen/Generation.java
@@ -9,15 +9,8 @@ import darkknight.jewelrycraft.block.BlockList;
public class Generation implements IWorldGenerator
{
+ WorldGenStructure1 STRUCTURE_1 = new WorldGenStructure1();
- /**
- * @param random
- * @param chunkX
- * @param chunkZ
- * @param world
- * @param chunkGenerator
- * @param chunkProvider
- */
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
{
@@ -35,21 +28,9 @@ public class Generation implements IWorldGenerator
}
}
- /**
- * @param world
- * @param random
- * @param i
- * @param j
- */
private void generateEnd(World world, Random random, int i, int j)
{}
- /**
- * @param world
- * @param random
- * @param i
- * @param j
- */
private void generateSurface(World world, Random random, int i, int j)
{
for(int k = 0; k < 1; k++){
@@ -60,14 +41,20 @@ public class Generation implements IWorldGenerator
int randX = random.nextInt(2), randY = random.nextInt(1), randZ = random.nextInt(2);
if (random.nextInt(3) == 0 && world.getBlock(x + randX, y + randY, z + randZ) == Blocks.stone) world.setBlock(x + randX, y + randY, z + randZ, BlockList.shadowOre);
}
+ for(int k = 0; k < 16; k++){
+ int x = i + random.nextInt(12);
+ int y = 5 + random.nextInt(64);
+ int z = j + random.nextInt(12);
+ for(int r = 0; r < 12; r++){
+ int randX = random.nextInt(4);
+ int randY = random.nextInt(2);
+ int randZ = random.nextInt(4);
+ if (world.getBlock(x + randX, y + randY - 1, z + randZ) == Blocks.stone && world.getBlock(x + randX, y + randY, z + randZ) == Blocks.air)
+ world.setBlock(x + randX, y + randY, z + randZ, BlockList.crystal, random.nextInt(16), 2);
+ }
+ }
}
- /**
- * @param world
- * @param random
- * @param i
- * @param j
- */
private void generateNether(World world, Random random, int i, int j)
{}
}