mojira.dev
MC-135738

Bossbar names that have scores don't update as intended after exiting and re-entering the world

The Bug

Bossbar names that have scores won't update properly after exiting and re-entering the world.

How to Reproduce:

1. Input these 5 commands:

/scoreboard objectives add score dummy
/scoreboard players set player score 5
/scoreboard objectives setdisplay sidebar score
/bossbar add minecraft:boss ["",{"text":"Boss: "},{"score":{"name":"player","objective":"score"}}]
/bossbar set minecraft:boss players @a

You should see Boss: 5 at the top of your screen, and a score of 5 in the sidebar.

2. Input these 2 commands:

/scoreboard players add player score 5
/bossbar set minecraft:boss name ["",{"text":"Boss: "},{"score":{"name":"player","objective":"score"}}]

As intended, you should see Boss: 10 at the top of your screen, and a score of 10 in the sidebar.

3. Exit and re-open your world.

4. Repeat step 2. This time, you'll see Boss: 10 at the top of your screen, and a score of 15 in the sidebar.

No matter how much you try to update the name of the bossbar, you'll get the error feedback:

Nothing changed. That's already the name of this bossbar

That's a different result from what we got before.

You can give the bossbar different JSON and it'll update, but as long as the same JSON is being used, we can no longer update the score that appears in the bossbar name.

Linked issues

Comments 3

The actual progress bar can become stuck on a value too.

Cannot reproduce in 20w19a. Looks like it's fixed.

It was most likely fixed in 20w17a. I'll check to be sure

Paint

(Unassigned)

Confirmed

Commands

JSON, bossbar, score

Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, ..., 20w11a, 20w13a, 20w14a, 20w15a, 20w16a

20w17a

Retrieved