Create does not have built in mod support, you will need CreateTweakerfor this to work!

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().

方法

添加配方

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

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

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