I'm confused on how to make a cooldown and how to make it show up on the action bar. For example:
How would I make this have a cooldown and have it show on the action bar?
Code:
on right click:
if player's tool is {customitem:coolsword}:
apply strength 2 to player for 20 seconds
apply speed 2 to player for 20 seconds