diff options
author | darkrose <lisa@ltmnet.com> | 2012-07-12 04:46:10 +1000 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-07-21 02:33:22 +0300 |
commit | 38580fbee71d9833ae05eae604ce2301cd23218f (patch) | |
tree | 65a57e14524336405159b2a60ff9ca587d75624f /doc | |
parent | 08e1d40d6e8466a56d03dc77f308059cf3547763 (diff) | |
download | minetest-38580fbee71d9833ae05eae604ce2301cd23218f.tar.gz minetest-38580fbee71d9833ae05eae604ce2301cd23218f.tar.bz2 minetest-38580fbee71d9833ae05eae604ce2301cd23218f.zip |
Add minetest.get_craft_recipe()
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 823b4b825..16f10815c 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -829,6 +829,13 @@ minetest.get_craft_result(input) -> output, decremented_input ^ output.item = ItemStack, if unsuccessful: empty ItemStack ^ output.time = number, if unsuccessful: 0 ^ decremented_input = like input +minetest.get_craft_recipe(output) -> input +^ 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 Defaults for the on_* item definition functions: (These return the leftover itemstack) |