Modify Status Effect Duration (Power Type)
Changes the duration of status effects as they are applied to the entity with the power. It acts when the effect arrives, so it doesn't change effects the entity already has.
Type ID: apoli:modify_status_effect_duration
Fields
| Field | Type | Default | Description |
|---|---|---|---|
modifier | Attribute Modifier | optional | A single modifier applied to the duration, in ticks. |
modifiers | Array of Attribute Modifier | optional | Several modifiers. |
status_effect | Identifier | optional | Limits the power to one effect. |
status_effects | Array of Identifier | [] | Limits the power to several effects. An empty list means every effect. |
Examples
Every effect lasts twice as long:
{
"type": "apoli:modify_status_effect_duration",
"modifier": {
"operation": "multiply_base_multiplicative",
"value": 1.0
}
}Poison, Wither, Blindness and Slowness always last five seconds:
{
"type": "apoli:modify_status_effect_duration",
"modifier": { "operation": "set_base", "value": 100 },
"status_effects": [
"minecraft:poison",
"minecraft:wither",
"minecraft:blindness",
"minecraft:slowness"
]
}tip
Combine it with apoli:modify_status_effect_amplifier to weaken an effect as well as shorten it, or with apoli:effect_immunity to block it completely.