Importing the class

Link to 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.

ZenScript
Copy
import mods.exnihilosequentia.SieveRecipe;

Name: addDrop

Sets the item that should drop when sifting

Return Type: SieveRecipe

ZenScript
Copy
SieveRecipe.addDrop(drop as IItemStack) as SieveRecipe
ParameterTypeDescription
Parameter
drop
Type
IItemStack
Description
dropped item

Name: addRoll

Sets the mesh type and the chance, how often the item should drop.

Return Type: SieveRecipe

ZenScript
Copy
SieveRecipe.addRoll(mesh as string, chance as float) as SieveRecipe
ParameterTypeDescription
Parameter
mesh
Type
string
Description
mesh type (only valid meshes are allowed)
Parameter
chance
Type
float
Description
the chance betweet 0 and 1 (greater than 1 is not allowed)

Name: create

Create a recipe name for the new recipe

Return Type: SieveRecipe

ZenScript
Copy
SieveRecipe.create(recipeId as string) as SieveRecipe
ParameterTypeDescription
Parameter
recipeId
Type
string
Description
name of recipe

Name: setInput

Sets the input that should be sifted

Return Type: SieveRecipe

ZenScript
Copy
SieveRecipe.setInput(input as IIngredient) as SieveRecipe
ParameterTypeDescription
Parameter
input
Type
IIngredient
Description
sifted block

Name: setWaterlogged

(Optional) The drop will only happen when the sieve is waterlogged.

Returns: needs a waterlogged sieve now
Return Type: SieveRecipe

ZenScript
Copy
// SieveRecipe.setWaterlogged() as SieveRecipe

mySieveRecipe.setWaterlogged();