/condition
Validates and invokes the specified condition.
Info
This command provides the following context parameters by default:
| Parameter | Description |
|---|---|
kaya:command/entity |
The entity that executed the command, or none if the server executed the command (can be changed with /execute as) |
kaya:command/position |
The position of the entity that executed the command, or the current world's spawn position (can be changed with /execute at or /execute positioned) |
Syntax
condition dump <id> [<indent>]
condition test <condition> with <parameters>
execute if kaya:condition <condition> with <parameters> ...
Arguments
<id>: identifier- The ID of the condition to encode and display as JSON in chat.
<condition>: identifier, or an inlined_condition- The condition to invoke.
<parameters>: context_parameter_map- The context to provide to the specified action.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the command. |