build
Builds rooms, corridors and procedural props for derelict sci-fi interiors from a scene build.luau: `room`, `prop`, `box`, `pipe`, `part`, `useTheme`. See the package README for every field and prop kind.
bulkheadKit.build
Builds rooms, corridors and procedural props for derelict sci-fi interiors from a scene build.luau: room, prop, box, pipe, part, useTheme. See the package README for every field and prop kind.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2bulkheadKit.build: build derelict station / ship interiors out of code, rooms with real door openings, structural ribs, ceiling pipes and cable trays, catwalk grating, and furnish them from a catalogue of ~30 procedural props (lockers, bunks, consoles, specimen tanks, pumps, a diving bell, a submersible...). Call it from a scene's build.luau `content()`. Everything it makes is plain scene content: boxes, cylinders and tori with world-space (triplanar) PBR surfaces, colliders where you walk. local B = require("bulkheadKit.build") B.useTheme("derelict") local hall = B.room("hall", { x0 = -1.5, x1 = 1.5, z0 = 0, z1 = 20, h = 3.2, openings = { { side = "N", at = 0, w = 1.6, h = 2.3 } } }) B.prop("lockers", { 1.2, 0, 6 }, -90)
useTheme(name: string) → void
Pick the theme every later room uses: derelict, hull, clinical, concrete, quarters or industrial (see `themes()`).
| arg | type | description |
|---|---|---|
| name | string |
themes( ) → void
mat(nameOrRole: any) → any
| arg | type | description |
|---|---|---|
| nameOrRole | any |
quatYaw(deg: number) → void
| arg | type | description |
|---|---|---|
| deg | number |
quatAxis(x: number, y: number, z: number, deg: number) → void
| arg | type | description |
|---|---|---|
| x | number | |
| y | number | |
| z | number | |
| deg | number |
quatMul(a: { number }, b: { number }) → void
| arg | type | description |
|---|---|---|
| a | { number } | |
| b | { number } |
group(name: string, parent: any?, pos: Vec3?, yaw: number?) → any
An empty grouping entity at a position and yaw (degrees).
| arg | type | description |
|---|---|---|
| name | string | |
| parent | any? | |
| pos | Vec3? | |
| yaw | number? |
collect(fn: (any) → void
Build with your own batching: every visible part that rooms, props and `B.part` make inside `body` is handed to `fn(part)` instead of being spawned as its own Model entity, so the caller can merge them (one quickGeometry Group or a few merged meshes per material). `part` is `{ parent, name, mesh, center, size, rot?, material, shadows, tint? }`: `center`, `size` and `rot` are local to `parent` (the room or prop group entity, still spawned, placed as usual). Parts with a collider still spawn an entity carrying only the BoxCollider, so walking and physics are unchanged; invisible helper parts (prop colliders, the vent rim) never reach `fn`. Returns what `body` returns. Nested calls restore the outer sink.
| arg | type | description |
|---|---|---|
| fn | (any |
part(parent: any?, name: string, mesh: string, center: Vec3, size: Vec3, material: any, opts: PartOpts?) → any
One primitive part: `mesh` (cube, cylinder, torus, sphere, capsule, rounded_box), centre, size, material (role or name), opts { collider, rot (quat), shadows, tint }. `tint` {r,g,b,blend} is the engine's Model tint, which is blended over the LIT colour, so it shows in total darkness: use it only for something meant to glow. A lit colour is a material (see `mats`).
| arg | type | description |
|---|---|---|
| parent | any? | |
| name | string | |
| mesh | string | |
| center | Vec3 | |
| size | Vec3 | |
| material | any | |
| opts | PartOpts? |
part(parent: any?, name: string, mesh: string, center: Vec3, size: Vec3, material: any, opts: PartOpts?) → any
Looked up on every call, so a caller that wraps `B.part` reaches the parts rooms and props make.
| arg | type | description |
|---|---|---|
| parent | any? | |
| name | string | |
| mesh | string | |
| center | Vec3 | |
| size | Vec3 | |
| material | any | |
| opts | PartOpts? |
box(parent: any?, name: string, center: Vec3, size: Vec3, material: string, collider: boolean?, rot: { number }?) → any
A box (solid, with a collider by default).
| arg | type | description |
|---|---|---|
| parent | any? | |
| name | string | |
| center | Vec3 | |
| size | Vec3 | |
| material | string | |
| collider | boolean? | |
| rot | { number }? |
pipe(parent: any?, name: string, a: Vec3, b: Vec3, r: number, material: string?) → any
A pipe between two points on one axis (x, y or z) with radius r.
| arg | type | description |
|---|---|---|
| parent | any? | |
| name | string | |
| a | Vec3 | |
| b | Vec3 | |
| r | number | |
| material | string? |
wallRun(root: any, side: string, spec: RoomSpec, y: number, h: number, t: number, lowerH: number) → void
| arg | type | description |
|---|---|---|
| root | any | |
| side | string | |
| spec | RoomSpec | |
| y | number | |
| h | number | |
| t | number | |
| lowerH | number |
seg(sa: number, sb: number, yb: number, yt: number, tag: string) → void
| arg | type | description |
|---|---|---|
| sa | number | |
| sb | number | |
| yb | number | |
| yt | number | |
| tag | string |
place(name: string, ylo: number, yhi: number, m: string) → void
| arg | type | description |
|---|---|---|
| name | string | |
| ylo | number | |
| yhi | number | |
| m | string |
inCut(cuts: { any }, a: number, pad: number) → boolean
| arg | type | description |
|---|---|---|
| cuts | { any } | |
| a | number | |
| pad | number |
room(name: string, spec: RoomSpec, parent: any?) → any
Build a room (or corridor) from its inner floor rectangle x0..x1 / z0..z1, floor height `y` and height `h`. `openings` cut doorways ({ side = "N"|"S"|"E"|"W", at = centre along that wall, w, h, sill }); `ribs` = spacing of structural frames (0 = none); `pipes`/`trays` add ceiling services; `floor`/`walls`/`lower`/`ceiling` override the theme per room; `skipWalls = { E = true }` leaves a side open. Returns { root, cuts = { N = {...}, ... }, center }.
| arg | type | description |
|---|---|---|
| name | string | |
| spec | RoomSpec | |
| parent | any? |
trimLine(side: string, yy: number, hh: number, dd: number) → void
skirting and dado rail trims along walls
| arg | type | description |
|---|---|---|
| side | string | |
| yy | number | |
| hh | number | |
| dd | number |
locker(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
bunk(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
desk(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
chair(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
crate(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
cases(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
shelf(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
labBench(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
console(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
tank(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
pump(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
gurney(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
gasTanks(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
vent(g: ?, o: ?) → void
Wall vent: a square duct mouth with a grate (the grate is its own entity, `<name>/grate`, so a scare can blow it off).
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
fluoro(g: ?, o: ?) → void
Ceiling fluorescent fixture (caged double tube). The tube entity is named `tube`; put the Light on the group.
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
wallLamp(g: ?, o: ?) → void
Caged bulkhead wall lamp; `glow` = glowRed (default), glowAmber, glowTube, glowCold.
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
hangingBulb(g: ?, o: ?) → void
Hanging bare bulb on a cord, hung from the group origin (ceiling). Bulb entity `bulb` sits `cord` metres below.
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
valveWheel(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
hatchRing(g: ?, o: ?) → void
Round pressure-hatch ring for a doorway (decor around an opening), facing -Z.
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
divingBell(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
submersible(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
bodyBag(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
cable(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
papers(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
barrel(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
table(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
puddle(g: ?, o: ?) → void
| arg | type | description |
|---|---|---|
| g | ? | |
| o | ? |
prop(kind: string, pos: Vec3, yaw: number?, parent: any?, opts: any?) → any
Place a prop by kind at pos (floor point) with yaw (degrees), under parent, with options. Kinds: see `B.propKinds()`.
| arg | type | description |
|---|---|---|
| kind | string | |
| pos | Vec3 | |
| yaw | number? | |
| parent | any? | |
| opts | any? |
propKinds( ) → void
PartOpts = { collider: boolean?, rot: { number }?, shadows: boolean?, tint: { number }?, hidden: boolean? }Opening = { side: string, at: number, w: number?, h: number?, sill: number? }RoomSpec = {Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_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.