Parameter Exists
Checks if a specified context parameter exists on the context. Useful for checking if a provided optional context parameter exists.
Type ID: kaya:parameter_exists
Format
| Field | Type | Default | Description |
|---|---|---|---|
parameter |
Context Parameter | The context parameter to check. |
Example
{
"type": "kaya:parameter_exists",
"parameter": {
"type": "kaya:block",
"block": "crafting_block"
}
}
This example checks if the kaya:crafting_block context parameter exists on the context.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |