I'm sure this would be much harder but I'd like it to poison them too if they hold it for too long. I am using the exertion mod which does have poisoning so I might be able to use that (or figure out a way to even just give them the status manually)
Also if anyone knows off hand (I just haven't had a chance to mess with it yet), how do I slow down the growth rate of trees to make it seem more realistic?
Thank you so much!!!! Take care :)
-Mike
EDIT - Just found on Item eat!!! That could work though I am interested in other methods too since generally you do have to wait a bit after eating hehe.
EDIT #2 Not sure how good this code really is, I had trouble with replace_with_item but this seems to work:
- Code: Select all
minetest.register_on_item_eat(
function(hp_change, replace_with_item, itemstack, user, pointed_thing)
itemstack:replace('mikesmod:waste')
return itemstack
end
)
Looks like it replaces the ENTIRE stack with one Waste item, whoops. And it seems like it isn't adding any levels to the hunger bar for exertion, I'll check into the mod files there to see if I need to add this there.
Maybe I can add a delay too where it checks to see if that item is still there after a certain period and if it is then the status is changed to poisoned?