mojira.dev
MC-296748

Potion Contents component still overrides the item name even when the ToolTip Display hides the component.

Currently, the potion_contents component is coded to override the item name if the component is present.

However, when giving an item with potion_contents the additional tooltip_display component and setting it to hide the potion_contents component, it still manages to override the item name.

Steps to Reproduce:

  • Give yourself a potion with either potion contents already findable in game, such as a potion of water_breathing (Example: /give @s potion[potion_contents={potion:"minecraft:water_breathing"}] 1), or a potion with any custom effects on it (Example: /give @s potion[potion_contents={custom_effects:[{id:"minecraft:wither",amplifier:0,duration:20}]}] 1).

  • Now repeat the same commands, but with the component addition of tooltip_display set to hide the potion_contents component. (Examples: /give @s potion[potion_contents={potion:"minecraft:water_breathing"},tooltip_display={hidden_components:["potion_contents"]}] 1, /give @s potion[potion_contents={custom_effects:[{id:"minecraft:wither",amplifier:0,duration:20}]},tooltip_display={hidden_components:["potion_contents"]}] 1

  • Note any differences between the two sets of commands.

Expected Results:

  • The items with tooltip_display would have both the item name change AND the “No Effects” tooltip removed while preserving the potion effects.

Observed Results:

  • The items with potion_contents tooltips disabled still render their item name as either Potion of Water Breathing, or Uncraftable Potion in the case of custom effects potion.

Attachments

Comments 3

Hi, your game seems to be modified. Please see if this occurs in vanilla Minecraft.

Thank you for your report!
After consideration, the issue is being closed as Invalid.

You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official 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

miziragamez

(Unassigned)

Confirmed

(Unassigned)

1.21.5

Retrieved