Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

ICraftingRecipe

An ICraftingRecipe is a crafting table recipe the way ZS sees it.

Importing the class

It might be required to import the class to avoid errors.
import crafttweaker.recipes.ICraftingRecipe

ZenMethods/Getters

Get Ingredients

Either returns an IIngredient[] or an IIngredient[][]

script.zs
rec.ingredients1D
rec.ingredients2D

Get standart output

Returns the ouptut as IItemStack. Careful, can be null!

script.zs
rec.output

Check for conditions

Each of these returns a boolean

script.zs
rec.hasTransformers;
rec.hasRecipeAction;
rec.hasRecipeFunction;
rec.hidden;
rec.shaped;

resourceDomain

Basically, the modid of the mod that added the recipe.

script.zs
rec.resourceDomain;
rec.fullResourceDomain;

Ingredients

Returns the ingredients list as IIngredient[] or IIngredient[][] respectively.

script.zs
rec.ingredients1D;
rec.ingredients2D;

Output

The IItemStack output of the recipe.

script.zs
rec.output;

To String

script.zs
rec.commandString;
rec.toCommandString();
rec.name;
rec.getName();