Glassworking - TFC-Metallum/TFCTech GitHub Wiki

For manipulating Glassworking recipes, a hook is provided:

// Import the recipe methods into your script.
import mods.tfctech.Glassworking;
// Adds a recipe with the given parameters
Glassworking.addRecipe(String registryName, IItemStack output, String... pattern)
// Removes all recipes that have a given output
Glassworking.removeRecipe(IItemStack output)
// Removes a single recipe by registry name
Glassworking.removeRecipe(String registryName)

Pattern must be a closed interval [1, 5]. Each input string is a line of the matrix. Empty spaces indicates where user must click, examples:

Glass bottle:
" X X ",
" X X ",
"X   X",
"X   X",
" XXX "
Glassworking.addRecipe("glass_bottle", <minecraft:glass_bottle>, " X X ", 
                                                                 " X X ", 
                                                                 "X   X", 
                                                                 "X   X", 
                                                                 " XXX ");