FluidOnTopRecipe

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import mods.exnihilosequentia.FluidOnTopRecipe;

Methods

Create a recipe name for the new recipe

Return Type: FluidOnTopRecipe

script.zs
FluidOnTopRecipe.create(recipeId as string) as FluidOnTopRecipe
ParameterTypeDescription
Parameter
recipeId
Type
string
Description
name of recipe

Sets the fluid that should be in the barrel

Return Type: FluidOnTopRecipe

script.zs
FluidOnTopRecipe.setFluidInTank(fluidInTank as IFluidStack) as FluidOnTopRecipe
ParameterTypeDescription
Parameter
fluidInTank
Type
IFluidStack
Description
fluid in Tank

Sets the fluid that should be on top of the barrel

Return Type: FluidOnTopRecipe

script.zs
FluidOnTopRecipe.setFluidOnTop(fluidOnTop as IFluidStack) as FluidOnTopRecipe
ParameterTypeDescription
Parameter
fluidOnTop
Type
IFluidStack
Description
fluid in Tank

Sets the result block that should be generated

Return Type: FluidOnTopRecipe

script.zs
FluidOnTopRecipe.setResult(result as IItemStack) as FluidOnTopRecipe
ParameterTypeDescription
Parameter
result
Type
IItemStack
Description
block or item