This page relates to Create, which does not have built-in support, you will need to install CreateTweaker as well!

The Crushing mechanic is a type of IRecipeManager and implements all the methods that are available to IRecipeManager's, such as removeRecipe() and removeAll().

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>);

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>);