And Action - apace100/origins-fabric GitHub Wiki

Usable as any action. Executes all provided actions in order.

Type ID: origins:and

Fields:

actions, array of Actions of the same type: All of these will be executed one after the other.

Example:

"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 action will exhaust the player (reduce their saturation/food level) and then immediately apply a 5 second Regeneration II effect.

⚠️ **GitHub.com Fallback** ⚠️