Type@std/terrain
terrain.Caves
How caves hollows out the ground.
Fields
caves.fill: number?What caves are filled with; air if nil.
caves.fromY: numberThe lowest y caves reach.
caves.scale: number?Blocks across per noise unit; 32 if nil.
caves.threshold: number?Noise above this is cave; between -1 and 1, higher is fewer caves. 0.3 if nil.
caves.toY: numberThe y caves stop below; toY - fromY is a multiple of 8.
caves.yScale: number?Blocks up per noise unit; half of scale if nil.