Topic category: Bugs and solutions
Hello! I am trying to make a feature in my mod that when the player sleeps they lose 5 bars of hunger, but I have a problem. When the player takes damage after sleeping, the hunger resets to what it was before they slept. This occurs regardless of the amount of time after sleeping. I am almost certain this is a bug and given that it was not fixed when 2020.5 was released I am assuming this has not been reported yet. If anyone knows how to fix this, please tell me.