Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##
- ## This is the code I used to generate the powerstone in the overworld which seems to work just fine
- ##
- public void generateSurface(World world, java.util.Random rand, int chunkX, int chunkZ){
- for(int i = 0; i < 4; i++){
- int randPosX = chunkX + rand.nextInt(16);
- int randPosY = rand.nextInt(23)+0;
- int randPosZ = chunkZ + rand.nextInt(16);
- (new WorldGenMinable(mod_powerstoneOre.block.blockID, 16)).generate(world, rand, randPosX, randPosY, randPosZ);
- }
- }
- ##
- ## This is the code I used for all the other ores to generate in the nether... which seems to have not worked :(
- ##
- public void generateNether(World world, java.util.Random rand, int chunkX, int chunkZ){
- for(int i = 0; i < 1; i++){
- int randPosX = chunkX + rand.nextInt(16);
- int randPosY = rand.nextInt(96)+0;
- int randPosZ = chunkZ + rand.nextInt(16);
- (new WorldGenMinable(mod_sapphireOre.block.blockID, 16)).generate(world, rand, randPosX, randPosY, randPosZ);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement