add_stat_temporarily

Temporarily adds a flat amount to one of the player's stats for a fixed duration.

Categories: player

Required arguments

Key(s)DescriptionType
statThe stat to modify.STRING
amountThe amount to add to the stat. Use a negative value to remove.EXPRESSION
durationThe duration in ticks that the boost lasts for.EXPRESSION

Trigger parameters required

  • PLAYER

Example

effects:
  - id: add_stat_temporarily
    args:
      stat: <value>
      amount: 5 + %level%
      duration: 20 * %level%

Behaviour

SettingValue
Run orderSTART
Supports delaytrue
Reloads on plugin reloadtrue