mojira.dev
MC-62001

score_ObjectiveName=NUMBER Doesnt Work

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

Change score_defense=9 to score_points_max=10 and try again.

I tried that earlier and tried it again. Doesn't work, and I don't think it ever has.

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?

Yes, defense is an existing objective.

Unable to reproduce.

as it turns out, you have to actually have a score of 0, not no score at all for this to work. I have it working now.

Reese Gosain

(Unassigned)

Unconfirmed

Minecraft 14w28a

Retrieved