I'm trying to make a command that slows down everyone around the person who clicks with an item. This is what I have so far:
on rightclick:
if player's held item is raw iron:
if name of player's tool is coloured "&7&lRune of Slowness":
cooldown: 10 seconds
cooldown message: You last used this command in %elapsed time% ago, you may use it again in %remaining time%.
command /execute positioned as %player% run effect give @e[distance=..50] slowness 20 7
command /effect clear %player%
[doublepost=1641242536,1641233357][/doublepost](I don't know why the cooldown doesn't work)
on rightclick:
if player's held item is raw iron:
if name of player's tool is coloured "&7&lRune of Slowness":
cooldown: 10 seconds
cooldown message: You last used this command in %elapsed time% ago, you may use it again in %remaining time%.
command /execute positioned as %player% run effect give @e[distance=..50] slowness 20 7
command /effect clear %player%
[doublepost=1641242536,1641233357][/doublepost](I don't know why the cooldown doesn't work)