How do I put a delay on right clicking whit an item

Started by crazester899 on

Topic category: Help with modding (Java Edition)

Last seen on 09:10, 18. Apr 2022
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I put a delay on right clicking whit an item

So I made a double jump by simply applying some levitation when a item I made is right clicked.

This worked well until I realized you can click right click whitout limit and spam it to fly. 

So I was wondering if I could make a delay between every right click in some way or in general some way to evitate the player flying. Thanks

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
normal base item cooldowns…
Sun, 03/27/2022 - 19:04

normal base item cooldowns like shields or ender pearls, or a timer made by nbts/variables etc

Last seen on 19:13, 2. Nov 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could try setting up a…
Sun, 03/27/2022 - 20:29

you could try setting up a tick system

Last seen on 07:06, 11. Dec 2023
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There's a cooldown procedure…
Tue, 03/29/2022 - 05:47

There's a cooldown procedure block that you can add to the end of your procedure

Last seen on 09:10, 18. Apr 2022
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks to everyone  
Tue, 03/29/2022 - 15:19

Thanks to everyone