The bug
Changing difficulty from peaceful to easy/normal/hard may cause inaccurate hunger bars on multiplayer servers.
How to reproduce
You're player A. Create a world and change difficulty to peaceful.
Open to LAN and have another player join. They're player B.
Change difficulty to normal.
Do this command:
/effect give @a hunger 10 100
Player A's hunger bar will work as intended, but player B's hunger bar will regenerate haunches during and after the effect. This is purely visual, as they will starve to death. Every tick of starvation damage will reset the hunger to its correct value, but it will continue to visually regenerate in-between those damage ticks.
Linked issues
is duplicated by 3
Comments 24
I've seen this happen, too. And themogminer, if he were on peaceful, his health should've regenerated.
Here is more video evidence of it happening in 1.8: https://www.youtube.com/watch?v=0IgyfRh15kE&t=10m45s
Here's another video of it that my friend made back on July 23rd http://youtu.be/7aYeyXRYybc, so it definitely started happening in Snapshots 14w30a/b/c or earlier.
Confirmed for 18w32a.
This ticket needs Reproduction steps. Here's what I would write:
—
You're Player A. Create a world and change difficulty to peaceful.
Open to LAN and have another player join. They're Player B.
Change difficulty to normal.
Do this command:
effect give @a hunger 10 100
Player A's hunger bar will work as intended, but Player B's hunger bar will regenerate haunches during and after the effect. This is purely visual, as they will starve to death. Every tick of starvation damage will reset the hunger to its correct value, but it will continue to visually regenerate inbetween those damage ticks.
—
This ticket's affected versions also keeps to be kept updated, I'd be ok with being the reporter.
Â
Â
here 2 years later unfortunately, accidentally reproduced this bug on 1.16.3
easiest fix is to restart server
If you're playing on peaceful, this behavior is working as intended.