Chunk generator (UNTESTED, Read description)

More preparations for world generation.
Please note:
The world generation has not yet been implemented, neither do i know if
what i have done, actually works. i GUESS it will, but i’m not sure,
especially the chunk generator. i’m not very good at calculations. so
it may not give the correct result at the moment.