potion_effect
Applies a potion effect to the player or victim for a configurable duration and level.
Categories: potion
Required arguments
| Key(s) | Description | Type |
|---|
effect | The potion effect type to apply. | POTION_EFFECT |
level | The level of the potion effect (1 = level I). Supports expressions. | EXPRESSION |
duration | How long the effect lasts in ticks. Supports expressions. | EXPRESSION |
Optional arguments
| Key(s) | Description | Type | Default |
|---|
apply_to_player | If true, applies the effect to the player instead of the victim. | BOOLEAN | false |
particles | Whether to show potion effect particles. | BOOLEAN | true |
icon | Whether to show the effect icon in the HUD. | BOOLEAN | true |
Trigger parameters required
Example
effects:
- id: potion_effect
args:
effect: <value>
level: 1 + %level% / 10
duration: 20 * %level%
apply_to_player: true # ← Optional
particles: true # ← Optional
icon: true # ← Optional
Behaviour
| Setting | Value |
|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |