Guide 1 Docs 2 Reference 3
4

Builder type

What world.build hands the function it is given. Coordinates are whole blocks of the build's own and may be negative; later writes win.

Functions 4

builder:block(pos: Vec3, block: string)

Sets one block of the build; later writes win.

builder:box(from: Vec3, to: Vec3, block: string)

Inclusive corners, in any order, like chunk:fill.

builder:line(from: Vec3, to: Vec3, block: string)

Every block the straight line between the ends passes through.

builder:part(name: string, fn: () -> ())

What fn writes is a named part, found by citadel render --part and citadel check once pasted. Nested calls name "tower/roof".