potion_effect

Applies a potion effect to the player or victim for a configurable duration and level.

Categories: potion

Required arguments

Key(s)DescriptionType
effectThe potion effect type to apply.POTION_EFFECT
levelThe level of the potion effect (1 = level I). Supports expressions.EXPRESSION
durationHow long the effect lasts in ticks. Supports expressions.EXPRESSION

Optional arguments

Key(s)DescriptionTypeDefault
apply_to_playerIf true, applies the effect to the player instead of the victim.BOOLEANfalse
particlesWhether to show potion effect particles.BOOLEANtrue
iconWhether to show the effect icon in the HUD.BOOLEANtrue

Trigger parameters required

  • PLAYER

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

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue