Stacking Status Effect

Power Type.

While this power is active, it will gain a stack twice a second. When reaching more than 0 stacks, the player will receive the provided status effects. While this power is inactive, it will lose two stacks per second.

Type ID: origins:stacking_status_effect

Fields

Field Type Default Description
min_stacks Integer The minimum number of stacks. Negative numbers are allowed.
max_stacks Integer The maximum number of stacks.
duration_per_stack Integer When the status effects are applied, their duration will be stacks * duration_per_stack in ticks.
effect Status Effect Instance optional If set, this status effect will be applied by this power.
effects Array of Status Effect Instances optional If set, these status effects will be applied by this power.

Example

{
    "type": "origins:stacking_status_effect",
    "min_stacks": -20,
    "max_stacks": 361,
    "duration_per_stack": 10,
    "effects": [
        {
            "effect": "minecraft:weakness",
            "is_ambient": true,
            "show_particles": false,
            "show_icon": true
        },
        {
            "effect": "minecraft:slowness",
            "is_ambient": true,
            "show_particles": false,
            "show_icon": true
        }
    ],
    "condition": {
        "type": "origins:block_collision",
        "offset_x": 0,
        "offset_y": 1,
        "offset_z": 0
    }
}

This power makes the player weak and slow after being under a low ceiling for a while. (Yes, it's the Elytrian's claustrophobia power.)