Home Migration Guide Getting Started With Scripts Commands Examples
Generic JSON Recipes
This page relates to Create, which does not have built-in support, you will need to install CreateTweaker as well

Create Emptying

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

Methods

Add Recipe

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.

script.zs
// <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

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

script.zs
// <recipetype:create:emptying>.removeRecipe(IItemStack output)
<recipetype:create:emptying>.removeRecipe(<item:minecraft:bucket>);

Remove Recipes for Fluids

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

script.zs
// <recipetype:create:emptying>.removeRecipe(IFluidStack output)
<recipetype:create:emptying>.removeRecipe(<fluid:create:honey>);