Delay (Meta Action Type)

Executes the provided action after a set amount of ticks.

Executes the provided action after a set amount of ticks.

Type ID: apoli:delay

Fields

FieldTypeDefaultDescription
actionAction TypeThe action which will be executed after the delay.
ticksIntegerThe amount of ticks until the action is executed.

Examples

"entity_action": {
    "type": "apoli:delay",
    "ticks": 20,
    "action": {
        "type": "apoli:apply_effect",
        "effect": {
            "effect": "minecraft:speed",
            "amplifier": 1,
            "duration": 80
        }
    }
}

This example will apply a Speed II status effect after 1 second.