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

Read-only scoreboard objectives only initialize when respective value is changed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.11.2, Minecraft 17w47b, Minecraft 17w48a, Minecraft 17w49b, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w06a, Minecraft 18w07c, Minecraft 18w08b, Minecraft 18w09a, Minecraft 18w10a, Minecraft 18w10b, Minecraft 18w14b, Minecraft 18w16a, Minecraft 18w20c, Minecraft 18w21a, Minecraft 18w22c, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13-pre4, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13-pre10, Minecraft 1.13, 1.15.1, 1.15.2, 20w09a, 20w21a, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 20w51a, 21w03a, 21w05b, 21w06a, 21w07a, 21w08b, 21w10a, 21w17a, 1.17.1, 1.18 Pre-release 6, 1.18.1, 1.18.2, 1.19, 1.19.1 Release Candidate 1, 1.19.2, 1.20.1, 1.20.5 Release Candidate 2, 1.21 Pre-Release 2
    • Confirmed
    • Commands
    • Normal
    • Platform

      The bug

      Read-only scoreboard objectives are only initialized when the value they are tracking changes. Expected would be that they initialize on creation.

      Affected objective criteria

      • air
      • armor
      • food
      • health
      • level
      • xp

      How to reproduce

      1. Create a scoreboard objective of the type xp
        /scoreboard objectives add xp xp
        
      2. Check if a value is set by displaying the objective on the sidebar or trying to get the score
        /scoreboard objectives setdisplay sidebar xp
        
        /scoreboard players get @s xp
        

        No value is set

      3. Update your xp points
        /xp add @s 1
        
      4. Repeat step 2
        Now a value is set

        1. MC-111729.mp4
          2.40 MB
          [Mod] Avoma
        2. 2021-05-03_11.46.58.png
          1.22 MB
          [Mod] Avoma
        3. 2021-05-03_11.46.53.png
          1.24 MB
          [Mod] Avoma

            Unassigned Unassigned
            chokoboy3 Myldero
            Votes:
            29 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              CHK: