UjEdwin wrote:You need V7.
V6 is old and doesn't support this kind of changes,
minetest.register_on_player_hpchange(function(player, hp_change)
if hp_change < 0 then
local inv = player:get_inventory()
if stack_one_sp(inv) then
local sp = player_get_sp(inv)
hp_change = hp_change * (1/sp.heal)
--minetest.chat_send_all(hp_change)
if hp_change > -1 then
return -1
end
end
end
return hp_change
end, true)
i have made the ores from moreores, and from technic. it has some errors, and not too detailed, but ill put it up here if you dont mind. so eweryone can fix or make it better.
Users browsing this forum: No registered users and 25 guests