register_on_eat - request for a new callback function

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

register_on_eat - request for a new callback function

by cornernote » Tue Sep 18, 2012 23:48

removed
Last edited by cornernote on Mon Nov 05, 2012 10:11, edited 1 time in total.
 

wokste
Member
 
Posts: 78
Joined: Sat Feb 11, 2012 09:06

by wokste » Wed Sep 19, 2012 08:06

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.
We must be careful not to clone Notches mistakes.
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 1 guest