This question already has an answer here:

Is it possible to make a command block respond to something being said in the chat? Or even better - make it respond to a message - /msg or /tell. I want to say something in the chat and then a comparator next to the block emits a redstone signal. Is this possible?

marked as duplicate by IronAnvil, Schism, Timmy Jim, Dragonrage, user973 Apr 10 '18 at 17:14

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.



Command blocks can't respond to arbitrary text.

For OP players you can add a custom gamerule that they can set, but that's not completely arbitrary text, only works with OP permissions and will get removed in 1.13.

You can use tellraw with a clickable text, that's probably the best option for you, even though it's not what you asked for. Search for tellraw in the Minecraft wiki, there you can see the syntax and there's a link to the JSON format.

  • He can use /say too inside command block. But, will appear strange text. I recommend too using tellraw – FRNathan13 Apr 10 '18 at 23:22
  • @Nathan /say has no JSON formatting, so you can't make clickable text with it. – Fabian Röling Apr 11 '18 at 6:11
  • Yes. I recomment too using Chat Component API in Spigot (plugins) instead of traditional vanilla :V – FRNathan13 Apr 12 '18 at 11:53

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