Posted March 12, 201411 yr Hey Guys! I want to find an empty place in Nether for my world generator to create some structures there. I need a place with at least ten Blocks air above it. How can I find such place in the world generator? To generate on the surface you can use getHeightValue, but in the Nether? I don't think it will work there. http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
March 12, 201411 yr try and use a forloop to check if getblock(xcoord ycoord zcoord+var) = air I'm always happy to help others! Java is not my main programming language but I have alot experience in PHP/HTML/JS/CSS3/C#/SQL
March 12, 201411 yr for(int i = 0; i < 9; i++){ if(world.getBlockId(x, y + i, z) == 0){ //generation } }
March 12, 201411 yr for(int i = 0; i < 9; i++){ if(world.getBlockId(x, y + i, z) == 0){ //generation } } yep youre right it i mistook the y for z coord I'm always happy to help others! Java is not my main programming language but I have alot experience in PHP/HTML/JS/CSS3/C#/SQL
March 12, 201411 yr Author Thanks, this worked http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.