CONTENT CONTRACT · VERSION 1
sign_named
A player named a sign (a signpost or a building) within reach.
Signature
{ actor: ActorRef, definition: StructureId, kind: "sign_named", name: SignName, player: PlayerRef, position: Position, sign: ActorRef }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | The player's body. Length: 1…256; Pattern: ^[\s\S]+$ |
definition | StructureId | Structure definition of the sign. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: structure |
kind | "sign_named" | Discriminant |
name | SignName | Its new name. Length: 1…24; Pattern: ^[\p{L}\p{N}\p{P}](?:[\p{L}\p{N}\p{P} ]{0,22}[\p{L}\p{N}\p{P}])?$ |
player | PlayerRef | Player who named it. Length: 1…256; Pattern: ^[\s\S]+$ |
position | Position | Sign location at the committed naming action. |
sign | ActorRef | The sign: a signpost or a building (`actor/s<id>`). Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"actor": "a1",
"definition": "core:signpost_structure",
"kind": "sign_named",
"name": "Larder",
"player": "p1",
"position": {
"map": "map/W/0",
"x_mm": 1000,
"y_mm": 0,
"z_mm": 0
},
"sign": "actor/s12"
}