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

Color of attribute modifiers in tooltips depends on their operation type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.13, Minecraft 1.13.1, 1.14.4, 19w37a, 20w49a, 1.16.5, 21w06a, 21w08b, 21w15a
    • None
    • Confirmed
    • (Unassigned)

      The bug

      Since 1.13 the color of the "attribute modifier" of a sword is green. See screenshot 1.
      But if I use a command (/data merge, /give, /summon, etc.) with attribute modifier the color is blue. See screenshot 2.

      How to reproduce

      1. Use this command for example:
        /give @s diamond_sword{AttributeModifiers:[{AttributeName:"generic.attack_damage",Slot:"mainhand",Amount:7,Operation:0,UUID:[I;1,2,3,4]},{AttributeName:"generic.attack_speed",Slot:"mainhand",Amount:1.6,Operation:0,UUID:[I;5,6,7,8]}]}
        
      2. Look at the sword

            Unassigned Unassigned
            Hardel Hardel
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: