layout | title | permalink | excluded_in_search |
---|---|---|---|
page |
Knapping Recipes |
/1.12.x/crafttweaker/knapping/ |
true |
Clay, Fire Clay and Leather Knapping recipe managers all works the same. Each one has three methods for manipulating recipes:
// Import the [Knapping] methods into your script
import mods.terrafirmacraft.[Knapping];
// Adds a recipe with the given parameters
[Knapping].addRecipe(String registryName, IItemStack output, String... pattern)
// Removes all recipes that have a given output
[Knapping].removeRecipe(IItemStack output)
// Removes a single recipe by registry name
[Knapping].removeRecipe(String registryName)
Where [Knapping] is one of ClayKnapping, FireClayKnapping or LeatherKnapping
Pattern must be a sequence of strings, with length between (inclusive) one and five. Each input string is a line of the matrix. Empty spaces indicates where user must click.
Examples from TFC:
Small Ceramic Vessel:
" XXX ",
"XXXXX",
"XXXXX",
"XXXXX",
" XXX "
Ingot mold:
"XXXX",
"X X",
"X X",
"XXXX"
ClayKnapping.addRecipe("small_ceramic_vessel", <tfc:ceramics/unfired/vessel>, " XXX ",
"XXXXX",
"XXXXX",
"XXXXX",
" XXX ");