has_potion_effect

Passes when the entity has the specified potion effect active.

Categories: player

Required arguments

Key(s)DescriptionType
effect \| effectsThe potion effect(s) to check for.POTION_EFFECT_LIST

Optional arguments

Key(s)DescriptionTypeDefault
levelThe minimum amplifier level required (1-based).INT1

Example

conditions:
  - id: has_potion_effect
    args:
      effect: 
        - "speed"
        - "strength"
      level: 1 # ← Optional