Action Over Time

Power Type.

Executes an entity action on the player in a regular interval.

Type ID: origins:action_over_time

Fields

Field Type Default Description
interval Integer Interval of ticks between subsequent executions of the action. Must be a value of at least 1.
entity_action Entity Action optional The action to execute on the player each interval.
rising_action Entity Action optional The action to execute on the first interval tick in which the condition became true.
falling_action Entity Action optional The action to execute on the first interval tick in which the condition became false.

Example

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

When a player with this power is burning, the power will set the player on fire for 4 seconds every second. Effectively, this power makes players burn forever once set on fire, unless they extinguish themselves by stepping in water.