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

Started by _Dergot_ on Sun, 09/20/2020 - 07:54

Topic category: Feature requests and ideas for MCreator

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Add a function in "key binding" by holding the key, not just when pressing and after releasing it.
Sun, 09/20/2020 - 07:54

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.

Last seen on 19:31, 21. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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.