CompostRecipe

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.CompostRecipe;

Methods

Create a recipe name for the new recipe

Return Type: CompostRecipe

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

Sets the amount of compost per input.

Return Type: CompostRecipe

script.zs
CompostRecipe.setAmount(amount as int) as CompostRecipe
ParameterTypeDescription
Parameter
amount
Type
int
Description
Sets the amount.

Sets the input. Can be a tag or an item

Return Type: CompostRecipe

script.zs
CompostRecipe.setInput(input as IIngredient) as CompostRecipe
ParameterTypeDescription
Parameter
input
Type
IIngredient
Description
Sets the input tag or item.