mojira.dev
MC-276745

Effects added through the "consumable" component, don't seem to display properly in potions

The consume effect apply_effects of the consumable component, do not display correctly the effects in potions.

/give @s potion[consumable={on_consume_effects:[{type:"apply_effects",effects:[{id:"fire_resistance",duration:1250}]}]}]

Expected results:
Gives a potion that displays and applies fire resistance.
Observed results:
Gives a potion that applies fire resistance but does not display it (in the tooltip or texture).

Comments 3

Thank you for your report!
However, this issue is Invalid.

You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The Minecraft Feedback Site or visit the Minecraft Feedback Discord server.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

I don't see how this is a feature request if vanilla potions do this.

The status effect tooltip on potions is based on the potion_contents component, not the consumable component. If for example you give yourself a potion of fire resistance, with the consumable component edited so that the potion gives you a different effect upon drunk, the tooltip still displays that it would give you fire resistance. Any other food item that gives effects doesn't display it in its tooltip (except suspicious stew, which is controlled by a different component). Making the consumable component display its effects in the item's tooltip would be a feature request.

GXMDino

(Unassigned)

Unconfirmed

(Unassigned)

24w37a

Retrieved