1
So I"m having a bit of an issue, I am making a game and there are six classes on each team, each with special abilites, to fit those catergories ive had to make each class its own personal team and when testing for all red classes, so I used this command:
And whenever its run, both me and my friend (each on separate teams) It gives a positive output, we believe that it might be too many teams, all teams have correct spelling and punctuation.
testfor @a[r=12,team=!Blue6,team=!Blue5,team=!Blue4,team=!Blue3,team=!Blue2,team=!Blue1,]
And whenever its run, both me and my friend (each on separate teams) It gives a positive output, we believe that it might be too many teams, all teams have correct spelling and punctuation.
Create an account or sign in to comment.
7
1
The problem has already been resolved, Thanks for helping anyways!
1
Scores are not linked to anything, you can make a score called "ThisIsAScore" and test for it using score_ThisIsAScore= (tests for maximum) and score_ThisIsAScore_min= (tests for a minimum).
1
Or for red:
/testfor @a[team=Red]
As long as you don't specify which "Red" score, you can testfor all Red classes
/testfor @a[team=Red]
As long as you don't specify which "Red" score, you can testfor all Red classes
1
You can only use one of each selector argument, using multiple team arguments just does not work and it will just look for the last one.
1
This is right....
Instead of having multiple blue teams, you could give each person a score in a Blue scoreboard objective.
Assuming you want to testfor someone with a blue score of 5:
/testfor @a[team=Blue,score_Blue_min=5,score_Blue=5]
Instead of having multiple blue teams, you could give each person a score in a Blue scoreboard objective.
Assuming you want to testfor someone with a blue score of 5:
/testfor @a[team=Blue,score_Blue_min=5,score_Blue=5]
1
Is there a way you could test for a score not specific to anything? like test for a player on any team that has a certain score?
1
well it worked when we looked for players who werent in two certain teams and it worked so i dont think that is the case but well look into it