Action Over Time - apace100/origins-fabric GitHub Wiki

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

Type ID: origins:action_over_time

Fields:

entity_action, Entity Action, optional: The action to execute on the player each interval.

interval, int: Interval of ticks between subsequent executions of the action.

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.