If you die while drinking a potion/eating food, you still consume it if gamerule keepInventory is true
This is a repost of MC-133218 for Bedrock Edition.
The bug
If you die before you can consume your potion, it still uses the potion and gives you any effects, but upon respawning it gets removed. This only works if you have /gamerule keepInventory true, since otherwise it would just drop the potion. This also affects food.
Reproduction steps
- Give yourself any consumable item.
- /gamemode s
- /tp ~ ~30 ~ or somehow be in the process of dying.
- Consume your item just before you die.
Note that if doimmediaterespawn is true, any corresponding effect will be given as if the player had consumed the potion/food properly.
Linked Issues
Created Issue:
If you die while drinking a potion/eating food, you still consume it if gamerule keepInventory is true
This is a repost of MC-133218 for Bedrock Edition.
The bug
If you die before you can consume your potion, it still uses the potion
and gives you any effects, but upon respawning it gets removed(effect not given on Bedrock Edition). This only works if you have /gamerule keepInventory true, since otherwise it would just drop the potion. This also affects food.
This is a repost of MC-133218 for Bedrock Edition.
The bug
If you die before you can consume your potion, it still uses the potion
and gives you any effects, but upon respawning it gets removed(effect not given on Bedrock Edition). This only works if you have /gamerule keepInventory true, since otherwise it would just drop the potion. This also affects food.
This is a repost of MC-133218 for Bedrock Edition.
The bug
If you die before you can consume your potion, it still uses the potion
and gives you any effects, but upon respawning it gets removed. This only works if you have /gamerule keepInventory true, since otherwise it would just drop the potion. This also affects food.Reproduction steps
- Give yourself any consumable item.
- /gamemode s
- /tp ~ ~30 ~ or somehow be in the process of dying.
- Consume your item just before you die.
Note that if doimmediaterespawn is true, any corresponding effect will be given as if the player had consumed the potion/food properly.
is duplicated by
is duplicated by
Thank you for your report!
We're tracking this issue in MCPE-103739, 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
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Thank you for your report!
We're tracking this issue in MCPE-103739, 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
I can confirm
I have the same issue. I drank a potion while on fire with keepinvenory on and the potion was consumed after I died. The drinking animation was still visible on the deaths screen.