0

I want to testfor if a player is on team 1, but if he is on team 2, then the comparator will still activate. I tried: testfor @p[team=1,team=2]
It only works for team 2 though. Probably because it is at the end. or something. Is it even possible for what I'm doing. Is there a different way maybe?

2
  • Have you tried two separate command blocks? (One testing for Team 1 and the other testing for Team 2)
    – aytimothy
    Commented Feb 14, 2015 at 0:38
  • 1
    I'm going to agree with @aytimothy. The selectors use AND logic, not OR logic.
    – MBraedley
    Commented Feb 14, 2015 at 1:02

1 Answer 1

2

Use two seperate commandblocks /testfor @p[team=1] and /testfor @p[team=2] ,then connect the comparator outputs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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