Started by
lactrosepvp
on
Topic category: Help with Minecraft modding (Java Edition)
past 1.8 the healing is very fast, and for my mod i want to make it more difficult to heal, so how do i bring back the old healing, i tried setting the saturation every tick to 0 but that just drains any type of food very quickly, i need to somehow keep the saturation without it healing the player
Edited by lactrosepvp on Sat, 11/08/2025 - 13:51
you could probably use the naturalRegeneration gamerule
but doesnt that make you not regen atall, well maybe i could make it work by giving the player health depending on the saturation
Update: i figured it out using chatgpt you need to disable natural regeneration then make a procedure on player tick update heres screenshot for code if it doesnt work basically if player food level above 17 and player health below 20 but higher than 0 set variable to get variable + 1 then if variable => 79 set health of event entity to +1
increase exhaustion by 6 ( exhaustion is hunger basically or saturation both ) and then set variable to 0 boom easy
https://imgur.com/a/cQpYB7d