Sequence
Execute multiple actions from top to bottom.
Type ID: kaya:sequence
| Field |
Type |
Default |
Description |
actions |
Array of Actions |
|
The actions to execute sequentially. |
Tip
This type can be inlined by specifying an array of actions.
Example
{
"type": "kaya:sequence",
"actions": [
{
"type": "kaya:set_entity_on_fire",
"ticks": 80,
"entity": "this"
},
{
"type": "kaya:add_velocity",
"method": "single",
"space": "world",
"entity": "this",
"velocity": [
0.0,
4.0,
0.0
]
}
]
}
[
{
"type": "kaya:set_entity_on_fire",
"ticks": 80,
"entity": "this"
},
{
"type": "kaya:add_velocity",
"method": "single",
"space": "world",
"entity": "this",
"velocity": [
0.0,
4.0,
0.0
]
}
]
This example will set the entity from the kaya:this_entity context parameter on fire for 4 seconds and launch them up into the sky.
History
| Minecraft |
Mod |
Changelog |
| 1.21.5 |
0.1.0 |
Added the type. |