I know there are lots of ways to test the blocks or entities with testfor commands, but I’m wondering why the testfor chat is not existing. Because when you are making multiplayer world, you of course want to make chat rules like not saying bad words. But there’s no way to control the chat with commands, and if someone said something bad, there’s noway to delete the word from chat. And that’s not useful.
/chat test @a “hello” (!”hello” for if not there) ➡︎It will work just like /testfor command. So you can make some custom commands like /lobby. You can add chain conditional command blocks to add command that will happen if the chat command detected word in chat.
/chat replace @a “I hate you” “I love you” ➡︎Replace words in chat like wth to what the heck.
/chat delete @a “I hate you” ➡︎You can type this in repeat command block to keep chat peaceful.
-New selector ideas
@a[chat=“hi”] selects players who said hi in chat.
These are really nice command that you can actually make custom commands.
Please sign in to leave a comment.
2 Comments