Skip to main content

Module cave

Module cave 

Source
Expand description

Cave carver.

Mirrors vanilla’s CaveWorldCarver — also used for minecraft:nether_cave, since vanilla merged NetherWorldCarver into this same algorithm; only the configured values differ now.

Structs§

TunnelParams 🔒
Static per-tunnel configuration passed through create_tunnel recursion unchanged between iterations.
TunnelState 🔒
Position + rotation state that evolves along a tunnel’s length.

Constants§

CARVER_RANGE 🔒
Vanilla WorldCarver.getRange() — range in chunks. 4 each direction.
MAX_TUNNEL_DISTANCE 🔒
Vanilla SectionPos.sectionToBlockCoord(getRange() * 2 - 1) = 112.

Functions§

get_thickness 🔒
Vanilla CaveWorldCarver.getThickness.