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 Sand Paper Polishing

The Sand Paper Polishing 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 Polished with a duration of 100.

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

Remove Recipes

The following script will remove all Sand Paper Polishing recipes that output Polished Rose Quartz.

script.zs
// <recipetype:create:pressing>.removeRecipe(IItemStack output)
<recipetype:create:sandpaper_polishing>.removeRecipe(<item:create:polished_rose_quartz>);