How to trigger a procedure when right click is released

Started by Desple on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to trigger a procedure when right click is released
Sun, 05/12/2024 - 15:05 (edited)

I'm trying to create a weapon that shoots Wither skulls on right-click, and if the right-click is held for more than 5 seconds, it shoots a custom projectile. The problem is that I have no clue how to do it. I've tried using the GeckoLib 'animated item', but neither of the release right-click triggers seem to work.

Edited by Desple on Sun, 05/12/2024 - 15:05