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

The Emptying 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 and Lava (fluid) when a piece of Dirt is Emptied with a duration of 100.

ZenScript
Copy
// <recipetype:create:emptying>.addRecipe(String name, IItemStack outputItem, IFluidStack outputFluid, IIngredient inputContainer, @Optional(100) int duration)

<recipetype:create:emptying>.addRecipe("emptying_test", <item:minecraft:diamond>, <fluid:minecraft:lava>, <item:minecraft:dirt>);

Remove Recipes for Items

Link to remove-recipes-for-items

The following script will remove all Emptying recipes that output a Bucket.

ZenScript
Copy
// <recipetype:create:emptying>.removeRecipe(IItemStack output)

<recipetype:create:emptying>.removeRecipe(<item:minecraft:bucket>);

Remove Recipes for Fluids

Link to remove-recipes-for-fluids

The following script will remove all Compacting recipes that output Honey (Fluid)

ZenScript
Copy
// <recipetype:create:emptying>.removeRecipe(IFluidStack output)

<recipetype:create:emptying>.removeRecipe(<fluid:create:honey>);