Basically, I would like to create a word counter on minecraft 1.21. So I created a scoreboard objective with the dummy criteria, but Is it possible to really trigger a command on a specific word said in the chat ?
Reading chat in MC is not possible without the use of plugins or mods. You can use a trigger objective so that all players can use it, but it is still a command they need to run.
# Setup
/scoreboard objectives add command1 trigger
# Repeating
/scoreboard players enable @a command1
# Players could then use this command any time
/trigger command1
# Test for players who have triggered the command
/execute as @a[scores={command1=1..}] run say Triggered Command 1!
/scoreboard players reset @a command1
Basically, I would like to create a word counter on minecraft 1.21. So I created a scoreboard objective with the dummy criteria, but Is it possible to really trigger a command on a specific word said in the chat ?
Hello,
Reading chat in MC is not possible without the use of plugins or mods. You can use a trigger objective so that all players can use it, but it is still a command they need to run.
Hope this helps!
-TechnoBro03