Function of World
world.build
The same value, written in code instead of read from a file. { detail = 2 }: coordinates are half blocks, fitted to slabs and stairs.
world.build(fn: (b: Builder) -> (), opts: { detail: number? }?) → Schematic
Parameters
fn(b: Builder) -> ()opts{ detail: number? }Returns
SchematicUsed in
`world.build` makes a build in code: a schematic with no file. It gets aGuide: Build a cottagelocal cottage = world.build(function(b)Guide: Build a cottageworld.build(function(b) end, { detail = 1 }) -- the same value, written in code; detail 2 is half blocksBlocks and terrainlocal road = world.build(function(b)Blocks and terraindetail = 1, -- as world.build: 1, or 2 for half blocksNamed partsbuild = function(b) ... end, -- exactly a world.build functionNamed parts