Guide 1 Docs 2 Reference 3
3

Recipes type

game.recipes: what a crafting grid and a furnace make of a pack's items. Load-time only, like a block definition. The game's own recipes are asked first, so a pack adds and never takes away.

Functions 3

recipes.shaped(spec: { pattern: { string }, keys: { [string]: ItemMatch }, result: ItemSpec })

1 to 3 rows of 1 to 3 letters; a space is an empty cell.

recipes.shapeless(spec: { items: { ItemMatch }, result: ItemSpec })

Adds a crafting recipe whose ingredients may go anywhere in the grid.

recipes.smelt(spec: { input: ItemMatch, result: ItemSpec })

Adds a furnace recipe; a furnace smelts a pack item only by one of these.