execute if predicate kiwi2:chance_random_80 run scoreboard players add @s mob_first_skill_counter 1
execute if predicate kiwi2:chance_random_50 run scoreboard players add @s mob_second_skill_counter 1

execute if entity @s[nbt={HurtTime:10s}] run playsound entity.zombie.attack_iron_door hostile @a[distance=..10] ~ ~ ~ 3 0
execute if entity @s[nbt={HurtTime:10s}] if predicate kiwi2:chance_random_50 run particle trial_spawner_detection ~ ~1.5 ~ 0.5 0.5 0.5 0.8 10
execute if score @s mob_first_skill_counter matches 230..250 run title @a[distance=..12] actionbar {"text": "ROAR INCOMING", "color": "red", "bold": true}
execute if score @s mob_first_skill_counter matches 230 run playsound minecraft:entity.arrow.hit_player player @a[distance=..20] ~ ~ ~ 10 0
execute if score @s mob_first_skill_counter matches 230..233 run playsound entity.zombie.attack_iron_door hostile @a[distance=..20] ~ ~ ~ 1 0
execute if score @s mob_first_skill_counter matches 234..235 run playsound entity.zombie.attack_iron_door hostile @a[distance=..20] ~ ~ ~ 1 0.25
execute if score @s mob_first_skill_counter matches 236..238 run playsound entity.zombie.attack_iron_door hostile @a[distance=..20] ~ ~ ~ 1 0.5
execute if score @s mob_first_skill_counter matches 239..240 run playsound entity.zombie.attack_iron_door hostile @a[distance=..20] ~ ~ ~ 1 0.75
execute if score @s mob_first_skill_counter matches 241..243 run playsound entity.zombie.attack_iron_door hostile @a[distance=..20] ~ ~ ~ 1 1
execute if score @s mob_first_skill_counter matches 244..245 run playsound entity.zombie.attack_iron_door hostile @a[distance=..20] ~ ~ ~ 1 1.25
execute if score @s mob_first_skill_counter matches 246..248 run playsound entity.zombie.attack_iron_door hostile @a[distance=..20] ~ ~ ~ 1 1.5
execute if score @s mob_first_skill_counter matches 249..250 run playsound entity.zombie.attack_iron_door hostile @a[distance=..20] ~ ~ ~ 1 1.75
execute if score @s mob_first_skill_counter matches 250 run playsound entity.zombie.hurt hostile @a[distance=..50] ~ ~ ~ 10 0
execute if score @s mob_first_skill_counter matches 250 run playsound entity.ravager.attack hostile @a[distance=..50] ~ ~ ~ 10 0
execute if score @s mob_first_skill_counter matches 250 run playsound entity.ravager.celebrate hostile @a[distance=..50] ~ ~ ~ 10 0.75
execute if score @s mob_first_skill_counter matches 250 run playsound entity.pillager.celebrate hostile @a[distance=..50] ~ ~ ~ 10 0.5
execute if score @s mob_first_skill_counter matches 250..260 run particle block_crumble{block_state:gravel} ~ ~ ~ 4 0.5 4 1 50
execute if score @s mob_first_skill_counter matches 250..260 run particle dust_pillar{block_state:gravel} ~ ~ ~ 4 0 4 1 100
execute if score @s mob_first_skill_counter matches 250..260 as @a[distance=..10] run damage @s 1 kiwi2:crypt_giant_roar by @e[type=husk,tag=wave_mob,tag=crypt_giant,limit=1,sort=nearest]

execute if score @s mob_first_skill_counter matches 260.. run scoreboard players reset @s mob_first_skill_counter

execute if score @s mob_second_skill_counter matches 300 run summon husk ~ ~ ~ {ArmorItems:[{id:"minecraft:leather_boots",count:1,components:{"minecraft:dyed_color":9211020}},{id:"minecraft:leather_leggings",count:1,components:{"minecraft:dyed_color":10066329}},{id:"minecraft:leather_chestplate",count:1,components:{"minecraft:dyed_color":10724259}},{id:"minecraft:gravel",count:1}],Tags:["wave_mob","gravel_giant_spawn","gravel_giant_just_spawn"],attributes:[{id:"minecraft:scale",base:0.8},{id:"max_health",base:10}],DeathLootTable:""}
execute if score @s mob_second_skill_counter matches 300 run summon husk ~ ~ ~ {ArmorItems:[{id:"minecraft:leather_boots",count:1,components:{"minecraft:dyed_color":9211020}},{id:"minecraft:leather_leggings",count:1,components:{"minecraft:dyed_color":10066329}},{id:"minecraft:leather_chestplate",count:1,components:{"minecraft:dyed_color":10724259}},{id:"minecraft:gravel",count:1}],Tags:["wave_mob","gravel_giant_spawn","gravel_giant_just_spawn"],attributes:[{id:"minecraft:scale",base:0.8},{id:"max_health",base:10}],DeathLootTable:""}
execute if score @s mob_second_skill_counter matches 300 run summon husk ~ ~ ~ {ArmorItems:[{id:"minecraft:leather_boots",count:1,components:{"minecraft:dyed_color":9211020}},{id:"minecraft:leather_leggings",count:1,components:{"minecraft:dyed_color":10066329}},{id:"minecraft:leather_chestplate",count:1,components:{"minecraft:dyed_color":10724259}},{id:"minecraft:gravel",count:1}],Tags:["wave_mob","gravel_giant_spawn","gravel_giant_just_spawn"],attributes:[{id:"minecraft:scale",base:0.8},{id:"max_health",base:10}],DeathLootTable:""}
execute if score @s mob_second_skill_counter matches 300 run summon husk ~ ~ ~ {ArmorItems:[{id:"minecraft:leather_boots",count:1,components:{"minecraft:dyed_color":9211020}},{id:"minecraft:leather_leggings",count:1,components:{"minecraft:dyed_color":10066329}},{id:"minecraft:leather_chestplate",count:1,components:{"minecraft:dyed_color":10724259}},{id:"minecraft:gravel",count:1}],Tags:["wave_mob","gravel_giant_spawn","gravel_giant_just_spawn"],attributes:[{id:"minecraft:scale",base:0.8},{id:"max_health",base:10}],DeathLootTable:""}
execute if score @s mob_second_skill_counter matches 300 run summon husk ~ ~ ~ {ArmorItems:[{id:"minecraft:leather_boots",count:1,components:{"minecraft:dyed_color":9211020}},{id:"minecraft:leather_leggings",count:1,components:{"minecraft:dyed_color":10066329}},{id:"minecraft:leather_chestplate",count:1,components:{"minecraft:dyed_color":10724259}},{id:"minecraft:gravel",count:1}],Tags:["wave_mob","gravel_giant_spawn","gravel_giant_just_spawn"],attributes:[{id:"minecraft:scale",base:0.8},{id:"max_health",base:10}],DeathLootTable:""}
execute if score @s mob_second_skill_counter matches 300 if predicate kiwi2:chance_random_50 run summon husk ~ ~ ~ {ArmorItems:[{id:"minecraft:leather_boots",count:1,components:{"minecraft:dyed_color":9211020}},{id:"minecraft:leather_leggings",count:1,components:{"minecraft:dyed_color":10066329}},{id:"minecraft:leather_chestplate",count:1,components:{"minecraft:dyed_color":10724259}},{id:"minecraft:gravel",count:1}],Tags:["wave_mob","gravel_giant_spawn","gravel_giant_just_spawn"],attributes:[{id:"minecraft:scale",base:0.8},{id:"max_health",base:10}],DeathLootTable:""}
execute if score @s mob_second_skill_counter matches 300 if predicate kiwi2:chance_random_50 run summon husk ~ ~ ~ {ArmorItems:[{id:"minecraft:leather_boots",count:1,components:{"minecraft:dyed_color":9211020}},{id:"minecraft:leather_leggings",count:1,components:{"minecraft:dyed_color":10066329}},{id:"minecraft:leather_chestplate",count:1,components:{"minecraft:dyed_color":10724259}},{id:"minecraft:gravel",count:1}],Tags:["wave_mob","gravel_giant_spawn","gravel_giant_just_spawn"],attributes:[{id:"minecraft:scale",base:0.8},{id:"max_health",base:10}],DeathLootTable:""}
execute if score @s mob_second_skill_counter matches 300 run scoreboard players add @s mob_second_skill_counter 1
execute if score @s mob_second_skill_counter matches 301 run spreadplayers ~ ~ 1 6 false @e[type=husk,tag=gravel_giant_just_spawn]
execute if score @s mob_second_skill_counter matches 305 at @e[tag=gravel_giant_just_spawn] run particle dust_pillar{block_state:gravel} ~ ~ ~ 0.5 0.5 0.5 1 25
execute if score @s mob_second_skill_counter matches 305 run tag @e[tag=gravel_giant_just_spawn] remove gravel_giant_just_spawn
execute if score @s mob_second_skill_counter matches 305.. run scoreboard players reset @s mob_second_skill_counter