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 Cutting

The Cutting 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 when a piece of Glass is cut with a duration of 100.

script.zs
// <recipetype:create:cutting>.addRecipe(String name, IItemStack output, IIngredient input, @Optional(100) int duration)
<recipetype:create:cutting>.addRecipe("cutting_test", <item:minecraft:diamond>, <item:minecraft:glass>);

Remove Recipes

The following script will remove all Cutting recipes that output a Stripped Jungle Wood.

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

Get a Processing Recipe Factory

You can get a ProcessingRecipeFactory of this recipe type like so:

script.zs
// <recipetype:create:cutting>.factory() as ProcessingRecipeFactory
<recipetype:create:cutting>.factory()