Code:
Variables:
{cooldown.%player%} = 20
on armor change:
if event-item is unbreakable golden helmet named "&x&F&B&E&9&0&0&lᴋ&x&F&B&E&B&1&A&lɪ&x&F&C&E&D&3&3&lɴ&x&F&C&F&0&4&D&lɢ&x&F&D&F&2&6&6&l'&x&F&D&F&4&8&0&ls &x&F&D&F&6&9&9&lᴄ&x&F&E&F&8&B&3&lʀ&x&F&E&F&B&C&C&lᴏ&x&F&F&F&D&E&6&lᴡ&x&F&F&F&F&F&F&lɴ" with custom model data 556:
while player is wearing unbreakable golden helmet named "&x&F&B&E&9&0&0&lᴋ&x&F&B&E&B&1&A&lɪ&x&F&C&E&D&3&3&lɴ&x&F&C&F&0&4&D&lɢ&x&F&D&F&2&6&6&l'&x&F&D&F&4&8&0&ls &x&F&D&F&6&9&9&lᴄ&x&F&E&F&8&B&3&lʀ&x&F&E&F&B&C&C&lᴏ&x&F&F&F&D&E&6&lᴡ&x&F&F&F&F&F&F&lɴ" with custom model data 556:
apply strength 2 without particles to player for 1 seconds
apply hero of the village 3 without particles to player for 1 seconds
apply resistance 2 without particles to player for 1 seconds
wait 1 seconds
#--------------------------------------------------------------------------------------------------
# EVENT
#--------------------------------------------------------------------------------------------------
on rightclick:
while player is wearing unbreakable golden helmet named "&x&F&B&E&9&0&0&lᴋ&x&F&B&E&B&1&A&lɪ&x&F&C&E&D&3&3&lɴ&x&F&C&F&0&4&D&lɢ&x&F&D&F&2&6&6&l'&x&F&D&F&4&8&0&ls &x&F&D&F&6&9&9&lᴄ&x&F&E&F&8&B&3&lʀ&x&F&E&F&B&C&C&lᴏ&x&F&F&F&D&E&6&lᴡ&x&F&F&F&F&F&F&lɴ" with custom model data 556:
if {cooldown.%player%} is equal to 20:
push player forwards with force 1.5
push player upward with force 0.5
make player execute command "particle minecraft:sweep_attack ^1 ^1 ^0.8"
make player execute command "particle minecraft:sweep_attack ^ ^1 ^0.8"
make player execute command "particle minecraft:sweep_attack ^-1 ^1 ^0.8"
loop 20 times:
send action bar "&cCooldown until another dash = %{cooldown.%player%}%" to player
subtract 1 from {cooldown.%player%}
wait 1 second
else:
stop
else:
stop
set {cooldown.%player%} to 20
send action bar "&a&lDash ready" to player
I receive the following error,
"Line 28: (helmet.sk)
'else' has to be placed just after another 'if' or 'else if' section
Can anyone help me out?