# Undead Knight
execute if score world WaveCounter matches 19 if score world BossRoll matches 1 at @a run particle minecraft:sculk_soul ~ ~ ~ 20 10 20 0.01 2
execute if score world WaveCounter matches 19 if score world BossRoll matches 1 if score world NextWaveTimer matches 600.. at @a run particle minecraft:soul_fire_flame ~ ~ ~ 20 10 20 0.01 2

# Undead Knight
execute if score world WaveCounter matches 19 if score world BossRoll matches 2 at @a run particle minecraft:raid_omen ~ ~ ~ 20 10 20 0.01 2
execute if score world WaveCounter matches 19 if score world BossRoll matches 2 if score world NextWaveTimer matches 1800 at @a run playsound minecraft:entity.ravager.step master @a 0 1 0 3 0.5
execute if score world WaveCounter matches 19 if score world BossRoll matches 2 if score world NextWaveTimer matches 1840 at @a run playsound minecraft:entity.ravager.step master @a 0 1 0 3 0.5
execute if score world WaveCounter matches 19 if score world BossRoll matches 2 if score world NextWaveTimer matches 1880 at @a run playsound minecraft:entity.ravager.step master @a 0 1 0 3 0.5
execute if score world WaveCounter matches 19 if score world BossRoll matches 2 if score world NextWaveTimer matches 1920 at @a run playsound minecraft:entity.ravager.step master @a 0 1 0 3 0.5
execute if score world WaveCounter matches 19 if score world BossRoll matches 2 if score world NextWaveTimer matches 1940 at @a run playsound minecraft:entity.ravager.step master @a 0 1 0 3 0.5
execute if score world WaveCounter matches 19 if score world BossRoll matches 2 if score world NextWaveTimer matches 1960 at @a run playsound minecraft:entity.ravager.step master @a 0 1 0 3 0.5
execute if score world WaveCounter matches 19 if score world BossRoll matches 2 if score world NextWaveTimer matches 1980 at @a run playsound minecraft:entity.ravager.step master @a 0 1 0 3 0.5
execute if score world WaveCounter matches 19 if score world BossRoll matches 2 if score world NextWaveTimer matches 1999 at @a run playsound minecraft:entity.ravager.step master @a 0 1 0 3 0.5

# Goliath Man-Eater
execute if score world WaveCounter matches 39 if score world NextWaveTimer matches 500..1999 at @a run particle minecraft:dust_pillar{block_state:"stone"} ~ ~ ~ 10 0.1 10 0.01 2
execute if score world WaveCounter matches 39 if score world NextWaveTimer matches 1000..1999 at @a run particle minecraft:dust_pillar{block_state:"dirt"} ~ ~ ~ 10 0.1 10 0.01 2
execute if score world WaveCounter matches 39 if score world NextWaveTimer matches 1500..1999 if predicate kiwi2:chance_random_10 run playsound block.gravel.break master @a 0 1 0 10000 0.1

# Cinderstorm
execute if score world WaveCounter matches 59 if score world NextWaveTimer matches 500..1999 at @a run particle minecraft:flame ~ ~ ~ 10 10 10 0.01 3
execute if score world WaveCounter matches 59 if score world NextWaveTimer matches 1000..1999 at @a run particle minecraft:trial_spawner_detection ~ ~ ~ 10 10 10 0.01 3
execute if score world WaveCounter matches 59 if score world NextWaveTimer matches 1500..1999 if predicate kiwi2:chance_random_2 run playsound minecraft:block.lava.extinguish master @a 0 1 0 10 2

# Forsaken Lich
execute if score world WaveCounter matches 79 at @a run particle minecraft:enchant ~ ~ ~ 10 5 10 0.01 4
execute if score world WaveCounter matches 79 if score world NextWaveTimer matches 500..1999 at @a run particle dripping_obsidian_tear ~ ~ ~ 20 10 20 0.01 1
execute if score world WaveCounter matches 79 if score world NextWaveTimer matches 1000 run playsound minecraft:block.chain.break master @a 0 1 0 10000 .1
execute if score world WaveCounter matches 79 if score world NextWaveTimer matches 1200 run playsound minecraft:block.chain.break master @a 0 1 0 10000 .1
execute if score world WaveCounter matches 79 if score world NextWaveTimer matches 1400 run playsound minecraft:block.chain.break master @a 0 1 0 10000 .1
execute if score world WaveCounter matches 79 if score world NextWaveTimer matches 1600 run playsound minecraft:block.chain.break master @a 0 1 0 10000 .1
execute if score world WaveCounter matches 79 if score world NextWaveTimer matches 1800 run playsound minecraft:block.chain.break master @a 0 1 0 10000 .1
execute if score world WaveCounter matches 79 if score world NextWaveTimer matches 1900 run playsound minecraft:block.chain.break master @a 0 1 0 10000 .1
execute if score world WaveCounter matches 79 if score world NextWaveTimer matches 1950 run playsound minecraft:block.chain.break master @a 0 1 0 10000 .1

# Phantom Sovereign
execute if score world WaveCounter matches 99 at @a run particle minecraft:end_rod ~ ~ ~ 10 10 10 0.01 1
execute if score world WaveCounter matches 99 if score world NextWaveTimer matches 1000 run playsound minecraft:entity.ender_dragon.flap master @a[distance=..150] 0 1 0 100 0.1 1
execute if score world WaveCounter matches 99 if score world NextWaveTimer matches 1200 run playsound minecraft:entity.ender_dragon.flap master @a[distance=..150] 0 1 0 100 0.1 1
execute if score world WaveCounter matches 99 if score world NextWaveTimer matches 1400 run playsound minecraft:entity.ender_dragon.flap master @a[distance=..150] 0 1 0 100 0.1 1
execute if score world WaveCounter matches 99 if score world NextWaveTimer matches 1600 run playsound minecraft:entity.ender_dragon.flap master @a[distance=..150] 0 1 0 100 0.1 1
execute if score world WaveCounter matches 99 if score world NextWaveTimer matches 1800 run playsound minecraft:entity.ender_dragon.flap master @a[distance=..150] 0 1 0 100 0.1 1
execute if score world WaveCounter matches 99 if score world NextWaveTimer matches 1900 run playsound minecraft:entity.ender_dragon.flap master @a[distance=..150] 0 1 0 100 0.1 1
execute if score world WaveCounter matches 99 if score world NextWaveTimer matches 1960 run playsound minecraft:entity.ender_dragon.flap master @a[distance=..150] 0 1 0 100 0.1 1