function kiwi2:custom_mobs_fx/break_blocks_light_2x6
scoreboard players add @s mob_first_skill_counter 1
scoreboard players add @s mob_second_skill_counter 1
execute if entity @s[nbt={HurtTime:10s}] run playsound minecraft:entity.iron_golem.repair master @a[distance=..60] ~ ~ ~ 2 0.5
execute if entity @s[nbt={HurtTime:10s}] run playsound minecraft:item.shield.break master @a[distance=..60] ~ ~ ~ 2 0.7
execute if score @s mob_first_skill_counter matches 550 run playsound minecraft:block.dispenser.dispense master @a[distance=..60] ~ ~ ~ 2 0.5
execute if score @s mob_first_skill_counter matches 550 run particle minecraft:large_smoke ~ ~3 ~ 1 1 1 0 20
execute if score @s mob_first_skill_counter matches 560 run playsound minecraft:block.dispenser.dispense master @a[distance=..60] ~ ~ ~ 2 0.55
execute if score @s mob_first_skill_counter matches 560 run particle minecraft:large_smoke ~ ~3 ~ 1 1 1 0 20
execute if score @s mob_first_skill_counter matches 570 run playsound minecraft:block.dispenser.dispense master @a[distance=..60] ~ ~ ~ 2 0.5
execute if score @s mob_first_skill_counter matches 570 run particle minecraft:large_smoke ~ ~3 ~ 1 1 1 0 20
execute if score @s mob_first_skill_counter matches 580 run playsound minecraft:block.dispenser.dispense master @a[distance=..60] ~ ~ ~ 2 0.5
execute if score @s mob_first_skill_counter matches 580 run particle minecraft:large_smoke ~ ~3 ~ 1 1 1 0 20
execute if score @s mob_first_skill_counter matches 590 run playsound minecraft:block.dispenser.dispense master @a[distance=..60] ~ ~ ~ 2 0.5
execute if score @s mob_first_skill_counter matches 590 run particle minecraft:large_smoke ~ ~3 ~ 1 1 1 0 20
execute if score @s mob_first_skill_counter matches 600 run playsound minecraft:entity.firework_rocket.launch master @a[distance=..60] ~ ~ ~ 2 0.5
execute if score @s mob_first_skill_counter matches 600 run tag @r[sort=random] add automaton_missile_target
execute if score @s mob_first_skill_counter matches 600 run title @a[tag=automaton_missile_target] actionbar {"text": "! DANGER !", "color": "red", "bold": true}
execute if score @s mob_first_skill_counter matches 600 at @a[tag=automaton_missile_target] run playsound minecraft:entity.arrow.hit_player master @a[tag=automaton_missile_target] ~ ~ ~ 1 .1
execute if score @s mob_first_skill_counter matches 600 at @r[tag=automaton_missile_target] run summon tnt ~ ~15.5 ~ {fuse:10}
execute if score @s mob_first_skill_counter matches 600 at @r[tag=automaton_missile_target] run summon tnt ~ ~15 ~ {fuse:60,Motion:[0.01, 0.0, 0.0]}
execute if score @s mob_first_skill_counter matches 600 at @r[tag=automaton_missile_target] run summon tnt ~ ~15 ~ {fuse:60,Motion:[-0.01, 0.0, 0.0]}
execute if score @s mob_first_skill_counter matches 600 at @r[tag=automaton_missile_target] run summon tnt ~ ~15 ~ {fuse:60,Motion:[0.0, 0.0, 0.01]}
execute if score @s mob_first_skill_counter matches 600 at @r[tag=automaton_missile_target] run summon tnt ~ ~15 ~ {fuse:60,Motion:[0.0, 0.0, -0.01]}
execute if score @s mob_first_skill_counter matches 600 as @a[tag=automaton_missile_target] run tag @s remove automaton_missile_target
execute if score @s mob_first_skill_counter matches 600 run scoreboard players reset @s mob_first_skill_counter

execute if score @s mob_second_skill_counter matches 800 run function kiwi2:custom_mobs_fx/automaton/automaton_homing_arrows
execute if score @s mob_second_skill_counter matches 802 run function kiwi2:custom_mobs_fx/automaton/automaton_homing_arrows
execute if score @s mob_second_skill_counter matches 804 run function kiwi2:custom_mobs_fx/automaton/automaton_homing_arrows
execute if score @s mob_second_skill_counter matches 806 run function kiwi2:custom_mobs_fx/automaton/automaton_homing_arrows
execute if score @s mob_second_skill_counter matches 808 run function kiwi2:custom_mobs_fx/automaton/automaton_homing_arrows
execute if score @s mob_second_skill_counter matches 810 run function kiwi2:custom_mobs_fx/automaton/automaton_homing_arrows
execute if score @s mob_second_skill_counter matches 812 run function kiwi2:custom_mobs_fx/automaton/automaton_homing_arrows
execute if score @s mob_second_skill_counter matches 814 run function kiwi2:custom_mobs_fx/automaton/automaton_homing_arrows
execute if score @s mob_second_skill_counter matches 816 run function kiwi2:custom_mobs_fx/automaton/automaton_homing_arrows
execute if score @s mob_second_skill_counter matches 818 run function kiwi2:custom_mobs_fx/automaton/automaton_homing_arrows
execute if score @s mob_second_skill_counter matches 820 run function kiwi2:custom_mobs_fx/automaton/automaton_homing_arrows_tick
execute if score @s mob_second_skill_counter matches 820 run playsound minecraft:entity.firework_rocket.launch master @a[distance=..60] ~ ~ ~ 2 1
execute if score @s mob_second_skill_counter matches 820 run particle firework ~ ~3 ~ 0.7 0.5 0.7 0.5 35
execute if score @s mob_second_skill_counter matches 820.. store result score @s mob_second_skill_counter run random value 0..100