Detect text from chat messages

Started by Orandza on

Topic category: Help with modding (Java Edition)

Last seen on 09:43, 25. Apr 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detect text from chat messages

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.

https://ibb.co/XV7Wr4r

Last seen on 10:38, 22. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Should be simple enough. Use…
Tue, 12/27/2022 - 17:25

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.

Last seen on 23:55, 6. Oct 2023
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do you think you could send…
Fri, 10/06/2023 - 00:29

Do you think you could send an image of what it should look like, I'm having the same problem