I want to make a cooldown for player to right click with a Redstone and a cooldown of 100 seconds starts. if the player right clicks with Redstone while the cool down is on ,a message pops up to wait till the cooldown ends
Code:
variables:
{redstone.cd} = 100
on right click with redstone:
if {cooldown.item::%player%} is not set:
set {cooldown.item::%player%} to difference between {redstone.cd} and now
else:
if {cooldown.item::%player%} is less than {redstone.cd} seconds:
send "&cYou Need To Wait Ofr the Cooldown to end for you to again use this item"
stop
else:
execute command "/effect give speed 40 1" by player
stop