Skip to content

Instantly share code, notes, and snippets.

Created March 18, 2014 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6fcac69c2bbf1e534e0c to your computer and use it in GitHub Desktop.
Save anonymous/6fcac69c2bbf1e534e0c to your computer and use it in GitHub Desktop.
public class CarnelianGenerator implements IWorldGenerator{
@Override
public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
if(world.provider.dimensionId == 0)
{
for(int i = 0; i < 20; i++)
{
int blockX = chunkX + random.nextInt(16);
int blockY = random.nextInt(256);
int blockZ = chunkZ + random.nextInt(16);
(new WorldGenMinable(Arcano.carnelianOre, 5)).generate(world, random, blockX, blockY, blockZ);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment