How do I temporarily disable a keybind

Started by Derik Pheonix on

Topic category: Help with modding (Java Edition)

Last seen on 04:56, 23. Jun 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I temporarily disable a keybind

I have multiple ability keybinds that I want to share a cooldown, currently I have it set to give a cooldown potion effect, however I cant figure out how to turn off the keybinds while the effect is active.  Can anybody help?  I'd prefer to keep it as a potion but if anyone can figure out another way I'll change it

Last seen on 04:56, 23. Jun 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Never mind, I figured out a…
Sun, 06/23/2024 - 04:56

Never mind, I figured out a way

For those who are wondering, before the ability, I put it as if entity has active potion effect: cooldown = false, do (ability)