Add a function in "key binding" by holding the key, not just when pressing and after releasing it.

Started by _Dergot_ on

Topic category: Feature requests and ideas for MCreator

Last seen on 05:49, 2. Oct 2020
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add a function in "key binding" by holding the key, not just when pressing and after releasing it.

Hello, please make a key hold in mod element "key binding", to when you hold down the key there is a constant action until you release the key. For example, when you hold down the "j" key, give the player the night vision effect for 1 second.

Sorry for my English. I don't know much English.

Use player variables to hold…
Sun, 09/20/2020 - 08:13

Use player variables to hold pressed and released state and if state is pressed, do something on player tick update using a global trigger.