minetest.get_craft_recipe - Uberi/MineTest-API GitHub Wiki

minetest.get_craft_recipe

Description

output is a node or item type such as 'default:torch'

input.method = 'normal' or 'cooking' or 'fuel' input.width = for example 3 input.items = for example { stack 1, stack 2, stack 3, stack 4, stack 5, stack 6, stack 7, stack 8, stack 9 } input.items = nil if no recipe found

Syntax

[table](../type/table.html) get_craft_recipe([string](../type/string.html) output)

Examples

print(dump(minetest.get_craft_recipe('default:torch')))
⚠️ **GitHub.com Fallback** ⚠️