Mojira Archive
MC-43601

Hunger is lost when standing in close proximity to mobs / stat.walkOneCm increases

When standing within one square of a mob, even if separated by something like an iron fence, the hunger bar will deplete. The more mobs that occupy that square, the faster the hunger bar will deplete. This is presumably due to the game considering the mobs to be "pushing" the player, even though the player is not actually moved as a result(the location coordinates do not visibly change at all).

Steps to reproduce:
1) Trap a number(the more mobs, the faster the effect can be seen) of mobs in an enclosed space(preferably small, like 2x2 or 2x1).
2) Either stand directly within the mobs or against the far side of a block such as a glass pane or iron bars that has mobs on the other side so that you are less than a block away.
3) Make sure you are in survival mode.
4) In order to be able to more quickly observe the effect, ensure that your saturation is fully depleted.
5) Giving the mobs a couple blocks of space so they can move around will allow you to see the effect more quickly.
6) You should now be able to notice your hunger bar depleting even though you are in full health and standing there immobile without performing any actions.