How to use the /testfor command to detect what a player says in chat [duplicate]

How to use the /testfor command to detect what a player says in chat [duplicate] - Stylish adult female using smartphone on street

How do I use the /testfor command in a command block to test for a specific word that a Minecraft player playing on the server says. For my example, if a player says:

[Player] - Hi

The command block then says:

[Command Block] - Hello.

Please help, just trying to create a cool command =) {If This Works Please Tell Me}



Best Answer

You just can't.

As per current, command blocks cannot read from the chat line.

Read this answer for more information.




Pictures about "How to use the /testfor command to detect what a player says in chat [duplicate]"

How to use the /testfor command to detect what a player says in chat [duplicate] - Happy middle aged woman in casual clothes focusing on screen and interacting with smartphone while ironing clothes in light living room of modern apartment
How to use the /testfor command to detect what a player says in chat [duplicate] - Full body of young focused Asian male in casual wear sitting on bench in park and browsing internet on tablet
How to use the /testfor command to detect what a player says in chat [duplicate] - Sportsmen in red and blue waistcoats chatting on floor of spacious curling arena



How do I use the Testfor player command?

How to Enter the Command
  • Test if Players are within 10 blocks. In this example, we will test to see if there are any players within a 10 block radius with the following command: /testfor @a[r=10] ...
  • Test if Mooshrooms are within 50 blocks. ...
  • Test if Nearest Player is at Level 20 experience.




  • Minecraft Redstone Tutorial | How to use testfor commands in MCPE!




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Andrea Piacquadio, Andrea Piacquadio, Armin Rimoldi, SHVETS production