... | @@ -8,9 +8,33 @@ Sets the casting Furniture's [State](/Furniture#furniture-states) as the specifi |
... | @@ -8,9 +8,33 @@ Sets the casting Furniture's [State](/Furniture#furniture-states) as the specifi |
|
|
|
|
|
## Examples
|
|
## Examples
|
|
```yaml
|
|
```yaml
|
|
|
|
#ITEM CONFIG
|
|
|
|
ExampleFurniture:
|
|
|
|
Id: STONE
|
|
|
|
Display: "Example Furniture"
|
|
|
|
Type: FURNITURE
|
|
|
|
Furniture:
|
|
|
|
Material: BRICK
|
|
|
|
DefaultState: CLOSED
|
|
|
|
States:
|
|
|
|
OPEN:
|
|
|
|
Model: 6
|
|
|
|
CLOSED:
|
|
|
|
Model: 7
|
|
FurnitureSkills:
|
|
FurnitureSkills:
|
|
- furniturestate{state=OPEN} @self ~onInteract ?furnitureState{s=CLOSED}
|
|
- skill{s=ExampleFurniture_SwitchState} @self ~onInteract
|
|
- furniturestate{state=CLOSED} @self ~onInteract ?furnitureState{s=OPEN}
|
|
```
|
|
|
|
```yaml
|
|
|
|
#SKILL CONFIG
|
|
|
|
ExampleFurniture_SwitchState:
|
|
|
|
Conditions:
|
|
|
|
- furnitureState{s=CLOSED} orElseCast ExampleFurniture_Close
|
|
|
|
Skills:
|
|
|
|
- furniturestate{state=OPEN}
|
|
|
|
|
|
|
|
ExampleFurniture_Close:
|
|
|
|
Skills:
|
|
|
|
- furniturestate{state=CLOSED}
|
|
```
|
|
```
|
|
|
|
|
|
## Aliases
|
|
## Aliases
|
... | | ... | |