Stacking Status Effect (Power Type)

Provides a system where the entity that has the power gains/loses a stack per specified interval if the power is active or inactive respectively. If the stack count is greater than 0, the specified status effect(s) will be applied to the entity.

Provides a system where the entity that has the power gains/loses a stack per specified interval if the power is active or inactive respectively. If the stack count is greater than 0, the specified status effect(s) will be applied to the entity.

Type ID: apoli:stacking_status_effect

!!! note

The actual duration of the specified status effect(s) is determined by the stacks * duration_per_stack formula.

Fields

FieldTypeDefaultDescription
min_stacksIntegerThe minimum number of stacks. Negative numbers are allowed.
max_stacksIntegerThe maximum number of stacks.
duration_per_stackIntegerDetermines the duration of the specified status effect(s) for each stack.
tick_rateInteger10Determines how fast the power will gain/lose stacks in ticks.
effectStatus Effect InstanceoptionalIf specified, this status effect will be applied on the entity that has the power.
effectsArray of Status Effect InstancesoptionalIf specified, these status effects will be applied on the entity that has the power.

Examples

{
  	"type": "apoli: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": "apoli:block_collision",
    	"offset_x": 0,
    	"offset_y": 1,
    	"offset_z": 0
  	}
}

This example will apply the Weakness I and Slowness I status effects that would last for 1 second to the entity that has the power if the entity is under a low ceiling.

{
    "type": "apoli:stacking_status_effect",
    "min_stacks": -3,
    "max_stacks": 1,
    "duration_per_stack": 100,
    "tick_rate": 20,
    "effect": {
        "effect": "minecraft:blindness",
        "is_ambient": true,
        "show_particles": true,
        "show_icon": true
    },
    "condition": {
        "type": "apoli:exposed_to_sun"
    }
}

This example will apply the Blindness I status effect that would last for 5 seconds after being exposed to the sun for at least 4 seconds.