HammerRecipe
Link to hammerrecipe
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.HammerRecipe;
Methods
Link to methods
Name: addOutput
Sets the output with 100% drop chance
Return Type: HammerRecipe
ZenScript CopyHammerRecipe.addOutput(output as IItemStack) as HammerRecipe
Parameter | Type | Description |
---|---|---|
Parameter output | Type IItemStack | Description dropped item |
Name: addOutput
Sets the output with custom drop chance
Return Type: HammerRecipe
ZenScript CopyHammerRecipe.addOutput(output as IItemStack, chance as float) as HammerRecipe
Parameter | Type | Description |
---|---|---|
Parameter output | Type IItemStack | Description dropped item |
Parameter chance | Type float | Description drop chance |
Name: create
Create a recipe name for the new recipe
Return Type: HammerRecipe
ZenScript CopyHammerRecipe.create(recipeId as string) as HammerRecipe
Parameter | Type | Description |
---|---|---|
Parameter recipeId | Type string | Description name of recipe |
Name: setInput
Sets the block that should be hammered
Return Type: HammerRecipe
ZenScript CopyHammerRecipe.setInput(input as IIngredient) as HammerRecipe
Parameter | Type | Description |
---|---|---|
Parameter input | Type IIngredient | Description hammered block |