Introduction
Cairn is a description language for Minecraft builds. You declare intent (walls, roofs, windows, symmetry, themes, redstone logic) and the compiler resolves the voxels: blockstates, orientations, coordinate maths, signal routing, and the right block IDs for the edition and version you are building for.
A cairn is a deliberately stacked pile of stones that marks a place. A Minecraft build is exactly that. The name is the thesis.
What it solves
Section titled “What it solves”Minecraft’s NBT/SNBT is inefficient for an AI to read and write. It is binary, with one record per block. It also works at the wrong granularity: people and AI reason about walls, roofs, and symmetry. Cairn sits between an AI’s general architectural knowledge and Minecraft’s voxel world.
The portable artifact is always the Cairn source. Emitted NBT and schematics are per-target build outputs, the equivalent of a compiled binary. Targeting a new Minecraft version means recompiling the source rather than transcoding the NBT.
What it deliberately does not do
Section titled “What it deliberately does not do”Full round-trip fidelity with NBT. Generation-first is lossy by design. Imported schematics are kept as a faithful low-level transliteration that an LLM can lift into idiomatic Cairn, with a voxel-diff loop driving convergence.
General sequential synthesis of arbitrary state machines or CPUs in redstone. v1 ships
combinational gates plus a curated macro library; everything else drops to physical placement or a
raw escape hatch.
Pre-1.13 numeric-ID .schematic import. v1 does not support flattening.
See Purpose and Scope for the normative wording.
Where to read next
Section titled “Where to read next”| Tutorial | A walk from one cottage to a village, through the worked examples. |
| Specification | Fifteen chapters, plus the compatibility tiers and a cross-cutting glossary. |
| Developer Guide | The Rust workspace, how the crates split, and how to land changes. |
| Playground | A placeholder for the browser-hosted compiler. Tracks cairn-lang-wasm. |
Every page of this site except the home page and the playground also ships inside cairn, as it
stood in the release you installed. cairn docs lists the pages, and cairn docs spec/syntax
prints one as Markdown, with no network needed.
For language models, /llms.txt indexes the site. The same pages are also served as
Markdown at their URL followed by index.md, and /llms-full.txt holds every
English page in one file.
Status
Section titled “Status”Cairn is at the design stage, draft 2026.06. The language is being designed in the open, and the
reference compiler already builds Java and Bedrock structure files from one source. The most useful
contributions right now are design critique, concrete proposals, and worked examples. See
CONTRIBUTING.md.