mojira.dev
MC-122020

Cannot add 0 to a player’s score

The bug

Previously, /scoreboard players add <selector> <objective> 0 was the only way to store on a scoreboard that a player had no score.
Now the add subcommand only allows for integers greater than 1, making execution by players with no score, such as with /execute as @a[scores={<objective>=0}], impossible.

Attachments

Comments 3

I do not know if this is a bug or a change. You can do

/scoreboard players add <player> <objective> 1

and then

/scoreboard players remove <player> <objective> 1

as a workaround for now, but I agree with you that "add 0" had a great functionality and that it should be reintroduced

Not a bug. Please close your post

@unknown, how do you know that it's not a bug? If it has worked before, it's a valid report. Leaving open.

Matthew Weissel

Nathan Adams

Confirmed

Minecraft 17w46a

Minecraft 17w47a

Retrieved