a way to make key press combination run procedure?

Started by soulkeeper02468 on

Topic category: Help with modding (Java Edition)

Last seen on 17:29, 25. Jan 2021
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?

Last seen on 16:47, 29. Oct 2023
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.

Last seen on 15:28, 26. Aug 2022
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?