Modify Status Effect Duration (Power Type)

Modifies how long status effects last when they are applied.

Modifies the duration of status effects as they are applied to the holder. It works at the moment the effect arrives, so it does not change effects the entity already has.

Type ID: apoli:modify_status_effect_duration

Fields

FieldTypeDefaultDescription
modifierAttribute ModifieroptionalA single modifier applied to the duration, in ticks.
modifiersarray of Attribute ModifieroptionalSeveral modifiers.
status_effectIdentifieroptionalRestrict to one effect.
status_effectsarray of Identifier[]Restrict to several. Empty means every effect.

Examples

Potions last twice as long:

{
  "type": "apoli:modify_status_effect_duration",
  "modifier": {
    "operation": "multiply_base_multiplicative",
    "value": 1.0
  }
}

An origin that shrugs off the bad ones quickly — cap a list of harmful effects at five seconds:

{
  "type": "apoli:modify_status_effect_duration",
  "modifier": { "operation": "set_base", "value": 100 },
  "status_effects": [
    "minecraft:poison",
    "minecraft:wither",
    "minecraft:blindness",
    "minecraft:slowness"
  ]
}

Pair it with apoli:modify_status_effect_amplifier to weaken an effect as well as shorten it, or with apoli:effect_immunity to block it outright.