Provide Context
Invokes an action with the provided context parameters.
Type ID: kaya:provide_context
Format
| Field | Type | Default | Description |
|---|---|---|---|
action |
Action | The action to invoke. | |
parameters |
Context Parameter Map | The context parameters to provide. |
Example
{
"type": "kaya:provide_context",
"action": {
"type": "kaya:reference",
"value": "example:entity/add_local_velocity"// (1)!
},
"parameters": {
"example:entity_to_launch": {
"type": "kaya:entity",
"entity": "this"
},
"example:velocity": {
"type": "kaya:vec3",
"value": [
0.0,
4.0,
0.0
]
}
}
}
-
The location of the file is
data/example/kaya/action/entity/add_local_velocity.jsonwith this as its contents:
This example will invoke the referenced example:entity/add_local_velocity action and provide the context parameters that it uses.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |