Started by
Orandza
on
Topic category: Help with Minecraft modding (Java Edition)
So I've been trying to make a procedure that performs a specific action if a player sends a message containing specific words. However, I see absolutely no way of getting the player sent messages in any way. Not a single block looks like it would do what I need it to do. Is there any way to achieve what I'm asking for? Even if it's with code(although I would have to be told what to do exactly), I'd appreciate it.
Should be simple enough. Use the 'when player sends chat' procedure trigger- this will provide a 'text' custom variable that consists of whatever message the player sent. Then, use an if block with a 'does text contain' trigger from the text tab, replacing the target text with the variable supplied by the trigger, and the content text with whatever words you want to detect. You can then execute whatever action you want.
Do you think you could send an image of what it should look like, I'm having the same problem
This reddit post helps
https://www.reddit.com/r/MCreator/comments/115mjmh/how_do_i_detect_a_se…