When making custom trades with ingredients that have components like in this case jukebox_playable and food removed (e.g. to use it as custom currency), the tooltip displays info about music disc song, food value, etc. This is supposed to be paired with custom texture as well so tool tip that displays info which is not relevant (because ingredient actually must have those default components removed) makes it seem wrong and confusing.
This seem to only affect buy slot, item in sell slot shows correct tooltip.
Steps to reproduce:
Use your favorite method to make custom villager trade that trades item with default component removed that would have extra tool tip info like the music disc's song name
Some examples:
/give @s music_disc_cat[!jukebox_playable]
/give @s music_disc_cat[!rarity]
Swap the villager trade buy/sell slot with item in hand to test trade in action:
Buy slot:
/data modify entity @n[type=villager] Offers.Recipes[0].buy set from entity @s SelectedItem
Sell slot:
/data modify entity @n[type=villager] Offers.Recipes[0].sell set from entity @s SelectedItem
Open villager UI and inspect trade ingredient tooltip
Observed result:
When the disc that is not usable in jukebox is present in trade it correctly hides song name when item is sell slot, but still shows song name when disc is in buy slot:
When the disc that has its rarity component removed it still shows the Rare rarity when disc is in sell slot, unlike the buy slot:
[media][media]
Running /data get @n[type=villager] Offers.Recipes[0].buy
and /data get @n[type=villager] Offers.Recipes[0].sell
respectively shows that the buy slot retains the removal of components, while the sell slot does not.
Expected result:
The sell slot retains "removed" components, like the buy slot.
Linked issues
is duplicated by 2
Attachments
Comments 10
I would like this thread to be resurected as I confirmed that bug in fact is in vanilla game. Bug seem to only affect Buy slot rather than Sell slot.
Your example shows that Sell slot does not have that issue, I confirmed the same, but Buy slot has that issue:
https://www.youtube.com/watch?v=WxZ8SqJIviE
Reopened.
Do you know if this affects jukebox_playable only or if other components are affected too?
Also I'd appreciate if you could write out the commands and instructions to reproduce this issue from the video directly in the description.
I edited description to include command to give custom disk as well as command to swap villager trade with custom disk in hand to quickly test tooltip in trade UI.
I am not sure yet if it affects other tooltip data like hunger info, gonna check it in a bit and if so I will edit description to reflect that.
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
I can't see how weird inconsistency between 2 fields in the same UI is not a bug and why trade UI item tooltip can not match item that trade actually requires as an input for a trade. I hope this will be reconsidered in the future, in a mean time I willl have to either reach for modding community for this bug fix or just look for different solution all together.
You could use an item that has a purely visual use and doesn't need any components removed (such as clocks).
I hope as component system moves in a future inconsistencies with tooltips will be fixed, but thank you, I will take clock suggestion as clock also doesnt have any hardcoded behaviour and is not part of any crafting recipe.
Yeah, Mojang is definitely aware that the exclamation mark syntax currently doesn't work everywhere – you can see that MC-269337 was similarly resolved as feature request but that feature was nevertheless added later.
Also note that during testing this we found that the /data modify
command doesn't actually transfer the exclamation mark component at all to the buy slot; so it's not just an interface issue. That slot just doesn't support exclamation mark components yet.
[media][media]You can use the componenthide_additional_tooltip
to hide the music disc title.As for food showing saturation and hunger levels, that is a bug specific to the mod you're using.The removal of the component
jukebox_playable
should hide the music title:Your game, launcher or server is modified.
If you can reproduce the issue in a vanilla environment, please recreate the issue.
Any non-standard client/server/launcher build needs to be taken up with the appropriate team, not Mojang.
A world which had previously been opened with a modified client might be corrupted. Please try reproducing the issue in a newly generated world.
Any plugin issues need to be addressed to the creator of the plugin or resource pack.
If you have problems on large servers like Hypixel, please contact them first as they run modified server software.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki