mojira.dev
MC-61662

Cannot test for reset or newly created scores

I know there are some reports on this theme already, but this is about that you can't test for a player with a score of NULL which should be the initialized value for new created class or variable. (I hope this is correct I read this here: http://stackoverflow.com/questions/2707322/what-is-null-in-java).
So then my question is, as MC-50601 "works as inteded". How can you then testfor a player with a score of null when

/testfor @p[score_Test=null]

doesn't work

I don't know if this is helpful, but wouldn't it be possible to either add/fix it that you can test for players with score of null or when you test for a score of 0, the game also looks for players with score of null

Maybe another argument for you that this is a bug: You can test for players without a team (/testfor @p[team=]), altough they probably have as team also null

Comments

Mateo Hernandez

The default value for an int (which is the data type the scoreboard uses) is 0, not null.

marcono1234

No I don't think so, else you could test for a player with the score 0 but you can't when the score was reset

marcono1234

michael

Confirmed

initialize, reset, score, scoreboard, zero

Minecraft 14w28b, Minecraft 14w29b, Minecraft 14w30c, Minecraft 14w31a, Minecraft 1.8-pre2, Minecraft 1.8

Retrieved