mojira.dev
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

Linked issues

Attachments

Comments 2

can confirm in 1.21

@unknown Since you are the reporter and have already added 1.21 as an affected version, there is no need for you to comment it. 🙂

Dahesor

(Unassigned)

Confirmed

(Unassigned)

attribute, command, command-block, scale

1.16.5, 1.17 Pre-release 5, 1.17 Release Candidate 1, 1.17, 1.17.1, ..., 1.21.2, 24w44a, 1.21.3, 1.21.4, 25w03a

Retrieved