minetest.on craft

From Minetest Developer Wiki
Jump to navigation Jump to search

Syntax

<source>minetest.on_craft(itemstack, player, old_craft_list, craft_inv)</source>


Description

Returns a changed itemstack:

For each minetest.registered_on_crafts the itemstack is replaced if the function returned something.


See also

minetest.register_on_craft


Mbox important.png This article is incomplete.
Please help expand this article to include more useful information.