mojira.dev
MC-133218

Usable items continue to be used on the death screen after dying when the "keepInventory" gamerule is set to "true"

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.

Linked issues

MC-280014 Dying while eating food wastes the food Resolved MC-272532 The eating animation continues when you die Resolved MC-263711 When eating a enchanted golden apple / golden apple when you die you can still get the absorption heart after Resolved MC-241419 If killed while eating the animation continues, and item is consumed Resolved MC-233766 If you are almost dying and died while eating something while KeepInventory is on, you will still be able to continue eating. Resolved

Attachments

Comments 7

Can confirm in 1.13-pre7. But drinking after dying will give the effect. It disappears when respawn.

Confirmed for 1.13.1.

Confirmed in 1.16.4 prerelease 2

Can confirm in 1.17.1 (MC-233766).

Can confirm in 21w37a.

This affects all usable items and isn't just exclusive to drinking potions and eating food. I've updated this ticket accordingly to reflect this new information.

Applaud4692

[Mod] markderickson

(Unassigned)

Confirmed

Player

keepinventory

Minecraft 1.12.2, Minecraft 1.13-pre7, Minecraft 1.13, Minecraft 1.13.1, Minecraft 1.13.2, ..., 1.20.4, 23w51b, 24w21b, 1.21.4, 25w05a

Retrieved