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

scoreboard enable sets the scoreboard value if not set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.19.3
    • None
    • Unconfirmed
    • (Unassigned)

      When a scoreboard is created or reset it has no value but if it is enabled the value is set to 0.
      This can lead to unintended behaviour since it is not what I expect.

      How to reproduce:

      /scoreboard objectives add test trigger
      /scoreboard players enable @s test
      /scoreboard players get @s test
      

      Returns 0 instead of an error that the value is not set

            Unassigned Unassigned
            Sertonix Sertonix
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: