mojira.dev
MC-192011

Villager item tooltip is opaque in the trading UI

The bug

When hovering over enchanted items, the tooltip is slightly transparent. However, that is not the case with enchanted items in a villager's trade GUI. Instead, the tooltip is opaque.

Steps to Reproduce:

  • Summon a villager with trades.

/summon minecraft:villager ~ ~ ~ {NoAI:1b,Offers:{Recipes:[{buy:{id:"minecraft:emerald",Count:1b},sell:{id:"minecraft:iron_axe",Count:1b,maxUses:9999999}}]}}
  • Hold your mouse cursor over the iron axe.

  • Look closely at the opacity of the tooltip that's displayed upon doing so.

  • Take note as to whether or not tooltips within the villager UI are opaque.

Attachments

Comments 13

Hi there!

I can confirm this. To reproduce, summon a librarian villager, and then hover your mouse over the book trade (no clicking necessary). You will notice that the box shown is opaque. Now hold your mouse over a regular item in your inventory. You will notice that the box shown is semi-transparent. Note that this bug is specific to enchanted items only. This also works for other villagers, like toolsmiths, that sell enchanted items.

Please provide screenshots of this occurring.

Please force a crash by pressing F3 + C for 10 seconds while in-game and attach the crash report (minecraft/crash-reports/crash-<DATE>-client.txt) here.

Hi there!

Can confirm for 20w27a.

Can confirm in 20w48a.

3 more comments

Can confirm in 1.19.

Can confirm in 1.19.2. Here are some steps on how to go about reproducing this issue.

Steps to Reproduce:

  • Summon a villager with trades.

/summon minecraft:villager ~ ~ ~ {NoAI:1b,Offers:{Recipes:[{buy:{id:"minecraft:emerald",Count:1b},sell:{id:"minecraft:iron_axe",Count:1b,maxUses:9999999}}]}}
  • Hold your mouse cursor over the iron axe.

  • Look closely at the opacity of the tooltip that's displayed upon doing so.

  • Take note as to whether or not tooltips within the villager UI are opaque.

WAI, affects all tooltips.

@unknown, this isn't intentional per the assigned "Mojang Priority" on this ticket. All other tooltips are slightly transparent as shown in the two attachments I've provided which can be found below.

[media][media]

This issue was present in 22w44a, but no longer occurs in versions above or equal to 22w45a. This issue was fixed in 22w45a.

[media][media]

Cyborgmas

(Unassigned)

Confirmed

Low

Rendering

rendering

1.16.1, 1.16.4, 20w48a, 1.16.5, 21w18a, 1.18.1, 1.18.2, 1.19, 1.19.2

22w45a

Retrieved