How to trigger a procedure when right click is released

Started by Desple on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined May 2024
Points:
87

User statistics:

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