Devices.sceneModule
One paragraph describing what this module builds and where it belongs in a scene.
Devices
One paragraph describing what this module builds and where it belongs in a scene.
Inputs
count: number(default 3) — what it controls, units, sensible range.spacing: number(default 1.5) — what it controls, units, sensible range.
Placement
local placed = entity.spawn("Devices_0")
placed.component.add("SceneModule", {
source = asset.resolve("Devices", "sceneModule"),
params = { count = 5 },
})
placed.localPosition = { 0, 0, 0 }
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2Devices — the Lumenkeeper optical machinery of EVERY chamber, as authored scene content. OWNED BY THE OPTICS SLICE. One placement (scene entity "Machinery") builds every device of every chamber in game.levels, plus each chamber's Descent Seal. * device <id> of chamber k is the entity "dev_<k>_<id>" at core.toWorld(k, x, z); the root's yaw IS the device's rotation (local +X points along `rot`), OpticsSystem eases it to the rotation core holds. * the Descent Seal of chamber k is "seal_<k>" at core.sealPoint(k). Geometry is lathed / swept procedurally (game.optics.devices) and dressed in PBR brass / obsidian / glass with the generated rune, brass, obsidian, seal and leaded-glass textures in game/optics/gen. Named parts (heart, runesA, pane, crystal, wheel, petal_i, ...) are what OpticsSystem drives at runtime. After game/levels.module changes: entity.find("Machinery").component.get("SceneModule"):rebuild()
qX(d: ?) → void
| arg | type | description |
|---|---|---|
| d | ? |
qY(d: ?) → void
| arg | type | description |
|---|---|---|
| d | ? |
qZ(d: ?) → void
| arg | type | description |
|---|---|---|
| d | ? |
mesh(name: string, fn: ?) → void
Meshes (baked once per edit of this file)
| arg | type | description |
|---|---|---|
| name | string | |
| fn | ? |
P(parent: ?, name: string, model: ?, mat: ?, pos: ?, rot: ?, scl: ?, noShadow: boolean?) → void
Build helpers
| arg | type | description |
|---|---|---|
| parent | ? | |
| name | string | |
| model | ? | |
| mat | ? | |
| pos | ? | |
| rot | ? | |
| scl | ? | |
| noShadow | boolean? |
grp(parent: ?, name: string, pos: ?, rot: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| name | string | |
| pos | ? | |
| rot | ? |
light(parent: ?, name: string, pos: ?, c: ?, intensity: number, radius: number, active: boolean) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| name | string | |
| pos | ? | |
| c | ? | |
| intensity | number | |
| radius | number | |
| active | boolean |
collider(parent: ?, half: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| parent | ? | |
| half | ? | |
| y | ? |
mirror(root: ?, d: ?) → void
| arg | type | description |
|---|---|---|
| root | ? | |
| d | ? |
splitter(root: ?, d: ?) → void
| arg | type | description |
|---|---|---|
| root | ? | |
| d | ? |
prism(root: ?, d: ?) → void
| arg | type | description |
|---|---|---|
| root | ? | |
| d | ? |
faceGroup(root: ?, d: ?, k: ?) → void
| arg | type | description |
|---|---|---|
| root | ? | |
| d | ? | |
| k | ? |
filter(root: ?, d: ?, k: ?) → void
| arg | type | description |
|---|---|---|
| root | ? | |
| d | ? | |
| k | ? |
combiner(root: ?, d: ?) → void
| arg | type | description |
|---|---|---|
| root | ? | |
| d | ? |
heartReceptor(root: ?, m: ?) → void
The Heart of the Mountain: a brass ring dais with a great crystal floating above it (heart_chamber.png). Keeps the part names OpticsSystem lights.
| arg | type | description |
|---|---|---|
| root | ? | |
| m | ? |
receptor(root: ?, d: ?) → void
| arg | type | description |
|---|---|---|
| root | ? | |
| d | ? |
blocker(root: ?, d: ?) → void
| arg | type | description |
|---|---|---|
| root | ? | |
| d | ? |
emitter(root: ?, d: ?) → void
| arg | type | description |
|---|---|---|
| root | ? | |
| d | ? |
socket(root: ?, d: ?) → void
| arg | type | description |
|---|---|---|
| root | ? | |
| d | ? |
buildSeal(k: number) → void
The Descent Seal of chamber k
| arg | type | description |
|---|---|---|
| k | number |
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 the 199 items nearest this part. It holds more than this page lists.
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.