diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-06-02 12:19:44 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-06-03 22:31:01 +0300 |
commit | 353f9fd43c94b6d046c077ccfa25320dfe93cfe6 (patch) | |
tree | 4ce4cc4f25cfac504a6aea2f9c48866ea3d462ce /doc/lua_api.txt | |
parent | 3899f83da879e11cf531c88514772b890d060721 (diff) | |
download | minetest-353f9fd43c94b6d046c077ccfa25320dfe93cfe6.tar.gz minetest-353f9fd43c94b6d046c077ccfa25320dfe93cfe6.tar.bz2 minetest-353f9fd43c94b6d046c077ccfa25320dfe93cfe6.zip |
minetest.get_craft_result
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 70ba82dc7..22c1824c0 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -751,6 +751,14 @@ minetest.dir_to_wallmounted(dir) minetest.get_node_drops(nodename, toolname) ^ Returns list of item names. ^ Note: This will be removed or modified in a future version. +minetest.get_craft_result(input) -> output, decremented_input +^ 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 } +^ output.item = ItemStack, if unsuccessful: empty ItemStack +^ output.time = number, if unsuccessful: 0 +^ decremented_input = like input Defaults for the on_* item definition functions: (These return the leftover itemstack) |