Changes
Page history
removed {}
authored
Oct 23, 2023
by
Lxlp
Hide whitespace changes
Inline
Side-by-side
Skills/mechanics/stopusingitem.md
View page @
e43723f9
...
...
@@ -2,15 +2,17 @@
Stops the targeted living entity from using an item, i.e. blocking with a shield.
> If you want to do some sort of cooldown, try using this mechanic in an aura
## Attributes
> *This mechanic has no attributes*
## Examples
```
yaml
Skills
:
# basic example
-
stopusingitem
{}
@NearestPlayer
-
stopusingitem @NearestPlayer
# with an aura to prevent the player from using a shield
-
aura{onTick=[ - stopusingitem
{}
?isBlocking ];duration=500} @NearestPlayer
-
aura{onTick=[ - stopusingitem ?isBlocking ];duration=500} @NearestPlayer
```
\ No newline at end of file