1

This question already has an answer here:

/testfor @p[score_state=1,score_state_min=1]

doesn't work! Why?

It returns this:

The entity UUID provided is in an invalid format

How can I fix this?

marked as duplicate by Vemonus, dly, Dragonrage, angussidney, Schism Oct 2 '16 at 3:27

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

The error simply means no targets were found, meaning there was not a living player with a "state" score of 1. You must set their score first:

/scoreboard players set @p state 1

Not the answer you're looking for? Browse other questions tagged or ask your own question.