execute at @s run scoreboard players add @e[tag=ChargeStart,sort=nearest,distance=..8] CadeyrnChargeDum 1

execute at @s run execute if entity @a[distance=..5] run summon vex ~ ~ ~ {Health:2f,HandItems:[{id:"minecraft:oak_sign",Count:1b,tag:{Enchantments:[{id:"minecraft:knockback",lvl:2s}],BlockEntityTag:{}}},{}]}

execute as @e[tag=ChargeStartStr,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=1}] run data merge entity @s {CustomNameVisible:1,CustomName:'[{"text":"Delia,","color":"#B5F8FF"},{"text":" the Charming","color":"#AC07DE"}]'}
execute at @e[tag=ChargeStartStr,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=1}] run tellraw @a[distance=..150] ["",{"text":"[","color":"dark_blue"},{"text":"Cadeyrn the Wretched","color":"gold"},{"text":"] ","color":"dark_blue"},{"text":"Delia,","color":"#B5F8FF"},{"text":" the Charming","color":"#AC07DE"},{"text":"!","color":"dark_red"},{"text":" Bewitch my foes and aid your allies!","color":"dark_red","italic":"true"}]
execute as @e[tag=ChargeStartStr,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=2}] run data merge entity @s {CustomNameVisible:0}
execute as @e[tag=ChargeStartStr,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=5}] run data merge entity @s {CustomNameVisible:1,HandItems:[{id:"minecraft:blaze_rod",Count:1b,tag:{Enchantments:[{id:"minecraft:knockback",lvl:1s},{id:"minecraft:fire_aspect",lvl:3s}]}},{}],HandDropChances:[0.000F,0.000F]}
execute as @e[tag=ChargeStartStr,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=6}] run data merge entity @s {HandItems:[{id:"minecraft:blaze_rod",Count:1b,tag:{Enchantments:[{id:"minecraft:knockback",lvl:1s},{id:"minecraft:fire_aspect",lvl:3s}]}},{id:"minecraft:blaze_powder",Count:1b}],HandDropChances:[0.000F,0.000F]}
execute as @e[tag=ChargeStartStr,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=7}] run effect give @s speed 10000 1



execute as @e[tag=ChargeStartSke,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=2}] run data merge entity @s {CustomNameVisible:1,CustomName:'[{"text":"Govannon,","color":"#74F2F2"},{"text":" the Stricken","color":"#F7FF00"}]',HandDropChances:[0.000F,0.000F]}
execute as @e[tag=ChargeStartSke,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=2}] run tellraw @a[distance=..150] ["",{"text":"[","color":"dark_blue"},{"text":"Cadeyrn the Wretched","color":"gold"},{"text":"] ","color":"dark_blue"},{"text":"Govannon,","color":"#74F2F2"},{"text":" the Stricken","color":"#F7FF00"},{"text":"!","color":"dark_red"},{"text":" Smite them down!","color":"dark_red","italic":"true"}]
execute as @e[tag=ChargeStartSke,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=3}] run data merge entity @s {CustomNameVisible:0}
execute as @e[tag=ChargeStartSke,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=5}] run data merge entity @s {CustomNameVisible:1,HandItems:[{id:"minecraft:bow",Count:1b},{}],HandDropChances:[0.000F,0.000F]}
execute as @e[tag=ChargeStartSke,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=6}] run data merge entity @s {HandItems:[{id:"minecraft:bow",Count:1b},{id:"minecraft:spectral_arrow",Count:1b}],HandDropChances:[0.000F,0.000F]}
execute as @e[tag=ChargeStartSke,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=7}] run item replace entity @s armor.head with minecraft:leather_helmet
execute as @e[tag=ChargeStartSke,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=8}] run item replace entity @s armor.feet with minecraft:leather_boots{display:{color:0}}


execute as @e[tag=ChargeStartWit,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=3}] run data merge entity @s {CustomNameVisible:1,CustomName:'[{"text":"Cadfan,","color":"#5E5361"},{"text":" the Immolator","color":"#BF0000"}]',HandDropChances:[0.000F,0.000F]}
execute as @e[tag=ChargeStartWit,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=3}] run tellraw @a[distance=..150] ["",{"text":"[","color":"dark_blue"},{"text":"Cadeyrn the Wretched","color":"gold"},{"text":"] ","color":"dark_blue"},{"text":"Cadfan,","color":"#5E5361"},{"text":" the Immolator","color":"#BF0000"},{"text":"!","color":"dark_red"},{"text":" Rise from the cinders once more!","color":"dark_red","italic":"true"}]
execute as @e[tag=ChargeStartWit,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=4}] run data merge entity @s {CustomNameVisible:0}
execute as @e[tag=ChargeStartWit,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=5}] run data merge entity @s {CustomNameVisible:1,HandItems:[{id:"minecraft:golden_sword",Count:1b,tag:{Enchantments:[{id:"minecraft:knockback",lvl:1s},{id:"minecraft:fire_aspect",lvl:3s}]}},{}],HandDropChances:[0.000F,0.000F]}
execute as @e[tag=ChargeStartWit,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=6}] run effect give @s minecraft:fire_resistance 20000 2 false
execute as @e[tag=ChargeStartWit,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=7}] run data merge entity @s {HandItems:[{id:"minecraft:golden_sword",Count:1b,tag:{Enchantments:[{id:"minecraft:knockback",lvl:1s},{id:"minecraft:fire_aspect",lvl:3s}]}},{id:"minecraft:flint_and_steel",Count:1b}],HandDropChances:[0.000F,0.000F]}
execute as @e[tag=ChargeStartWit,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=8}] run tag @s add FlameOnGuy



execute as @e[tag=ChargeStartPig,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=4}] run data merge entity @s {CustomNameVisible:1,CustomName:'[{"text":"BORIS","color":"#FF00EE"}]',HandDropChances:[0.000F,0.000F]}
execute as @e[tag=ChargeStartPig,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=4}] run tellraw @a[distance=..150] ["",{"text":"[","color":"dark_blue"},{"text":"Cadeyrn the Wretched","color":"gold"},{"text":"] ","color":"dark_blue"},{"text":"B O R I S","color":"#FF00EE","italic":"true"},{"text":"!","color":"dark_red"}]
execute as @e[tag=ChargeStartPig,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=5}] run data merge entity @s {HandItems:[{id:"minecraft:netherite_pickaxe",Count:1b},{}],HandDropChances:[0.000F,0.000F]}
execute as @e[tag=ChargeStartPig,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=6}] run data merge entity @s {HandItems:[{id:"minecraft:netherite_pickaxe",Count:1b},{id:"minecraft:netherite_pickaxe",Count:1b}],HandDropChances:[0.000F,0.000F]}
execute as @e[tag=ChargeStartPig,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=7}] run data merge entity @s {ArmorItems:[{},{},{},{id:"minecraft:netherite_helmet",Count:1b}],ArmorDropChances:[0.000F,0.000F,0.000F,0.000F]}
execute as @e[tag=ChargeStartPig,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=8}] run data merge entity @s {ArmorItems:[{},{},{id:"minecraft:netherite_chestplate",Count:1b},{id:"minecraft:netherite_helmet",Count:1b}],ArmorDropChances:[0.000F,0.000F,0.000F,0.000F]}
execute as @e[tag=ChargeStartPig,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=9}] run data merge entity @s {ArmorItems:[{},{id:"minecraft:netherite_leggings",Count:1b},{id:"minecraft:netherite_chestplate",Count:1b},{id:"minecraft:netherite_helmet",Count:1b}],ArmorDropChances:[0.000F,0.000F,0.000F,0.000F]}
execute as @e[tag=ChargeStartPig,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=10}] run data merge entity @s {ArmorItems:[{id:"minecraft:netherite_boots",Count:1b},{id:"minecraft:netherite_leggings",Count:1b},{id:"minecraft:netherite_chestplate",Count:1b},{id:"minecraft:netherite_helmet",Count:1b}],ArmorDropChances:[0.000F,0.000F,0.000F,0.000F]}
execute as @e[tag=ChargeStart,limit=1,sort=nearest,distance=..8,scores={CadeyrnChargeDum=5}] run data merge entity @s {CustomNameVisible:1}