minetest.on craft

Description
Returns a changed itemstack:

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