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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w17a
    • Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w43c, Minecraft 18w44a, Minecraft 18w45a, Minecraft 18w46a, 1.14.4, 19w34a, 19w36a, 19w37a, 19w38b, 19w39a, 19w40a, 19w42a, 19w44a, 19w45a, 19w45b, 1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w09a, 20w10a, 20w11a, 20w13a, 20w14a, 20w15a, 20w16a
    • Confirmed
    • Commands

      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.

            Unassigned Unassigned
            paint Paint
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: