has_potion_effect
Passes when the entity has the specified potion effect active.
Categories: player
Required arguments
| Key(s) | Description | Type |
|---|---|---|
effect \| effects | The potion effect(s) to check for. | POTION_EFFECT_LIST |
Optional arguments
| Key(s) | Description | Type | Default |
|---|---|---|---|
level | The minimum amplifier level required (1-based). | INT | 1 |
Example
conditions:
- id: has_potion_effect
args:
effect:
- "speed"
- "strength"
level: 1 # ← Optional