activation of the procedure when writing a chat message

Started by Heroi4k on

Topic category: Help with modding (Java Edition)

Last seen on 08:29, 21. Mar 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
activation of the procedure when writing a chat message

Hi all! I need to make it so in my mod that when I write a certain message in the chat, the required procedure occurs. I know about the global trigger “the player used the chat”, but I don’t know how to make it so that when a certain message occurs(

Last seen on 18:26, 16. Jun 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Since the "when player used…
Sat, 12/30/2023 - 00:28

Since the "when player used the chat" is a global trigger, on the bottom left part of the procedure menu, you'll find the Provided Dependencies that him allows you to use, so you can work with that:

  1. Double left click the "text" dependency, it will give you a text block.
  2. On the logic procedure blocks, search the one for texts (the green one)
  3. Go on the text procedure blocks and get the empty text one
  4. Write what you want to check for in the empty text
  5. Put the text dependency alongside the text you want to check in the logic one
  6. Put it all on a if
  7. Call your procedure
  8. If you want to not show what the player type, on the advanced tab of procedure blocks, search for the "Cancel event that called global trigger"

    After all of that, it should probably look like this (Ignore the extra detection for the armor lol):

     

     

     

Last seen on 08:29, 21. Mar 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
THANKS!!!!!!!!!  
Sat, 12/30/2023 - 09:55

THANKS!!!!!!!!!