i want to make it so when you rightclick the beehive it has a cooldown so you cant just spam it
Code:
on right click on a beehive:
chance of 10%:
give player bamboo named "&3Lockpick"
send "You Found A LockPick With A &l10 &rprocent Chance! Wow" to player
chance of 5%:
give player speed potion named "&3Vitamins"
send "You Found Vitamins With A &l5 &rprocent Chance! Wow" to player
chance of 20%:
give player 10 sunflowers named "&3Coin"
send "You Found Coins With A &l20 &rprocent Chance! Wow" to player
on player consume potion:
cancel event
apply potion of swiftness to the player for 10 seconds
remove 1 swiftness potion from the inventory of the player