While I was fooling around with the /effect command and health boost, I came upon a weird bug. I used the command /effect (MyUsername) 21 9000 255 so I could have a crazy amount of hearts. I decided it would take too long to wait for the hearts to regenerate so I ate a golden apple to speed up regeneration. After a couple of times while I was walking around, I got a damage shift without a noise and all my extra filled hearts were depleted. I tried this again and again, and I get the same result. Its very frustrating.
Steps to reproduce:
1. Go into survival with cheats
2. Do /effect (username) 21 9000 255
3. Eat a golden apple if you are impatient like me
4. Wait for the bug to happen.
The bug happens at random times while doing these steps.