Experimental

An early preview: docs, the API and the dashboard may change or break.

Report a problem

terrain.Caves

How caves hollows out the ground.

Fields

caves.fill: number?
#

What caves are filled with; air if nil.

caves.fromY: number
#

The lowest y caves reach.

caves.noise: types.Noise
#

The noise the caves follow, from gen.noise.

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: number
#

The y caves stop below; toY - fromY is a multiple of 8.

caves.yScale: number?
#

Blocks up per noise unit; half of scale if nil.