Add a function in "key binding"

Started by PecsiModsDevv on

Topic category: Help with modding (Java Edition)

Last seen on 21:38, 2. May 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Add a function in "key binding"


Add a function in "key binding" by holding down the key, not just by pressing it and then releasing it, I want to do this so that when I am on my entity, which is a horse, when I hold the key, it starts to levitate, PLEASE HELP ME Nobody answers me, if you send a photo of the procedure I would appreciate it.

Last seen on 10:33, 29. Apr 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This can be accomplished by…
Fri, 12/22/2023 - 23:34

This can be accomplished by adding levitation when "pressing the key" and then removing it on "releasing the key"

Last seen on 21:38, 2. May 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried it but it still…
Sat, 12/23/2023 - 01:08


I tried it but it still doesn't work, in the first procedure I added the levitation potion effect for 20 ticks and in the second procedure, which would be to release the key, I put out the potion effect, but what I don't understand is if this has to be put in the "events" section, if you would be so kind, could you send me a photo?