mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
minetest.get_craft_result
This commit is contained in:
parent
3899f83da8
commit
353f9fd43c
3 changed files with 158 additions and 26 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue