Effect Duration Multiplier
The arc:effect_duration_multiplier reward type multiplies the duration of an effect a player receives.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
multiplier | double | ✅Required | -No default value | The multiplier for the effect's duration. |
Example
The following example will double the duration of any beneficial effect the player receives.
data/my_datapack/arc/extend_buffs.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_effect_added",
"conditions": [
{
"type": "arc:effect_category",
"category": "BENEFICIAL"
}
],
"rewards": [
{
"type": "arc:effect_duration_multiplier",
"multiplier": 2.0
}
]
}
## Compatible Action Types
<CompatibleActionTypes />