I was messing around with the new ways of editing item's nbt tags and used a skull to increase my hitpoints by 90. Next, whle holding the item I healed to the maximum it provided and then changed the item slot that I was using. I healed once more and I "died". The death screen showed up, but when I clicked respawn I was in the same place and was stuck in the death animation. Also, no death message is shown.
More testing showed that any change to health once health in more than 10 hearts caused this fake death.
This still occurs in multiplayer, but only the player affected can see that anything has happened, and will be the only one seeing the red shaking.
What I expected to happen was...:
I wouldnt get healed any further.
What actually happened was...:
A fake death scene happened, and on third person I could see my character being red and shaking at an angle.
Steps to Reproduce:
1. Use an edited item to increase your maximum health
2. Heal to above 10 hearts using the item
3. Move the selection bar to a different slot
4. Change your amount of health
MC-19690 Reducing maxHealth / max_health can cause fake death