Fluid
Use the fluid requirement in a KubeJS recipe
Use one of these methods to add a Fluid Requirement to the recipe.
//Once-per-recipe methods
.requireFluid(ingredient, amount)
.requireFluid(ingredient, amount, tank)
.produceFluid(fluid)
.produceFluid(fluid, tank)
//Per-tick methods
.requireFluidPerTick(ingredient)
.requireFluidPerTick(ingredient, tank)
.produceFluidPerTick(fluid)
.produceFluidPerTick(fluid, tank)The
ingredientparam must be a SizedFluidIngredient created using one of the following syntax:String syntax :
"water"or"mekanism:steam"or"1000x water"Tag string syntax :
#wateror"100x #water"Fluid.of()KubeJS method :Fluid.of("mekanism:steam", 42)
The
tankparam must be a string corresponding to a tank id defined in a custom machine json Fluid Componenttankproperty.
Example
ServerEvents.recipes(event => {
event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
.requireFluid("1000x water")
})Last updated