Player executes a vanilla command

Started by odchody on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Player executes a vanilla command
Wed, 07/02/2025 - 14:31 (edited)

I would like to know if there's a way to start my procedure after the player executes a specific vanilla command; and if that's possible, addictionally reurtn the value used in the command.

Edited by odchody on Wed, 07/02/2025 - 14:31
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Klemen what do I do next?…
Wed, 07/02/2025 - 21:11

@Klemen what do I do next? Is there a way to check for a specific command?

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wait I think I figured it…
Wed, 07/02/2025 - 21:34

Wait I think I figured it out. Btw thank you Klemen. If anyone needs it, all you need to do is:

1. Create a procedure with "Command Executed" global trigger

2. On the right panel, find Provided dependencies (it's on the lowest section)

3. One of the dependencies should be a green text saying "command" - double click on it

4. You'll get a Text Dependency block that will "tell" the procedure what command is executed.