Skip to content

Instantly share code, notes, and snippets.

@riking
Forked from anonymous/The Code
Created March 8, 2012 23:57
Show Gist options
  • Save riking/2004232 to your computer and use it in GitHub Desktop.
Save riking/2004232 to your computer and use it in GitHub Desktop.
Generation Help
public void generateSurface(World world, Random rand, int chunkX, int chunkZ)
{
for(int a= 0; a < 32; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Ores.Emerald.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int a= 0; a < 32; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Ores.Sapphire.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int a= 0; a < 32; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Ores.Fluorite.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int a= 0; a < 32; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Ores.Demantoid.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int a= 0; a < 32; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Ores.Opal.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int a= 0; a < 32; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Ores.Danburite.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int a= 0; a < 32; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Ores.Peridot.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int a= 0; a < 32; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Ores.Topaz.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int a= 0; a < 32; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Ores.Ruby.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int a= 0; a < 32; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Ores.Amethyst.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int a= 0; a < 32; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Ores.Onyx.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int a= 0; a < 32; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Ores.Hackmanite.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
for(int a= 0; a < 32; a++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(64);
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(mod_Ores.Apatite.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment