Page 1 of 1

register_on_eat - request for a new callback function

PostPosted: Tue Sep 18, 2012 23:48
by cornernote
removed

PostPosted: Wed Sep 19, 2012 08:06
by wokste
That would be nice.

A quick and dirty solution would be to override the:
function minetest.item_eat(hp_change, replace_with_item)
(Can be found in item.lua, I think that must be possible to override it)

Please feel free to submit a patch.