minetest.register craftitem

Description
Registers a craftitem.

is an itemstring in the layout "modname:itemname", should be all lowercase.

is a table with the following fields:
 * — inventory tooltip
 * — the groups of the craftitem
 * — inventory texture of the item
 * — texture shown when wielded
 * — scale of
 * — maximum amount of items per stack, default is 99
 * — wether the player can point at liquids while wielding the item or not, default it false
 * metadata

Callbacks
These callbacks are defined in :


 * called on rightclick
 * should return the leftover itemstack (if, no item is removed)
 * default:
 * default:


 * called when dropping the item (with "Drop" key, default binding is 'Q')
 * should return the leftover itemstack (if, no item is removed)
 * default:
 * default:


 * called on leftclick
 * should return the leftover itemstack (if, no item is removed)
 * default:
 * default: