I was making a minigame in which the player can upgrade skills, but each skill has a cap. The command I am using to make sure the player has enough points and isn't going over the cap is this: /testfor @p[x=-574,y=12,z=-927,r=7,score_points_min=1,score_defense=9] The part: score_defense=9 is what seems to be broken. It says the UUID is invalid. If I remove it, then it is fine, but then the player can get more than 10 points on that skill. Last I checked, doing so would make it so 9 is the max points you could have and still activate the command. In the snapshots, however, it isn't working.
Comments 9
I don't understand this at all. A second it ago it worked. Then I went to try it again a second later without changing anything and it wont work.
I can't seem to get this to happen. Is there a valid player at the location you specified when you activate the command. Also, did you misspell something possibly?
I was in the area, and the command I put in the description was copy and pasted from the command block.
I know it sounds like a stupid question, but is there an objective called defense and spelled that way too?
Change score_defense=9 to score_points_max=10 and try again.