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]
Created Issue:
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.
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]
Also - I've edited MC-58514.
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]
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.
testfor @a[score_HS_min=1,score_HS=1]
I cannot confirm
I have:
score set to 1, finds me
score set to 0, nothing happens
command used:
Post a screenshot of your mechanism. And silly question, but does the objective exist when you testfor it?
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.