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

Wrong Chat box Output of command attribute get <scale>

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.5, 1.17 Pre-release 5, 1.17 Release Candidate 1, 1.17, 1.17.1, 1.19.3 Release Candidate 2, 23w51b, 1.21, 1.21.1, 24w36a, 1.21.2 Release Candidate 2, 1.21.2, 24w44a, 1.21.3
    • Windows 10
    • Confirmed
    • (Unassigned)

      When using command /attribute ... get <scale>  or /attribute ... base get <scale>, the output is wrong on screen when a scale is added. If you use execute store, a correct number can be stored in a scoreboard after scaled, but we cannot see the correct scaled value in the chat box.

       

      In the following example, the command executed is 

      /execute store result score @s 3 run attribute @s generic.attack_damage base get 3

       

      My base attribute of damage is 1.

      We can see a correct value "3" is stored on the scoreboard, but in the chat it says "1".

      Which is different when using the scale features of /data

            Unassigned Unassigned
            Dahesor Dahesor
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: