If key pressed block?

Started by dsadasdas on

Topic category: Help with modding (Java Edition)

Last seen on 08:13, 15. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If key pressed block?

Is there any if key pressed block? there is keybinds but i dont want to use a keybind, as it would show in controls (i think) and keybinds dont work for everything, so is there a block for this or a plugin that adds it? Oh yeah, and if keybinds are the only way, DO keybinds show in controls?

Last seen on 08:13, 15. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
anyone?
Thu, 03/21/2024 - 11:03

anyone?

You can store key press…
Fri, 03/22/2024 - 16:53

You can store key press status in a variable and check this variable where you want to check key press status.

Last seen on 17:32, 23. Apr 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To explain further, create a…
Fri, 03/22/2024 - 17:01

To explain further, create a global player persistent logic variable that defaults to false. On key pressed, set variable to true. On key released, set variable to false again. You can check the variable to check for key currently presses.