When the player is killed while using an item with keepInventory true and doImmediateRespawn false, they will continue using that item while dying, possibly consuming it.
To reproduce
/gamerule keepInventory true/gamerule doImmediateRespawn false/give @s golden_appleSwitch to survival
/summon huskLet the husk hit you and begin eating the golden apple right as it is about to kill you
❌ You finish eating the golden apple while dying
Expected result
You would stop eating the golden apple upon dying
Linked issues
Attachments
Comments 2
Thank you for your report!
We're tracking this issue in MC-133218, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki