fogleman / Craft

A simple Minecraft clone written in C using modern OpenGL (shaders).
http://www.michaelfogleman.com/craft/
MIT License
10.39k stars 1.39k forks source link

How to increase the depth limit of 16 blocks? #213

Open crazyBaboon opened 5 years ago

crazyBaboon commented 5 years ago

Hi, it is very annoying that one can only dig down to 16 blocks. Where abouts in the code (which, BTW could definately do a bit more comments...) can this limit be changed (or removed like in Minetest)?

Thanks!

fogleman commented 5 years ago

You can increase the ground height in the terrain generation code:

https://github.com/fogleman/Craft/blob/master/src/world.c#L20