Description
Sets the casting Furniture's State as the specified one
Attributes
Attribute | Aliases | Description | Default |
---|---|---|---|
state | s | The name of the new state the Furniture should have | DEFAULT |
Examples
#ITEM CONFIG
ExampleFurniture:
Id: STONE
Display: "Example Furniture"
Type: FURNITURE
Furniture:
Material: BRICK
DefaultState: CLOSED
States:
OPEN:
Model: 6
CLOSED:
Model: 7
FurnitureSkills:
- skill{s=ExampleFurniture_SwitchState} @self ~onInteract
#SKILL CONFIG
ExampleFurniture_SwitchState:
Conditions:
- furnitureState{s=CLOSED} orElseCast ExampleFurniture_Close
Skills:
- furniturestate{state=OPEN}
ExampleFurniture_Close:
Skills:
- furniturestate{state=CLOSED}
Aliases
- setfurniturestate