Code:
on left click with iron sword:
if player is holding an iron sword named "<blue>Pyro" with nbt "{Unbreakable:1,AttributeModifiers:[{AttributeName:""generic.attack_damage"",Amount:10,Slot:mainhand,Name:""generic.attack_damage"",UUID:[I;-121912,29295,214724,-58590]}],HideFlags:6}":
{Pyro.effect.%player%} is 2:
if unix date of ((metadata tag "cooldown17" of player) ? 0) wasn't less than 30 seconds ago:
set metadata tag "cooldown17" of player to unix timestamp of now
set {_wall} to true
else:
send "<red>Yarr, waitin' for spell to recharge"
while {_wall} is true:
set {_Block} to 3
set {_GetBlock} to block {_Block} blocks infront of player
loop all entities in radius 1 around {_GetBlock}:
damage loop-entity by 10 hearts
wait 0.1 seconds
play mob spawner flames on {_GetBlock}
set {_block2} to 1 block above {_block1}
play mob spawner flames on {_block2}
play mob spawner flames on {_block2} to player