Configuration
Action Configuration
Structure and Configuration
Supports unlimited nested directories
example.yml
hello.yml
world.yml
Nodes
Ensure that each action ID is a unique identifier.
The action configuration script requires the application of Kether.
Node | Type | Default Value | Description | Remarks |
---|---|---|---|---|
taskTime | int | 0 | Task duration | Specifies the time for the task to execute, in ticks; 20 ticks equals 1 second. |
shouldExecute | Kether Boolean | Condition required to execute this behavior task | The result being true will start execution. | |
startTask | Kether | What to do when starting execution | ||
continueExecute | Kether Boolean | Condition required to continue execution | If the result is true , it will execute updateTask , otherwise it will execute resetTask . | |
updateTask | Kether | What to execute | After execution, it will check continueExecute . | |
resetTask | Kether | What to execute | Ends the current task after execution. |
Example
Tip
You may have noticed that the Kether statements in the action configuration include taskTime
, which is a statement unique to action configuration.
It retrieves the current value of taskTime
. The default value of taskTime
in Kether is associated with the taskTime
in the node, and with each execution of updateTask
, the value of taskTime
will decrease.
This means that in each tick, when updateTask
is executed, taskTime
will decrease by one.