1
0
Fork 0

Make health regen from food not almost instant to balance spam eating

This came from testing the new mob combat balance that I noticed I can spam eat food and regen very quickly.

This health regen time change is actually the same as Minecraft.

"Whenever a player's hunger is 18 (🍗 × 9) or higher, they regenerate 1♥ every 4 seconds."

https://minecraft.wiki/w/Healing
This commit is contained in:
Eliy21 2023-11-11 15:25:55 +00:00
parent b2da2b2f63
commit 98a61ec0be
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ minetest.register_globalstep(function(dtime)
end
end
elseif food_tick_timer > 0.5 and food_level == 20 and food_saturation_level > 0 then -- fast regeneration
elseif food_tick_timer > 4 and food_level == 20 and food_saturation_level > 0 then -- fast regeneration
if player_health > 0 and player_health < 20 then
food_tick_timer = 0
player:set_hp(player_health+1)