Skip to content

Instantly share code, notes, and snippets.

Created March 8, 2012 23:54
Show Gist options
  • Save anonymous/2004221 to your computer and use it in GitHub Desktop.
Save anonymous/2004221 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);
}
}
public void generateSurface1(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.Sapphire.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public void generateSurface11(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.Fluorite.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public void generateSurface111(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.Demantoid.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public void generateSurface1111(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.Opal.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public void generateSurface11111(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.Danburite.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public void generateSurface111111(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.Peridot.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public void generateSurface1111111(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.Topaz.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public void generateSurface11111111(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.Ruby.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public void generateSurface111111111(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.Amethyst.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public void generateSurface1111111111(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.Onyx.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public void generateSurface11111111111(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.Hackmanite.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
public void generateSurface111111111111(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.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