CONTENT CONTRACT · VERSION 1
set_light
Switch the light of the actor's equipped item explicitly on or off.
Signature
{ enabled: boolean, kind: "set_light", light: LightId, target: ActorRef }Fields
| Name | Type | Meaning |
|---|---|---|
enabled | boolean | Whether the light is on after the commit. |
kind | "set_light" | Discriminant |
light | LightId | Light of the currently equipped item. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: light |
target | ActorRef | Actor instance selected by the item-use target contract. Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"enabled": true,
"kind": "set_light",
"light": "core:torch_light",
"target": "a1"
}