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

Started by crazester899 on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Mar 2020
Points:
779

User statistics:

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

Active 1 year ago
Joined Oct 2020
Points:
1630

User statistics:

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

Active 3 years ago
Joined Mar 2022
Points:
492

User statistics:

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

you could try setting up a tick system

Active 4 weeks ago
Joined Sep 2021
Points:
570

User statistics:

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

Active 3 years ago
Joined Mar 2020
Points:
779

User statistics:

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

Thanks to everyone