Delay
Executes the provided action after a set amount of ticks.
Type ID: origins:delay
Note
Only available as an Entity Action Type
Caution
Delaying an action for more than a few ticks is not recommended! This meta action type is not reliable for such task.
If you want to delay an entity action reliably, you can use a power that uses the Resource (Power Type) power type and increase the value of that resource per set interval using a power that uses the Action Over Time (Power Type) power type.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
action |
Entity Action Type | The action which will be executed after the delay. | |
ticks |
Integer | The amount of ticks until the action is executed. |
Examples
"entity_action": {
"type": "origins:delay",
"ticks": 20,
"action": {
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:speed",
"amplifier": 1,
"duration": 80
}
}
}
This action will apply a speed effect after 1 second.