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

Attribute AttackDamage and Sharpness Sword still shows the Amount of the Attribute in the tooltip.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 1.8.9, Minecraft 16w05b, Minecraft 16w06a, Minecraft 16w07b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 3, Minecraft 1.11.2, Minecraft 17w06a, 20w07a, 1.16.1, 1.16.5, 21w05b, 21w07a, 21w08b, 21w11a, 1.17
    • None
    • Confirmed
    • (Unassigned)

      The bug

      If you take a Sword with the AttributeModifier AttackDamage and set it for example to +6 (Amount: 6, Operation:0) and enchant it for example to sharpness lvl: 5, the tooltip will still show the amount of the attribute (+6)
      and not what it really causes damage when you hit an entity using it.

      /give @p diamond_sword{Enchantments:[{id:sharpness,lvl:5}],AttributeModifiers:[{AttributeName:generic.attack_damage,Amount:6,Slot:mainhand,UUID:[I;1,2,3,4]}]}
      

            Unassigned Unassigned
            Nici900800 Nicolas Bachschwell
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: