Adds new furnace recipe.
source item ID
source item data
resulting item ID
resulting item data
Optional
prefix: stringprefix, used to create recipes for non-vanilla furnaces
Adds new furnace recipe with no need to manually specify input item data (it defaults to -1).
source item ID
result item ID
resulting item data
Optional
prefix: stringprefix, used to create recipes for non-vanilla furnaces; if the prefix is not empty and some recipes for this source exist for vanilla furnace, they are removed
Adds new shaped crafting recipe.
recipe result item
recipe shape, up to three string corresponding to the three crafting field rows; each character means one item in the field
an array explaining the meaning of each character within mask. The array should contain three values for each symbol: the symbol itself, item ID and item data.
Optional
func: CraftingFunctionfunction to be called when the craft is processed
Optional
prefix: stringrecipe prefix. Use a non-empty values to register recipes for custom workbenches
Same as Recipes.addShaped, but you can specify result as three separate values corresponding to ID, count and data.
Optional
func: CraftingFunctionOptional
prefix: stringOptional
func: CraftingFunctionOptional
prefix: stringOptional
vanilla: booleanshould be recipe considered as vanilla, custom logic callback will be ignored in that case
Recipes.addShaped for details.
Recipes considered as vanilla completely ignores custom logic callbacks.
Optional
func: CraftingFunctionOptional
prefix: stringRecipes.addShaped for details.
Adds new shapeless crafting recipe.
recipe result item
crafting ingredients, an array of objects representing item ID and data
Optional
func: CraftingFunctionfunction to be called when the craft is processed
Optional
prefix: stringrecipe prefix; use a non-empty values to register recipes for custom workbenches
Optional
func: CraftingFunctionOptional
prefix: stringOptional
vanilla: booleanshould be recipe considered as vanilla, custom logic callback will be ignored in that case
Recipes.addShapeless for details.
Recipes considered as vanilla completely ignores custom logic callbacks.
Optional
func: CraftingFunctionOptional
prefix: stringRecipes.addShapeless for details.
Deletes recipe by it's result.
recipe result
Collection object with all registered furnace recipes.
Collection object with all registered workbench recipes.
Optional
prefix: stringrecipe prefix used for non-vanilla furnaces
Furnace recipe resulting item.
Gets furnace recipes by result and custom prefix.
result item ID
result item data
recipe prefix used for non-vanilla furnaces
Collection object with all furnace recipes found by given params.
Gets recipe by the field and prefix.
WorkbenchField object containing crafting field information
Optional
prefix: stringrecipe prefix, defaults to empty string (vanilla workbench)
Recipe WorkbenchRecipe instance, containing useful methods and recipe information.
Gets recipe result item by the field and recipe prefix.
WorkbenchField object containing crafting field information
Optional
prefix: stringrecipe prefix, defaults to empty string (vanilla workbench)
Gets all available recipes containing an ingredient.
Collection object containing Recipes.WorkbenchRecipe.
Gets all available recipes for the recipe result.
Collection object containing Recipes.WorkbenchRecipe.
Performs crafting by the field contents and recipe prefix.
WorkbenchField object containing crafting field information
Optional
prefix: stringrecipe prefix, defaults to empty string (vanilla workbench)
Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.
Module used to manipulate crafting recipes for vanilla and custom workbenches.