Mojira Archive
MC-226898

Wrong Chat box Output of command attribute get <scale>

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

Unresolved

Dahesor

2021-05-31, 05:27 AM

2025-01-21, 06:11 AM

2

3

Confirmed

(Unassigned)

attribute, command, command-block, scale

1.16.5 - 25w03a1.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, 1.21.4, 25w03a

-