minetest/minetest — pull request #966 by Novatux (2013-10-26 09:27:52+00:00)
Title: Add a callback: minetest.register_on_craft(itemstack, player)

This adds a callback when a player crafts something. The callback should return another itemstack, that would replace the original one, or nil, that will not change the itemstack.