Epic/mods/maxhp/potions.lua

11 lines
354 B
Lua

minetest.register_craftitem('maxhp:lifeforce', {
_doc_items_longdesc = "Increases max HP by 5 up to 50.",
description = 'Life Force',
inventory_image = 'maxhp_lifeforce.png',
on_use = function(itemstack, user, pointed_thing)
if maxhp.max_hp_change(user, 5, 50) then
itemstack:take_item(1); return itemstack
end
end
})