CONTENT CONTRACT · VERSION 1
structure_built
A structure was built: placed at once, or a foundation raised by its last hammer step.
Signature
{ builder: ActorRef, definition: StructureId, kind: "structure_built", parent: (ActorRef)?, player: (PlayerRef)?, position: Position, structure: ActorRef }Fields
| Name | Type | Meaning |
|---|---|---|
builder | ActorRef | Actor that built the structure. Length: 1…256; Pattern: ^[\s\S]+$ |
definition | StructureId | Structure definition that was built. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: structure |
kind | "structure_built" | Discriminant |
parent | ActorRef | The building whose room it stands in (furniture in a house or tent); absent outdoors. Length: 1…256; Pattern: ^[\s\S]+$ |
player | PlayerRef | Player controlling the actor; absent for AI-controlled actors. Length: 1…256; Pattern: ^[\s\S]+$ |
position | Position | Where it stands (its anchor point; in a room: the room's coordinates). |
structure | ActorRef | The new structure. Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"builder": "a1",
"definition": "core:bench_structure",
"kind": "structure_built",
"player": "p1",
"position": {
"map": "m1",
"x_mm": 3000,
"y_mm": 0,
"z_mm": 4000
},
"structure": "s1"
}