Delay Action - apace100/origins-fabric GitHub Wiki

Usable as any action. Currently only available as an entity action. Executes an action after a specified amount of ticks have passed.

Type ID: origins:delay

Fields:

action, Actions: The action to execute with a delay.

ticks, int: The delay in ticks before the action is executed.

Example:

"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.

Notes:

Depending on the action type, a different condition type is expected: