mojira.dev
MC-12175

/testfor <Dummy Player> not working

After creating a "Dummy Player" by doing /scoreboard players set Blue Lives 30 I cannot use the /testfor command to check its score. /testfor Blue[score_Lives=0] always outputs false.

Comments 8

You can either use a username or a target selector.
The command should be

testfor @p[score_Lives=10]

No, you don't get what I'm saying with the /scoreboard command can create a player that does not actually exist. The player called "Blue" is not actually on the server but you can still make it show up on the scoreboard. But when i try to /testfor this "Dummy Player" it always returns false.

Please attach the command that testing commandblock.

Creating Dummy Player Command

/scoreboard players set Blue Lives 30


Test Dummy Player Lives Command

/testfor Blue[score_lives=0]


PS: The player "Blue" is NOT on the server but command blocks enable me to create this player for "Dummy" purposes

You can either use a username or a target selector.

This is invalid:

/testfor Blue[score_lives=0]

This is valid:

/testfor @p[score_lives=0]

Is there any way to test for a player that does not exist.
The "Blue" player is not a team or a player it is just a score counter pretty much but there is no way to check the score of a score counter that is not a real player.

You can just set the counter on your own player, can't you?

Yeah i could but it would be good to have a way to keep track of a score for a team not an individual player for pvp maps and stuff.

Nick Donaldson

(Unassigned)

Unconfirmed

Minecraft 1.5

Retrieved