Home Commands Examples Getting Started With Scripts Global Keywords
Generic JSON Recipes

Blueprint

Allows you to add or remove blueprint recipes.

Blueprint recipes consist of a variable number of inputs and one output. They are grouped by categories, where each category is one blueprint item ingame.

You can find all existing categories using /ct ieBlueprintCategories

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.immersiveengineering.Blueprint;

Implemented Interfaces

Blueprint implements the following interfaces. That means all methods defined in these interfaces are also available in Blueprint

Methods

script.zs
Blueprint.addJsonRecipe(name as string, mapData as MapData)
ParameterType
Parameter
name
Type
string
Parameter
mapData
Type
MapData

Adds a new recipe. Make sure that the category exists before calling this method! Currently it is not possible to register new Blueprint categories.

script.zs
// Blueprint.addRecipe(recipePath as string, blueprintCategory as string, inputs as IIngredientWithAmount[], output as IItemStack)
<recipetype:immersiveengineering:blueprint>.addRecipe("some_test", "bullet", [<item:minecraft:bedrock>], <item:minecraft:bedrock> * 2);
ParameterTypeDescription
Parameter
recipePath
Type
string
Description
The recipe name, without the resource location
Parameter
blueprintCategory
Type
string
Description
The category name. The category must exist!
Parameter
inputs
Type
IIngredientWithAmount[]
Description
The recipe’s ingredients
Parameter
output
Type
IItemStack
Description
The recipe’s output item

Return Type: stdlib.List<T>

script.zs
// Blueprint.getAllRecipes() as stdlib.List<T>
<recipetype:immersiveengineering:blueprint>.getAllRecipes();

Return Type: T

script.zs
Blueprint.getRecipeByName(name as string) as T
ParameterType
Parameter
name
Type
string

Return Type: T[ResourceLocation]

script.zs
// Blueprint.getRecipeMap() as T[ResourceLocation]
<recipetype:immersiveengineering:blueprint>.getRecipeMap();

Return Type: stdlib.List<T>

script.zs
Blueprint.getRecipesByOutput(output as IIngredient) as stdlib.List<T>
ParameterType
Parameter
output
Type
IIngredient
script.zs
Blueprint.remove(output as IIngredient)
ParameterType
Parameter
output
Type
IIngredient
script.zs
// Blueprint.removeAll()
<recipetype:immersiveengineering:blueprint>.removeAll();
script.zs
Blueprint.removeByInput(input as IItemStack)
ParameterType
Parameter
input
Type
IItemStack
script.zs
Blueprint.removeByModid(modid as string, exclude as Predicate<string>)
ParameterTypeOptionalDefault Value
Parameter
modid
Type
string
Optional
false
Default Value
Parameter
exclude
Type
Predicate<string>
Optional
true
Default Value
(name as string) as bool => false
script.zs
Blueprint.removeByName(names as string[])
ParameterType
Parameter
names
Type
string[]
script.zs
Blueprint.removeByRegex(regex as string, exclude as Predicate<string>)
ParameterTypeOptionalDefault Value
Parameter
regex
Type
string
Optional
false
Default Value
Parameter
exclude
Type
Predicate<string>
Optional
true
Default Value
(name as string) as bool => false

Properties

NameTypeHas GetterHas Setter
Name
allRecipes
Type
stdlib.List<T>
Has Getter
true
Has Setter
false
Name
recipeMap
Type
T[ResourceLocation]
Has Getter
true
Has Setter
false