a way to make key press combination run procedure?

Started by soulkeeper02468 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
a way to make key press combination run procedure?

I'm trying to make it so that if i hit a key bind combo(ex:j,k,i) it runs a procedure, or hitting these keys in quick succession: L,k,J, it runs a command is there any possible way of doing this?

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could make procedures…
Sun, 01/24/2021 - 23:42

You could make procedures paired with boolean variables for each key to test when it is pressed. Using a separate procedure, check if all of the keys are pressed (by checking the values of the variables) and then trigger whatever action you need.

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
english or how?
Sat, 11/13/2021 - 21:12

english or how?