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

Removing n scoreboard points adds them instead

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 17w45b
    • Minecraft 17w45a
    • None
    • Windows 7 64-Bit
      Java Version 8 Update 66 (build 1.8.0_66-b18)
    • Confirmed

      When using the /scoreboard players remove command to remove points from a scoreboard objective, that amount of points is instead added to your score.

      For example, if you have a score of 5 and try to remove 1 points, you will end up with a score of 6.

      Also, the output from the command incorrectly states that your score has been updated to be the opposite of what it is (5 will be -5, -7 will be 7, etc.).

      For example, when you try and remove 1 point from your score of 5, it incorrectly states they your score has been updated to -6, while your score is actually 6. This is consistent with negative scores, meaning that if you were to remove 1 from a player with a score of -5, the output would tell you that their score is now 4, while the players actual score is -4.

      Steps to reproduce:

      1. Create new world
      2. Create new dummy scoreboard objective named "score" (/scoreboard objectives add score dummy)
      3. Set your score value to 5 (/scoreboard players set @p score 5)
      4. Remove 1 point from your score (/scoreboard players remove @p score 1)

            dinnerbone [Mojang] Nathan Adams
            johnnyhotshotmc Johnny Puskar
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: