build
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
build
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->TODO: describe this module.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2game/build.module/init.luau THE MISSING FLOOR — geometry primitives. Everything in the building is made of these few calls, so the whole game is one vocabulary of boxes, walls, door openings, ceiling strips and props. It exists so that five systems can lay out a floor without each inventing its own idea of what a wall is. Every call takes a `parent` and a `pos` in the PARENT's local space, and returns the entity it made. Nothing here ticks: this module builds, the components behave.
cube( ) → void
MAT(name: ?) → void
A palette material by name, or the builtin stand-in if it isn't authored. `name` is the bare palette key ("concrete") or a full "mf_concrete" name.
| arg | type | description |
|---|---|---|
| name | ? |
rot(ax: ?, ay: ?, az: ?, deg: ?) → void
A quaternion from an axis and an angle in DEGREES (Transform wants radians).
| arg | type | description |
|---|---|---|
| ax | ? | |
| ay | ? | |
| az | ? | |
| deg | ? |
rotY(deg: ?) → void
| arg | type | description |
|---|---|---|
| deg | ? |
node(name: ?, parent: ?, pos: ?) → void
| arg | type | description |
|---|---|---|
| name | ? | |
| parent | ? | |
| pos | ? |
box(opts: ?) → void
A box. `size` is its full extent in metres, centred on `pos`. opts: { name, parent, pos, size, material, collider (default true), rot (quaternion), rotY (degrees), shadows (default false), temp (default true — runtime content is rebuilt from code) }
| arg | type | description |
|---|---|---|
| opts | ? |
slab(opts: ?) → void
A horizontal slab: a floor or a ceiling. `size` = {x, z}; `thickness` on Y.
| arg | type | description |
|---|---|---|
| opts | ? |
wall(opts: ?) → void
A wall running from `from` to `to` (world-ish local points on the XZ plane), `height` tall, `thickness` thick, standing on `baseY`. opts: { name, parent, from = {x,z}, to = {x,z}, baseY, height, thickness, material, collider }
| arg | type | description |
|---|---|---|
| opts | ? |
doorway(opts: ?) → void
A doorway in a wall running along the corridor's X axis (i.e. the wall plane is Y/Z): leaves a gap of `width` centred at `at`, and builds the two jambs plus the header above the opening. opts: { parent, at = {x, y, z} (centre of the OPENING, at floor level), width, height, thickness, facing = "x"|"z", material, header } Returns { left, right, header }.
| arg | type | description |
|---|---|---|
| opts | ? |
seg(name: ?, offset: ?, length: ?, y: ?, height: ?) → void
| arg | type | description |
|---|---|---|
| name | ? | |
| offset | ? | |
| length | ? | |
| y | ? | |
| height | ? |
steps(opts: ?) → void
A stair run climbing `rise` from y0 to y0+rise, in `steps` steps, walking along +Z from `at`. opts: { parent, at = {x, y, z}, width, run, rise, steps, material }
| arg | type | description |
|---|---|---|
| opts | ? |
strip(opts: ?) → void
A ceiling fluorescent: a dark housing box, an emissive tube, and the point light it casts. Returns { housing, tube, light }. opts: { parent, pos, rotY, color = {r,g,b}, intensity, radius, name }
| arg | type | description |
|---|---|---|
| opts | ? |
bulb(opts: ?) → void
A bare bulb on a short flex, and the light it casts. opts: { parent, pos, color, intensity, radius, name }
| arg | type | description |
|---|---|---|
| opts | ? |
label(opts: ?) → void
World-space text — a door number, a sign, a name plate. Built from a UiPanel in 3d mode so it is real type rather than a squashed box. opts: { parent, pos, rotY, text, size, color, background, name }
| arg | type | description |
|---|---|---|
| opts | ? |
desk(opts: ?) → void
Deliberately crude: a crate, a desk, a chair, a cabinet, a shelf, a bin. The world slice dresses floors with these and the polish pass may replace the signature ones with generated models.
| arg | type | description |
|---|---|---|
| opts | ? |
chair(opts: ?) → void
| arg | type | description |
|---|---|---|
| opts | ? |
cabinet(opts: ?) → void
| arg | type | description |
|---|---|---|
| opts | ? |
shelf(opts: ?) → void
| arg | type | description |
|---|---|---|
| opts | ? |
bin(opts: ?) → void
| arg | type | description |
|---|---|---|
| opts | ? |
crate(opts: ?) → void
| arg | type | description |
|---|---|---|
| opts | ? |
deadPlant(opts: ?) → void
A dead potted plant — one of the small things that says nobody has watered anything here in a long time.
| arg | type | description |
|---|---|---|
| opts | ? |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
Inside
1 problem across 1 itemagent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.