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.
import mods.recipemachinestage.RecipeMachineStage;
Static Methods
The method that blocks the recipe
// 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");
Parameter | Type | Description |
---|---|---|
Parameter recipeType | Type string | Description Recipe Type (In CraftTweaker <recipeType:minecraft:smelting> you need write without prefix |
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
// RecipeMachineStage.addRecipe(recipeType as string, recipeID as string[], stage as string)
RecipeMachineStage.addRecipe("minecraft:smelting", ["minecraft:stone", "minecraft:iron_ingot"], "one");
Parameter | Type | Description |
---|---|---|
Parameter recipeType | Type string | Description Recipe Type (In CraftTweaker <recipeType:minecraft:smelting> you need write without prefix |
Parameter recipeID | Type string[] | Description Recipe IDs (“minecraft”, “mekanism/iron/enriched” etc.); |
Parameter stage | Type string | Description Stage who block the recipe (“one” etc.) |