mojira.dev
MC-110566

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

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

Linked issues

Comments 1

Currently it's fixed, but it may reappear after MC-121752 is fixed

SunCat

(Unassigned)

Confirmed

/scoreboard-operation

Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.1, Minecraft 1.11.2, Minecraft 17w06a, ..., Minecraft 17w16b, Minecraft 17w17b, Minecraft 17w18b, Minecraft 1.12 Pre-Release 2, Minecraft 1.12.2

Minecraft 17w46a

Retrieved