mojira.dev
MC-58514

Scoreboard "1" and "0" value undifferentiated

When I'm using commands, (namely testfor and give) and am testing for someone with a score of 1, it works - kind of. Even if my score is changed back to 0, it recognizes as a 1. I have to completely reset the score for it to work.

Commands:
• testfor @a[score_<score>=1]
• testfor @a[score_<score>min=1,score<score>=1]
• give @a[score_<score>min=1,score<score>=1]

Comments 13

Please provide the exact commands that you've used.

• testfor @a[score_<score>=1]
• testfor @a[score_<score>min=1,score<score>=1]
• give @a[score_<score>min=1,score<score>=1]

  • Also adding to post.

If you mean the first command is having the issue, then it's working as intended. The "score_<objective>" parameter is checking maximum (so 1 or less) while "score_<objective>_min" is checking minimum (1 or more). Having both labeled will check a score of exactly 1. Otherwise I cannot reproduce your issue.

Yeah, but the thing is, it even happens with testfor @a[score_<score>min=1,score<score>=1] ... :/

Can you provide the exact command you're using? Filling in the blanks in that command works fine.

3 more comments

Actually... what command are you using yo set your score to 0?

Scoreboard players set FletchTech90 game 0

@Haden F you're setting your "game" score to 0, but you're testing for a score called "HS". No wonder your setup doesn't work.

I meant for them to be the same, sorry. I'll go double check my setup.

Not really sure what I truly used. 😛

FletchTech90

(Unassigned)

Unconfirmed

Minecraft 14w25b

Retrieved