Working core
Use the working core requirement in a KubeJS recipe
Use one of these methods to add a working core requirement to the recipe.
The
core
param must be an integer between 1 and the max amount of cores defined in the machine processoramount
property.The
recipe
param must be a recipe id.
Note : when creating recipes with KubeJS their ids might change when the script is modified. To be sure the recipe id will never change you can appends .id("some_recipe_id")
after the recipe.
Example
The following recipe will only run if the core with id 1 is processing the recipe with id "kubejs:test_recipe" :
Last updated