Advertisement
Naddox

Ore Generation Minecraft

Mar 30th, 2013
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. public void generateSurface(World world, java.util.Random rand, int chunkX, int chunkZ)
  2. {
  3.     for(int i = 0; i < /**FreqOnChunks**/; i++)
  4.     {
  5.         int randPosX = chunkX + rand.nextInt(16);
  6.         int randPosY = rand.nextInt(/**TopHeight**/)+/**BottomHeight**/;
  7.         int randPosZ = chunkZ + rand.nextInt(16);
  8.         (new WorldGenMinable(mod_Name.oreName.blockID, /**FreqOnSpecificChunk**/)).generate(world, rand, randPosX, randPosY, randPosZ);
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement