0

I'm trying to do something on a server. I have a scoreboard set up called "WD" and I want a /tellraw command to talk to people who's "WD" score equals 1.

I have tried doing:

/tellraw @a[score_WD=1] {"text":"Click this!","clickEvent":{"action":"run_command","value":"/say Hello!"}}

But this does nothing. How do I do this? The default score of "WD" is 0. I am using 1.7.10.

  • Try @a[score_WD=1,score_WD_min=1] Does that help? – APCoding Apr 2 '16 at 2:59
  • OK, I'll post it as an answer – APCoding Apr 2 '16 at 15:31
1

Use

@a[score_WD=1,score_WD_min=1]

This means the maximum score they can have is 1, and the minimum score they can have is 1. So, the only score they can have is 1.


You command becomes

/tellraw @a[score_WD=1,score_WD_min=1] {"text":"Click this!","clickEvent":{"action":"run_command","value":"/say Hello!"}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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