Hey, Can anyone please explain a bit about world generation? I want to make a code so the world will generate as usual, but block above a certain coordinate will be air... Thanks
The easiest way for that what you want would be to add a ChunkLoadEvent and check whether the chunk is a newly generated chunk. If yes, get all the blocks y>what-you-want and set them to air...
A for loop for the x coords in the chunk with a forloop for the z coordinates and a third for loop for he y coords from for example 70 up to 256. Then get the block at x/y/z and set the type to air. If you want to do it with a world generator chek out this: http://forums.bukkit.org/threads/basic-creating-custom-world-generators-new-api.79066/#post-1153406 it would be faster but more complicated too... (sorry but i post from my phone so it's hard to write ccode...)
Thanks - is there a way to edit the default terrain though? So blocks over a certain point wont be created? bump? bump again... EDIT by Moderator: merged posts, please use the edit button instead of double posting.