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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 18w43b
    • Minecraft 18w02a, Minecraft 18w03a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w06a, Minecraft 18w07a, Minecraft 18w07b, Minecraft 18w07c, Minecraft 18w08a, Minecraft 18w08b, Minecraft 18w09a, Minecraft 18w10a, Minecraft 18w10c, Minecraft 18w10d, Minecraft 18w11a, Minecraft 18w14b, Minecraft 18w15a, Minecraft 18w16a, Minecraft 18w19a, Minecraft 18w19b, Minecraft 18w20a, Minecraft 18w20b, Minecraft 18w21a, Minecraft 1.13-pre2, Minecraft 1.13-pre3, Minecraft 1.13-pre4, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13-pre9, Minecraft 1.13, Minecraft 18w30a, Minecraft 18w30b, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2-pre2
    • Confirmed

      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

            dinnerbone [Mojang] Nathan Adams
            AlexMCool Alex³
            Votes:
            14 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: