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

Failed /scoreboard players operation can still give a score of 0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.1, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w13b, Minecraft 17w16b, Minecraft 17w17b, Minecraft 17w18b, Minecraft 1.12 Pre-Release 2, Minecraft 1.12.2
    • Fix Version/s: Minecraft 17w46a
    • Confirmation Status:
      Confirmed

      Description

      When you do an operation between 2 'empty'* scores the first score will receive a score of 0, even though you get an error message: "No <name> score for <player> found". This score won't show up on the sidebar until you reopen the world or update the display slot.
      *: when you created a score but you didn't set any value for an entity

      Steps to reproduce:

      1. Create 2 new scores
        /scoreboard objectives add test1 dummy
        /scoreboard objectives add test2 dummy
      2. Display the first score
        /scoreboard objectives setdisplay sidebar test1
      3. Do an operation (notice that the sidebar didn't change)
        /scoreboard players operation @p test1 = @p test2
      4. Update sidebar (notice that now your score appeared on the sidebar)
        /scoreboard objectives setdisplay sidebar
        /scoreboard objectives setdisplay sidebar test1

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                SunCat [Mod] SunCat
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: