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) | Description | Type |
|---|---|---|
stat | The stat to modify. | STRING |
amount | The amount to add to the stat. Use a negative value to remove. | EXPRESSION |
duration | The 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
| Setting | Value |
|---|---|
| Run order | START |
| Supports delay | true |
| Reloads on plugin reload | true |