Create Process Recipes
Create process recipes with KubeJS Server Scripts
Server Script
To register controllers in KubeJS, you can call MMEvents.createProcesses
.
NOTE: all functions will map to the fields of the Process Recipe Json
The create
function takes a string parameter which is the id of the process recipe (normally infered from the location of the json file in a datapack). The function returns a builder to set the rest of the fields for the process recipe.
the structureId
function takes a string parameter whichmaps directly to the process recipe's "structureId"
field.
The ticks
function takes an integer parameter which maps directly to the process recipe's "ticks"
field.
The input
function takes an object of an input recipe entry and adds it to the list of object of the process recipe's "inputs"
array field.
The output
function takes an object of an output recipe entry and adds it to the list of object of the process recipe's "outputs"
array field.
Last updated