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
Link to methods
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.
// <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>);
Link to remove-recipes
The following script will remove all Crushing recipes that output a Crushed Zinc Ore.
// <recipetype:create:crushing>.removeRecipe(IItemStack output) <recipetype:create:crushing>.removeRecipe(<item:create:crushed_zinc_ore>);