Item Cooldowns Not Working (Due to Item in Off-Hand) Fix - Tutorial

Started by MinoBanana on

Topic category: User side tutorials

Last seen on 02:47, 6. May 2024
Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item Cooldowns Not Working (Due to Item in Off-Hand) Fix - Tutorial

 

MCREATOR's cooldown system doesn't always work. Simply holding an item in your off-hand will completely ignore the items "right-click" procedure cooldown and allows you to infinitely use an items "ability." To circumvent this issue follow these simple steps with reference to the provided example item: 

 

I will be using my item/tool "Bee Sword" during this tutorial. Begin by navigating to the "Triggers" page of the item and find "When right-click (entity pos.)." Presumably, this is the procedure linked to the items ability that is causing the cool-down issues. 

         Error Loading Image 

 

My "Right-Click" procedure looks like this: 


 

This cooldown system works, so long as the player does not have an item in their off-hand. If they do, the right-click event is triggered by the item in the off-hand, and will will still run the procedure ignoring any cooldowns. Thus, to solve this problem begin by creating a new "Potion Effect":

 

Copy these properties, using a blank PNG as the texture:

 

Return to your "Right-Click" procedure and update it like this. Ensure that the potion ticks are the same as the cooldown ticks: 

 

Now your cooldowns should work properly, even with an item in your off-hand.