How to use the /testfor command to detect what a player says in chat [duplicate]
//ads -- adsterra.com -- native banner
?>
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] - Happy middle aged woman in casual clothes focusing on screen and interacting with smartphone while ironing clothes in light living room of modern apartment](/assets/images/how_to_use_the_testfor_command_to_detect_what_a_player_says_in_chat_duplicate_1.jpeg)
![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] - Full body of young focused Asian male in casual wear sitting on bench in park and browsing internet on tablet](/assets/images/how_to_use_the_testfor_command_to_detect_what_a_player_says_in_chat_duplicate_2.jpeg)
![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 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](/assets/images/how_to_use_the_testfor_command_to_detect_what_a_player_says_in_chat_duplicate_3.jpeg)
How do I use the Testfor player command?
How to Enter the CommandMinecraft 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
