CrookRecipe
Link to crookrecipe
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 Copyimport mods.exnihilosequentia.CrookRecipe;
Methods
Link to methods
Name: addDrop
Sets the drop with chance
Return Type: CrookRecipe
ZenScript CopyCrookRecipe.addDrop(drop as IItemStack, chance as float) as CrookRecipe
Parameter | Type | Description |
---|---|---|
Parameter drop | Type IItemStack | Description Set the drop. Can only be an item. |
Parameter chance | Type float | Description How often should the item drop. |
Name: create
Create a recipe name for the new recipe
Return Type: CrookRecipe
ZenScript CopyCrookRecipe.create(recipeId as string) as CrookRecipe
Parameter | Type | Description |
---|---|---|
Parameter recipeId | Type string | Description name of recipe |
Name: setInput
Sets the block that should be crooked.
Return Type: CrookRecipe
ZenScript CopyCrookRecipe.setInput(input as IIngredient) as CrookRecipe
Parameter | Type | Description |
---|---|---|
Parameter input | Type IIngredient | Description Sets the block |