|
|
Checks for potion effects on the player. Can look for multiple effects.\
|
|
|
Effect names are sourced from [SpigotAPI documentation](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html).
|
|
|
|
|
|
### Attributes
|
|
|
---
|
|
|
|
|
|
| **Attribute** | Aliases | **Description** |
|
|
|
| ------------- | -------------- | -------------------------------- |
|
|
|
| `effect` | `effects`, `e` | The potion type(s) to check for. |
|
|
|
### Example
|
|
|
---
|
|
|
Colors the `lucky_charm` Asset green in its HUD if the user has the LUCK effect:
|
|
|
```yaml
|
|
|
lucky_charm:
|
|
|
conditions:
|
|
|
- effect{e=luck} true color green
|
|
|
layers:
|
|
|
icon:
|
|
|
texture:
|
|
|
path: assets/luck/clover.png
|
|
|
offset:
|
|
|
x: -5
|
|
|
y: 2
|
|
|
``` |
|
|
\ No newline at end of file |