CONTENT CONTRACT · VERSION 1
prefab
A native source asset with collision dimensions and seat offsets.
Signature
{ anchors: {PrefabAnchor}, asset: PrefabAssetId, climbable: boolean, collision: PrefabCollision, door: (Door)?, footprint: (Footprint)?, id: ContentId, interior: (Interior)?, kind: "prefab", never_dissolve: (boolean)?, placement: (PrefabPlacement)?, plinth_mm: (PositiveDistance)?, seats: {Seat}, sign: (PrefabSign)?, swatches: ({PrefabSwatch})? }Fields
| Name | Type | Meaning |
|---|---|---|
anchors | {PrefabAnchor} | Effect anchors: chimney smoke, lamp light and optional voxel fire. Items: 0…64 |
asset | PrefabAssetId | Declared prefab-source asset that supplies geometry. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: asset:prefab_source |
climbable | boolean | Its top carries a body: climbed by a jump, walked onto when low (false for room shells). |
collision | PrefabCollision | How bodies collide with it: a cylinder, its voxels, or not at all. |
door | Door | Its door: where one enters. |
footprint | Footprint | Authored footprint of a building: width across, depth along its facing, height; placement, ground sampling and wall joints use it. |
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
interior | Interior | The room inside: its size and the prefabs of its shell. |
kind | "prefab" | Discriminant |
never_dissolve | boolean | A story object that stays whole in cutscene and conversation shots: the renderer never dissolves it, even when it stands between the camera and a figure; absent: false. |
placement | PrefabPlacement | How players place it; absent: not placeable by players. |
plinth_mm | PositiveDistance | Depth of a plinth under the outline of the lowest layer: its cells reach this far down in the same look, so a building on uneven ground meets the lower ground instead of floating; absent: none. Range: 1…2147483647; Unit: mm |
seats | {Seat} | Seat positions and orientations relative to the prefab origin (seats and beds). Items: 0…4096; Unique entries |
sign | PrefabSign | Players name it (a signpost): Interact opens the name field, the name floats over its label point; absent: only buildings take names. |
swatches | {PrefabSwatch} | Colour variants of the prefab: every standing structure shows one, picked from its identity; absent: the asset's colours only. Items: 1…16 |
Validated example
{
"anchors": [],
"asset": "core:barrel_stack_model",
"climbable": true,
"collision": {
"kind": "voxels"
},
"id": "core:barrel_stack_prefab",
"kind": "prefab",
"placement": {
"category": "furniture",
"clearance_mm": 1050,
"surface": "land"
},
"seats": []
}