Changes
Page history
Create skills/mechanics/saddle
authored
May 03, 2023
by
Lxlp
Show whitespace changes
Inline
Side-by-side
skills/mechanics/saddle.md
0 → 100644
View page @
80411504
## Mechanic: Saddle
Allows to either equip or remove a saddle on the target entity.
## Attributes
| Attribute | Aliases | Description | Default Value |
|----------------|-----------------|----------------------------------------------------|---------------|
| take | t | If the saddle should be taken away. | false |
## Examples
```
yaml
ExampleSkill
:
Skills
:
-
saddle{r=true} @self
```
##
The following example is a bit more nuanced: it shows how a horse that can equip itself with a temporary saddle can be made
```
yaml
ExampleMob
:
Type
:
HORSE
Options
:
Tamed
:
true
Skills
:
-
aura{d=1200;auraName=TemporarySaddle;cd=600;sync=true;i=1;
onStart=[
- saddle @self
];
onTick=[
- e:p{p=crit;hs=0.3;vs=0.2;y=1;a=2} @self
- closeinventory @Passenger
];
onEnd=[
- saddle{r=true} @self
]
} @self ~onInteract
```
\ No newline at end of file