Skip to main content

Module cave

Module cave 

Source
Expand description

Cave carver (overworld + nether variants).

Mirrors vanilla’s CaveWorldCarver + NetherWorldCarver. Single entry point CarveRun::carve_cave dispatched off a CaveKind — vanilla’s overrides for nether (cave bound, thickness multiplier, y scale, per-block placement) are captured as kind-specific constants so the tunnel recursion logic stays shared.

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.

Enums§

CaveKind
Which cave carver flavor to run.

Constants§

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