-
Notifications
You must be signed in to change notification settings - Fork 176
Action Over Time
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.
Tutorials (Data packs)
Video Tutorial by CandyCaneCazoo
Tutorials (Add-ons)
Working with more unique powers
Lists
List of vanilla damage source names
Data Types