ReadonlydataThe raw parsed JSON data of the asset file.
ReadonlydocstringsAll JSDoc-style comment blocks parsed from this asset's source file,
in document order. Empty array when no /** … */ blocks are present.
ReadonlyfileAbsolute path to the asset's file on disk. Empty string in browser mode.
ReadonlyidThe recipe identifier from description.identifier, e.g. "minecraft:copper_spear". Falls back to the filename without extension if the field is absent.
ReadonlytypeThe recipe type.
The item this recipe produces, or undefined if the result is not in this addon
(e.g. a vanilla item) or the recipe has no result.
Shortcut for recipe.result?.item.
Brewing: returns the input, reagent, and output.
Returns undefined if this is not a brewing recipe.
Furnace: returns the input and output.
Returns undefined if this is not a furnace recipe.
Shaped: resolves the pattern into a 2D grid of Item | Tag | null.
Returns undefined if this is not a shaped recipe.
Shapeless: returns each ingredient with its required count.
Returns undefined if this is not a shapeless recipe.
Returns true if this recipe uses the given item identifier as an ingredient.
Represents a single recipe file from the behavior pack's
recipes/directory.Access via
addon.recipes,addon.recipes.forItem(id), oritem.recipes.Example