Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-113552

Tooltip of items with AttributeModifiers is not providing enough information

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.11.2, Minecraft 17w06a, Minecraft 18w05a, 1.15.2, 20w07a, 20w49a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w08b, 21w17a, 1.17, 1.17.1, 1.19
    • Confirmed
    • (Unassigned)

      The bug

      The tooltip of an item with AttributeModifiers shows only something like "+120% Attack Damage" which is not really helpful when you don't know how much attack damage the item had at the beginning.

      Expected behavior

      It would probably be best if it showed always the attribute values as absolute value after applying the modifiers. This would solve the missing distinction for operation 1 and 2 (both being for example "+120% Attack Damage") as well.

      How to reproduce

      A good example showing that the currently displayed information is not helpful is MC-124662:
      The following sword has the same attack speed like a default sword, but the tooltip says "-2.4 Attack Speed":

      /give @s minecraft:diamond_sword{AttributeModifiers:[{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:-2.4,Operation:0,UUID:[I;1,2,3,4],Slot:"mainhand"}]}
      

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            10 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: