1

Testfor command trouble

Zenyeeta's Avatar Zenyeeta7/21/15 4:39 pm
7/28/2015 8:34 am
Zenyeeta's Avatar Zenyeeta
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?
Posted by Zenyeeta's Avatar
Zenyeeta
Level 52 : Grandmaster Pyro
43

Create an account or sign in to comment.

10

1
07/28/2015 8:34 am
Level 52 : Grandmaster Pyro
Zenyeeta
Zenyeeta's Avatar
Again, thank you so much for both of your help!
1
07/27/2015 10:10 pm
Level 63 : High Grandmaster Hero
Runninlikcraz
Runninlikcraz's Avatar
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
07/27/2015 4:26 pm
Level 52 : Grandmaster Pyro
Zenyeeta
Zenyeeta's Avatar
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
07/27/2015 9:52 pm
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
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
07/21/2015 5:49 pm
Level 52 : Grandmaster Pyro
Zenyeeta
Zenyeeta's Avatar
Thank you! I really appreciate it!
1
07/23/2015 7:04 pm
Level 19 : Journeyman Robot
SquidMannn
SquidMannn's Avatar
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
07/21/2015 5:29 pm
Level 52 : Grandmaster Pyro
Zenyeeta
Zenyeeta's Avatar
How do I make it so it is score sensitive?
1
07/21/2015 5:45 pm
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
The command he posted was slightly wrong. The correct command would betestfor @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
07/21/2015 5:15 pm
Level 52 : Grandmaster Pyro
Zenyeeta
Zenyeeta's Avatar
Thank you so much!
1
07/21/2015 5:02 pm
Level 7 : Apprentice Explorer
Dart65_
Dart65_'s Avatar
/testfor @a[Score_dummy_min=90,team=Blue]
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome