1

So let's say I have a score of 4 out of 5. How can I use /testfor to detect I have 4 points. I know how to use /testfor @p[score_Points_min=5. If I take out the min I get this: /testfor @p[score_Points=4] You know, to detect that I have 4 points. This should work right? No, it still activates when I have 2 points. I want this to tell me I have 4 points. I've tried every single command that would possibly work. However it STILL consists of activating no matter what score I have. How can I get this to work? For any more info ask me!

1

The two arguments to test a scoreboard objective are score_name and score_name_min. The first detects anyone with that score or below, and the latter detects anyone with that score or above.

It works in this slightly confusing way because r (the radius argument, which was introduced first) made intuitive sense to be "within this radius", and rm to be the minimum radius (at least this far away). This was continued on into the other arguments where it doesn't make as much sense.

To detect for an exact score, you need to use both of these arguments:

/testfor @p[score_Points=4,score_Points_min=4] 
  • 1
    @Emeraldimension No problem; press the tick next to the answer if it answered your question. – SirBenet Aug 22 '16 at 20:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.