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

Testing for a player before a score assigned render invalid instead of 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 14w25a, Minecraft 14w25b
    • None
    • Unconfirmed

      When testing for a value of a player's scoreboard that has been reset or a new scoreboard, the old functionality allowed for a player to default to 0 if no score was set. The new functionality refers to nothing if no value is set.

      How to recreate:
      1) Add a new scoreboard objective - /scoreboard objectives add Test dummy
      2) Test for a player with a score of the objective: /say @a[score_Test=0]

      What used to happen:
      [@] djimusic

      What happens in 14w10c+:
      That player cannot be found.

      Back in Snapshot 14w08 and below, the functionality was different. They could have made this change on purpose, but the problem with it is the fact that there is no way to set everyone's score to 0 if they do not have a score without using @a. If I set everyone's score to 1, and then someone joins in the game, they don't have a score. The only way to give them a score of 0 is to set EVERYONE's score to 0, which overwrites everyone's old score of 1. This is a problem for objectives like points as when the players join the server, they have to have a score set to 0 instead of the default being zero.

      This also affects scoreboard players reset as it deletes the value instead of setting every value to zero. Please reset every player registered to zero instead of deleting the value allowing me to test for the value once again.

      Thanks for reading this. I am attaching Screenshots of the Old and new behavior.

        1. 14w08.png
          14w08.png
          56 kB
        2. 14w10.png
          14w10.png
          45 kB

            Unassigned Unassigned
            djimusic Dakotah Intriglia
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: