If key pressed block?

Started by dsadasdas on

Topic category: Help with Minecraft modding (Java Edition)

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?

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.

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But this will require to…
Wed, 05/15/2024 - 19:36

But this will require to make a key biding, and it will appear in the game configs, right?