And

Meta Action Type

Executes all provided actions in order.

Type ID: origins:and

Fields

Field Type Default Description
actions Array of Action Types These actions will be executed one after the other (but in the same tick).

Examples

"entity_action": {
    "type": "origins:and",
    "actions": [
        {
            "type": "origins:exhaust",
            "amount": 0.5
        },
        {    
            "type": "origins:apply_effect",
            "effect": {
            "effect": "minecraft:regeneration",
            "amplifier": 1,
            "duration": 100
            }
        }
    ]
}

This example will apply exhaustion with a value of 0.5 to the player, and apply a Regeneration II status effect that would last for 5 seconds.