I was watching a tutorial from last year that was discussing how to create blocks that would be generated with the world. I have lost the link to the video, but the basic issue I'm having here is simple. In the video the presenter showed the ChunkProviderGeneate.java file in which there were multiple lines of code such as this for each of the available types of block (dirt, sand, various ores, etc):
for(int i=0; i < 30; i++){
int randPosX = chunkX + random.nextInt(16);
int randPosY = random.nextInt(128);
int randPosZ = chunkZ = random.nextInt(16);
(new WorldGenMinable(oreUranium.blockID, 16)).generate(world, random, randPosX, randPosY, randPosZ);
}
Unfortunately, the code appears to be updated and I don't know where it is. If it was I'd be able to answer a rather basic question. Exactly what is the approximate ratio of each block being generated in relation to each other? Or better yet, where can I find the code that determines this?