Home Commands Examples Getting Started With Scripts Global Keywords
Generic Recipe Manipulation

RecipeMachineStage

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import mods.recipemachinestage.RecipeMachineStage;

Static Methods

The method that blocks the recipe

script.zs
// RecipeMachineStage.addRecipe(recipeType as string, recipeID as string, stage as string)
RecipeMachineStage.addRecipe("minecraft:smelting", "minecraft:stone", "one");
RecipeMachineStage.addRecipe("botania:mana_infusion", "botania:mana_infusion/mana_diamond", "two");
RecipeMachineStage.addRecipe("mekanism:metallurgic_infusing", "mekanism:processing/iron/enriched", "three");
ParameterTypeDescription
Parameter
recipeType
Type
string
Description
Recipe Type (In CraftTweaker <recipeType:minecraft:smelting> you need write without prefix . “minecraft
”)
Parameter
recipeID
Type
string
Description
Recipe ID (“minecraft
”, “mekanism
/iron/enriched” etc.);
Parameter
stage
Type
string
Description
Stage who block the recipe (“one” etc.)

A method that blocks multiple recipes

script.zs
// RecipeMachineStage.addRecipe(recipeType as string, recipeID as string[], stage as string)
RecipeMachineStage.addRecipe("minecraft:smelting", ["minecraft:stone", "minecraft:iron_ingot"], "one");
ParameterTypeDescription
Parameter
recipeType
Type
string
Description
Recipe Type (In CraftTweaker <recipeType:minecraft:smelting> you need write without prefix . “minecraft
”)
Parameter
recipeID
Type
string[]
Description
Recipe IDs (“minecraft
”, “mekanism
/iron/enriched” etc.);
Parameter
stage
Type
string
Description
Stage who block the recipe (“one” etc.)

Supported Mods List