SieveRecipe
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.
Methods
Sets the item that should drop when sifting
Return Type: SieveRecipe
Parameter | Type | Description |
---|---|---|
Parameter drop | Type IItemStack | Description dropped item |
Sets the mesh type and the chance, how often the item should drop.
Return Type: SieveRecipe
Parameter | Type | Description |
---|---|---|
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) |
Create a recipe name for the new recipe
Return Type: SieveRecipe
Parameter | Type | Description |
---|---|---|
Parameter recipeId | Type string | Description name of recipe |
Sets the input that should be sifted
Return Type: SieveRecipe
Parameter | Type | Description |
---|---|---|
Parameter input | Type IIngredient | Description sifted block |
(Optional) The drop will only happen when the sieve is waterlogged.
Returns: needs a waterlogged sieve now
Return Type: SieveRecipe