mojira.dev
MC-136896

If i add a player to the scoreboard command(the objective works) it requires me to put in a score or else the command is invalid but the objective is read-only

The commands that i used are

/scoreboard objectives add health health

/scoreboard objectives setdisplay sidebar health

/scoreboard players add @a health <points> (please note that i did not set the points variable because it is a read only objective

The output on all commands(in order) was:

1. [07:27:14] Created new objective [health]

2.[07:27:22] Set display slot sidebar to show objective health

3.[07:27:46] ... @a health<–[HERE]

if i do define a score this is what the output reads:

[07:42:17] Scoreboard objective 'health' is read-only

I believe That this is a bug pls fix because i need a few scoreboards to display 

Comments 3

What do you expect {{/scoreboard players add @a health}} to do?

The player will get tracked as soon as their health changes in any way.
Not saying there shouldn’t be a way to ensure that players are tracked in read-only objectives, but that’d be a feature request and not a bug.
What you reported is by design.

nvm. i found the problem. i needed to restart minecraft and then run the command. it worked fine

 

quint zandbergen

(Unassigned)

Unconfirmed

command-block, read-only-scoreboard-objectives, scoreboard

Minecraft 1.13.1

Retrieved