particle soul_fire_flame ~ ~1.8 ~ 0.15 0.2 0.15 0 2
particle soul ~ ~1 ~0.5 1.5 1 1.5 0.01 1
scoreboard players add @s mob_first_skill_counter 1
scoreboard players add @s mob_second_skill_counter 1
execute if score @s mob_first_skill_counter matches 50 run function kiwi2:custom_mobs_fx/lich/lich_evoker_fang_line
execute if score @s mob_first_skill_counter matches 250 at @r[gamemode=survival] run summon evoker_fangs ~ ~ ~1
execute if score @s mob_first_skill_counter matches 250 at @r[gamemode=survival] run summon evoker_fangs ~1 ~ ~
execute if score @s mob_first_skill_counter matches 250 at @r[gamemode=survival] run summon evoker_fangs ~ ~ ~-1
execute if score @s mob_first_skill_counter matches 250 at @r[gamemode=survival] run summon evoker_fangs ~-1 ~ ~
execute if score @s mob_first_skill_counter matches 250 at @r[gamemode=survival] run summon evoker_fangs ~ ~ ~
execute if score @s mob_first_skill_counter matches 250 as @a[gamemode=survival] at @s run function kiwi2:custom_mobs_fx/lich/lich_evoker_fang_tower
execute if score @s mob_first_skill_counter matches 250 if predicate kiwi2:chance_random_10 as @e[type=skeleton,tag=lich_spawn,limit=15] at @s run function kiwi2:custom_mobs_fx/lich/lich_evoker_fang_tower
execute if score @s mob_first_skill_counter matches 250 at @a run playsound entity.vex.charge master @a ~ ~ ~ 1 0.5
execute if score @s mob_first_skill_counter matches 250 run scoreboard players reset @s mob_first_skill_counter
execute if score @s mob_second_skill_counter matches 250 run summon skeleton ~ ~ ~ {Tags:["wave_mob","lich_spawn","new_lich_spawn"],HandItems:[{id:"minecraft:stone_sword",count:1},{}],DeathTime:20s,DeathLootTable:"",attributes:[{id:"attack_damage",base:4}]}
execute if score @s mob_second_skill_counter matches 250 run summon skeleton ~ ~ ~ {Tags:["wave_mob","lich_spawn","new_lich_spawn"],HandItems:[{id:"minecraft:bow",count:1},{}],DeathTime:20s,DeathLootTable:"",attributes:[{id:"attack_damage",base:2}]}
execute if score @s mob_second_skill_counter matches 250 run summon skeleton ~ ~ ~ {Tags:["wave_mob","lich_spawn","new_lich_spawn"],HandItems:[{},{}],DeathTime:20s,DeathLootTable:"",attributes:[{id:"attack_damage",base:2}]}
execute if score @s mob_second_skill_counter matches 250 run summon skeleton ~ ~ ~ {Tags:["wave_mob","lich_spawn","new_lich_spawn"],HandItems:[{id:"minecraft:stone_sword",count:1},{}],DeathTime:20s,DeathLootTable:"",attributes:[{id:"attack_damage",base:4}]}
execute if score @s mob_second_skill_counter matches 250 run summon skeleton ~ ~ ~ {Tags:["wave_mob","lich_spawn","new_lich_spawn"],HandItems:[{id:"minecraft:bow",count:1},{}],DeathTime:20s,DeathLootTable:"",attributes:[{id:"attack_damage",base:2}]}
execute if score @s mob_second_skill_counter matches 250 run summon skeleton ~ ~ ~ {Tags:["wave_mob","lich_spawn","new_lich_spawn"],HandItems:[{},{}],DeathTime:20s,DeathLootTable:"",attributes:[{id:"attack_damage",base:2}]}
execute if score @s mob_second_skill_counter matches 250 run spreadplayers ~ ~ 1 8 false @e[tag=new_lich_spawn]
execute if score @s mob_second_skill_counter matches 250 run tag @e[tag=new_lich_spawn] remove new_lich_spawn
execute if score @s mob_second_skill_counter matches 250 at @a run playsound entity.illusioner.cast_spell master @a ~ ~ ~ 1 1.5
execute if score @s mob_second_skill_counter matches 250 run scoreboard players reset @s mob_second_skill_counter
execute if entity @s[nbt={HurtTime:1s}] run particle dust{color:[0.098,0.784,0.812],scale:2} ~ ~1 ~ 0.25 1 0.25 0 30