Advertisement
Guest User

Untitled

a guest
Apr 8th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.94 KB | None | 0 0
  1. ##
  2. ## This is the code I used to generate the powerstone in the overworld which seems to work just fine
  3. ##
  4.  
  5. public void generateSurface(World world, java.util.Random rand, int chunkX, int chunkZ){
  6. for(int i = 0; i < 4; i++){
  7. int randPosX = chunkX + rand.nextInt(16);
  8. int randPosY = rand.nextInt(23)+0;
  9. int randPosZ = chunkZ + rand.nextInt(16);
  10. (new WorldGenMinable(mod_powerstoneOre.block.blockID, 16)).generate(world, rand, randPosX, randPosY, randPosZ);
  11. }
  12. }
  13.  
  14. ##
  15. ## This is the code I used for all the other ores to generate in the nether... which seems to have not worked :(
  16. ##
  17.  
  18. public void generateNether(World world, java.util.Random rand, int chunkX, int chunkZ){
  19. for(int i = 0; i < 1; i++){
  20. int randPosX = chunkX + rand.nextInt(16);
  21. int randPosY = rand.nextInt(96)+0;
  22. int randPosZ = chunkZ + rand.nextInt(16);
  23. (new WorldGenMinable(mod_sapphireOre.block.blockID, 16)).generate(world, rand, randPosX, randPosY, randPosZ);
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement