This page relates to Tinkers' Construct, which has built-in support!
Tinkers' Construct Severing
Link to tinkers-construct-severing
Severing is a type of IRecipeManager and implements all the methods that are available to IRecipeManager's, such as removeRecipe()
and removeAll()
.
Methods
Link to methods
Add Recipe
Link to add-recipe
The following script adds a Severing recipe that drops a Diamond when a Sheep (Entity) is killed.
ZenScript Copy// <recipetype:tconstruct:severing>.addRecipe(name as string, ingredient as CTEntityIngredient, output as IItemStack)
<recipetype:tconstruct:severing>.addRecipe("beaheading_test", <entitytype:minecraft:sheep>, <item:minecraft:diamond>);
Remove Recipes
Link to remove-recipes
The following script does the following:
- Removes all Severing recipes that drop a Skeleton Skull.
- Removes all Severing recipes that drop from a Creeper (Entity).
ZenScript Copy// <recipetype:tconstruct:severing>.removeRecipe(output as IItemStack)
// <recipetype:tconstruct:severing>.removeRecipe(input as CTEntityIngredient)
<recipetype:tconstruct:severing>.removeRecipe(<item:minecraft:skeleton_skull>);
<recipetype:tconstruct:severing>.removeRecipe(<entitytype:minecraft:creeper>);