#Cooldown Help

1 messages · Page 1 of 1 (latest)

smoky yoke
#
   executable by: op
   trigger:
      set {_mace} to mace named "&eEnchanted Golden Apple Mace"
      set lore of {_mace} to "&8Right Click to Notch"
      enchant {_mace} with breach 4
      give player {_mace}

on right click:
   if player's tool is mace named "&eEnchanted Golden Apple Mace":
      if lore of player's tool contains "&8Right Click to Notch":
         if player's tool is enchanted with breach 4:

            send "Mace activated!" to player
            apply potion of absorption 4 to player for 120 seconds
            apply potion of regeneration 2 to player for 30 seconds
            apply potion of fire resistance 1 to player for 5 minutes
            apply potion of resistance 1 to player for 5 minutes

#

I want to make an Cooldown between each time you right click.