Delay

Meta Action Type

Executes the provided action after a set amount of ticks.

Type ID: origins:delay

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 action type reliably, you can use a power that would use the Cooldown (Power Type) and trigger that power with the Trigger Cooldown (Entity Action Type).

You can then use another power that would use the Action Over Time (Power Type) and check if the value of the power that would use the Cooldown (Power Type) is "==" to 0 using the Resource (Entity Condition Type).

Fields

Field Type Default Description
action 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 example will apply a Speed II status effect after 1 second.