Mojira Archive
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

Works As Intended

Marcono1234

[Mojang] Searge (Michael Stoyke)

2014-07-12, 12:41 AM

2015-09-08, 12:24 PM

2014-10-13, 11:55 AM

0

2

Confirmed

initialize, reset, score, scoreboard, zero

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

-