From 98a61ec0be7fabeb5115919d0b792d800293feaf Mon Sep 17 00:00:00 2001 From: Eliy21 Date: Sat, 11 Nov 2023 15:25:55 +0000 Subject: [PATCH] Make health regen from food not almost instant to balance spam eating MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- mods/PLAYER/mcl_hunger/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/PLAYER/mcl_hunger/init.lua b/mods/PLAYER/mcl_hunger/init.lua index 321139c5f..d4a8b5f84 100644 --- a/mods/PLAYER/mcl_hunger/init.lua +++ b/mods/PLAYER/mcl_hunger/init.lua @@ -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)