Code:
on right click:
if event-item is diamond sword:
if name of event-item is "&b&lWarden Sword":
set {_warden} to difference between {did.%player%} and now
if {_warden} < 10 seconds:
send "&cYou are on cooldown. Remaining is %difference between {_warden} and 10 seconds%" to player
cancel event
stop
play sound "minecraft:entity.warden.sonic_boom" with volume 1 to all players within 6 blocks around the player
loop blocks between block 1 infront of player and block 20 infront of player:
make 10 of sonic boom at loop-block
loop entities in radius 1.5 of loop-block:
damage loop-entity by 15 if loop-entity is not player
set {did.%player%} to now
So the skript broke complitly when i added a cooldown that dosent even work.