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

Linked issues

Comments 5

Please do not mark unreleased versions as affected.
You don't have access to them yet.

Fixed in 18w20c.
Edit: derped out in testing; this issue is blocked by MC-129814.

Confirmed for 18w21a

Confirmed for 1.13-pre2. Also, this isn't blocked, the only reason it would kick you is if you spam a function to execute the command.

AlexMCool

Nathan Adams

Confirmed

json, score, translation

Minecraft 18w02a, Minecraft 18w03a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w06a, ..., Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2-pre2

Minecraft 18w43b

Retrieved