And
Executes all provided actions in order.
Type ID: origins:and
Fields
| Field | Type | Default | Description |
|---|---|---|---|
actions |
Array of Actions | These actions will be executed one after the other (but in the same tick). |
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.