Right Click happens twice?

Started by ItsJustKen on

Topic category: Help with modding (Java Edition)

Last seen on 14:38, 14. Apr 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Right Click happens twice?

https://imgur.com/a/ZAuR4IC

I made a simple procedure that plays one of multiple sounds on right click with a cool down.
But whenever I right click, it plays two of the sounds THEN cools down, which leads me to believe it's registering two clicks in rapid succession before cooling.

Is there any way besides what I've done to only allow ONE input?

Last seen on 14:13, 29. Apr 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You need to put the entireā€¦
Thu, 04/11/2024 - 13:27

You need to put the entire procedure in an "if" block, then attach a "not" block, then "is provided world client-side" That fixes a lot of glitches, including double click registration.