Add a function in "key binding"

Started by PecsiModsDevv on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Dec 2023
Points:
168

User statistics:

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

Active 1 year ago
Joined Nov 2023
Points:
158

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 14
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"

Active 1 year ago
Joined Dec 2023
Points:
168

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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?