Skip to content

Examples

Every file lives in examples/ and is intentionally minimal. The Tutorial walks through the four in the first group.

Every file here compiles with the current compiler. Redstone does not reach compiled output yet, so redstone-door.crn builds without its circuit.

File Shows
cottage.crn The minimum useful build: struct, theme, slots.
themed-tower.crn Abstract material tokens, per-floor level, override-promotion.
redstone-door.crn Logical redstone: signal binding, circuit region, assertions.
village.crn Multi-building with site and topological connect.
File Shows
roof-shed.crn kind=shed slope_to=front: a single slope rising toward the front wall.
roof-hip.crn kind=hip on a square footprint: four slopes onto one apex cap.
roof-flat.crn kind=flat: a single deck layer, with the overhang extending it past the walls.
File Shows
l-walkway.crn A Manhattan L between two ports that differ on both axes.
at-side-walkway.crn at=left / at=right door anchors pulling ports toward the facing corners.
window-walkway.crn A window port, anchored at the rectangle’s centre and pinned to the ground row.
File Shows
edition-fallback.crn Per-edition theme variants for a slot with no cross-edition primitive.
crossbar.crn Four nets in a tight region: the router lays each one around the others and lifts one onto a bridge layer inside void=2; at void=1 it refuses with E_ROUTE_CONGESTION.