This page relates to Create, which does not have built-in support, you will need to install CreateTweaker as well!
Create Crushing
Link to create-crushing
The Crushing mechanic 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 will add a recipe that will output a Diamond 10% of the time when a piece of Dirt is crushed with a duration of 100.
ZenScript Copy// <recipetype:create:crushing>.addRecipe(String name, MCWeightedItemStack[] output, IIngredient input, @Optional(100) int duration)
<recipetype:create:crushing>.addRecipe("hopes_and_dreams", [<item:minecraft:diamond> % 10], <item:minecraft:dirt>);
Remove Recipes
Link to remove-recipes
The following script will remove all Crushing recipes that output a Crushed Zinc Ore.
ZenScript Copy// <recipetype:create:crushing>.removeRecipe(IItemStack output)
<recipetype:create:crushing>.removeRecipe(<item:create:crushed_zinc_ore>);