Mojira Archive
MC-124241

Score and Selector text components finalize with the result of the first instance the command runs as

The bug

When you have a /tellraw command with a score component to translate a "%s" argument, the score doesn't update dynamically if the /tellraw command is in a function (which is ran by either a command block or the tick tag). It only updates upon /reload-ing or F3 + t.
This issue is blocked by MC-129814

How to reproduce

  1. Run these commands:
    /scoreboard objectives add test dummy
    /scoreboard objectives setdisplay sidebar test
    /scoreboard players set @s test 1
    
  2. Run this command in a function which gets executed by the tick tag:
    /tellraw @a {"translate":"%s","with":[{"score": {"objective": "test", "name": "*"}}]}
    
  3. Now change the score:
    /scoreboard players add @s test 10
    

    → Notice that the displayed score won't update until you do /reload or F3 + t
    → If you run the same command in a command block, the displayed score gets updated like normal