Function
Use the function requirement in a KubeJS recipe
In the recipe
//Executed when the machine is idle and search a recipe to process.
.requireFunctionToStart("id")
//Executed the first tick of the crafting process.
.requireFunctionOnStart("id")
//Executed each tick of the crafting process.
.requireFunctionEachTick("id")
//Executed the last tick of the crafting process.
.requireFunctionOnEnd("id")In a server script (outside the recipe event)
Example :
Migrating from previous function requirement
Last updated