I am having trouble with the testfor command as you can tell by the Subject name. I need the command to be team and score sensitive. The objective name is "Score" and the type is dummy. The command currently is /testfor @a {Score_dummy_min:90,team:Blue}. the output is that I "did not match the required data structure" even though my score is 90 and my team is Blue. Answer?
Create an account or sign in to comment.
10
1
Again, thank you so much for both of your help!
1
Make sure the PigKills score is listed correctly, you can check this by doing /scoreboard objectives list and seeing which score is PigKills and if you entered it right.
1
Ok, so I still can't figure it all out. I have an objective called "PigKills" and the command is /testfor @a[score_PigKills_min=10] and of course it doesn't work. Help?
1
It seems like the command is correct, assuming you're trying to see if a player has at least 10 points on that objective. If it's not working, I'd suggest just checking the capitalization of the objective, and that there is actually a player with the required score (the player must be online and real, not an entity or a fake player).
1
Thank you! I really appreciate it!
1
Just so you understand if it says [score_SCORE=1] then that means it must be a maximum of one if it is [score_SCORE_min=1] then that means it must be a minimum of 1, for it to be the exact number it needs to be [score_SCORE_min=1,score_SCORE=1]
1
How do I make it so it is score sensitive?
1
The command he posted was slightly wrong. The correct command would be
The name of the objective goes in the middle of the underscores, and is case sensitive. Also, if you want it to test for someone with a score of exactly 90, you can also add another argument inside the brackets:
testfor @a[score_Score_min=90,team=Blue]
The name of the objective goes in the middle of the underscores, and is case sensitive. Also, if you want it to test for someone with a score of exactly 90, you can also add another argument inside the brackets:
testfor @a[score_Score=90,score_Score_min=90,team=Blue]
1
Thank you so much!
1
/testfor @a[Score_dummy_min=90,team=Blue]