Skip to main content

Module canyon

Module canyon 

Source
Expand description

Canyon (ravine) carver.

Mirrors vanilla’s CanyonWorldCarver. Carves a single long, narrow tunnel per chunk with per-height width variation; runs only from an overworld biome’s carver list (minecraft:canyon, 1 % probability).

Structs§

CanyonState 🔒
Position + rotation state that evolves along the canyon’s length.
CanyonTunnel 🔒
Static per-tunnel parameters for the canyon’s do_carve loop.

Constants§

CARVER_RANGE 🔒
Vanilla WorldCarver.getRange() — 4 chunks each direction. Shared with the cave carver.
MAX_TUNNEL_DISTANCE 🔒
Vanilla: (getRange() * 2 - 1) * 16.

Functions§

should_skip_canyon 🔒
Vanilla CanyonWorldCarver.shouldSkip. Vanilla indexes widthFactorPerHeight[yIndex - 1] where yIndex = world_y - context.getMinGenY(); i.e. the previous Y’s width factor applied to this block’s radial test.