This page relates to Create, which does not have built-in support, you will need to install CreateTweaker as well
Create Pressing
The Pressing 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 an Apple 45% of the time when a piece of Dirt is Pressed with a duration of 100.
// <recipetype:create:pressing>.addRecipe(String name, MCWeightedItemStack[] output, IIngredientWithAmount input, @Optional(100) int duration)
<recipetype:create:pressing>.addRecipe("pressing_test", [<item:minecraft:diamond>, <item:minecraft:apple> % 45], <item:minecraft:dirt>);
Remove Recipes
The following script will remove all Pressing recipes that output Paper.
// <recipetype:create:pressing>.removeRecipe(IItemStack output)
<recipetype:create:pressing>.removeRecipe(<item:minecraft:paper>);
Get a Processing Recipe Factory
You can get a ProcessingRecipeFactory of this recipe type like so:
// <recipetype:create:pressing>.factory() as ProcessingRecipeFactory
<recipetype:create:pressing>.factory()