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
Run these commands:
/scoreboard objectives add test dummy /scoreboard objectives setdisplay sidebar test /scoreboard players set @s test 1
Run this command in a function which gets executed by the
tick
tag:/tellraw @a {"translate":"%s","with":[{"score": {"objective": "test", "name": "*"}}]}
Now change the score:
/scoreboard players add @s test 10
→ Notice that the displayed score won't update until you do
/reload
orF3
+t
→ If you run the same command in a command block, the displayed score gets updated like normal
Linked issues
is duplicated by 1
relates to 2
Comments 5
Fixed in 18w20c.
Edit: derped out in testing; this issue is blocked by MC-129814.
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.
Blocked by MC-137530
Please do not mark unreleased versions as affected.
You don't have access to them yet.