mojira.dev
MC-127972

"/scoreboard objectives setdisplay" always returns result of 0

How to reproduce

  1. Create a scoreboard objective named "test":

    /scoreboard objectives add test dummy
    /scoreboard objectives add test dummy
  2. Run the following command:

    /execute store result score @s test run scoreboard objectives setdisplay sidebar test
    /execute store result score @s test run scoreboard objectives setdisplay sidebar test

    → ❌ Your score is set to 0

Linked issues

Attachments

Comments 10

This is in its purest form a duplicate of MC-123362, however the interesting issue is that /scoreboard objectives setdisplay always returns 0 for result regardless of success.

Can confirm in 20w48a.

Can confirm in 21w05b.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w20a.

Can confirm in 1.17.1. Video attached.

Can confirm in 1.18.1.

Can confirm in 1.18.2 and 22w16b.

Can confirm in 1.19.

Setdisplay is already covered in MC-182368, so I'll resolve this as a duplicate and link it forward.

Nicholas Ngai

(Unassigned)

Confirmed

Commands

Minecraft 18w14a, Minecraft 1.13, Minecraft 18w31a, 1.16.3, 1.16.4, ..., 1.18.2, 22w16b, 1.19, 1.19.3, 1.20.1

Retrieved