Action Over Time (Power Type)

Executes an Entity Action Type on the entity that has the power within the specified interval.

Executes an Entity Action Type on the entity that has the power within the specified interval.

Type ID: apoli:action_over_time

Fields

FieldTypeDefaultDescription
intervalInteger20Interval of ticks between subsequent executions of the specified actions. Must be a value of at least 1.
entity_actionEntity Action TypeoptionalThe action to execute on the entity that has the power each interval.
rising_actionEntity Action TypeoptionalThe action to execute on the first interval tick in which the condition became true.
falling_actionEntity Action TypeoptionalThe action to execute on the first interval tick in which the condition became false.

Examples

{
  	"type": "apoli:action_over_time",
  	"entity_action": {
    	"type": "apoli:set_on_fire",
    	"duration": 4
  	},
  	"interval": 20,
  	"condition": {
    	"type": "apoli:on_fire"
  	}
}

This example will set the entity on fire if the entity that has the power is on fire, essentially making the entity burn indefinitely unless the entity manages to extinguish the fire.