execute at @s[tag=!NoDeathText] positioned ~ ~-1 ~ run execute unless entity @e[tag=ChampMob,distance=..2,type=witch] run function zzzzdonotuse:halfsec/witcheffects
scoreboard players add @s KyuDummy 1
execute at @s[scores={KyuDummy2=1}] run execute at @s[scores={KyuDummy=1}] run playsound minecraft:entity.witch.celebrate hostile @a ~ ~ ~ 6 0.75 1
execute at @s[scores={KyuDummy2=1}] run execute at @s[scores={KyuDummy=1}] run tellraw @a[distance=..50] ["",{"text":"[","color":"#F79400"},{"text":"Brunhilda","color":"#8D07DB"},{"text":"] ","color":"#F79400"},{"text":"nyehehehehe!","color":"#F79400","italic":"true"}]

execute at @s[scores={KyuDummy=4..}] run execute positioned ~ ~3 ~3 run data merge entity @e[limit=1,sort=nearest,type=vex,tag=WitchVex,tag=!LaunchVex] {NoAI:0,Attributes:[{Name:generic.follow_range,Base:32}]}
execute at @s[scores={KyuDummy=4..}] run execute positioned ~ ~3 ~3 run effect give @e[limit=1,sort=nearest,type=vex,tag=WitchVex,tag=!LaunchVex] minecraft:glowing 30 5
execute at @s[scores={KyuDummy=4..}] run execute positioned ~ ~3 ~3 run execute at @e[limit=1,sort=nearest,type=vex,tag=WitchVex,tag=!LaunchVex] run playsound minecraft:entity.vex.charge hostile @a[distance=..25] ~ ~ ~ 5 0.67 1
execute at @s[scores={KyuDummy=4..}] run execute positioned ~ ~3 ~3 run execute at @e[limit=1,sort=nearest,type=vex,tag=WitchVex,tag=!LaunchVex] run particle minecraft:small_flame ~ ~ ~ 0 0 0 0.15 15 force
execute at @s[scores={KyuDummy=4..}] run execute positioned ~ ~3 ~3 run tag @e[limit=1,sort=nearest,type=vex,tag=WitchVex,tag=!LaunchVex] add LaunchVex

execute at @s[scores={KyuDummy=4..}] run scoreboard players add @s KyuDummy2 1
execute at @s[scores={KyuDummy=4..}] run scoreboard players set @s KyuDummy 0
#execute at @s[scores={KyuDummy=15..}] run function zzzzdonotuse:halfsec/pumpkinwitchflyaway
execute at @s[scores={KyuDummy2=16}] run execute at @s[scores={KyuDummy=1}] run tellraw @a[distance=..50] ["",{"text":"[","color":"#F79400"},{"text":"Brunhilda","color":"#8D07DB"},{"text":"] ","color":"#F79400"},{"text":"nyehehehehe! Stay fresh, cheesebags!","color":"#F79400","italic":"true"}]
execute at @s[scores={KyuDummy2=18}] run execute at @s[scores={KyuDummy=1}] run execute as @e[limit=15] run summon bat ~ ~ ~
execute at @s[scores={KyuDummy2=18}] run execute at @s[scores={KyuDummy=1}] run particle minecraft:poof ~ ~1 ~ 0.5 1 0.5 0.1 55
execute at @s[scores={KyuDummy2=18}] run execute at @s[scores={KyuDummy=1}] run execute as @e[limit=5] run playsound minecraft:entity.witch.celebrate hostile @a[distance=..25] ~ ~ ~ 1.5 2 1
execute at @s[scores={KyuDummy2=20}] run execute at @s[scores={KyuDummy=1}] run tellraw @a[tag=K] ["",{"text":"An event has occured...nyehehehehe!","color":"yellow","italic":true}]
execute as @s[scores={KyuDummy2=20}] run execute at @s[scores={KyuDummy=1}] run function zzzzdonotuse:randomevent/witchinghour
execute at @s[scores={KyuDummy2=18}] run execute at @s[scores={KyuDummy=1}] run tp @e[type=witch,distance=..5] ~ 10000 ~
execute at @s[scores={KyuDummy2=18}] run execute at @s[scores={KyuDummy=1}] run effect give @e[type=witch,distance=..5] minecraft:invisibility 555 5
execute at @s[scores={KyuDummy2=18}] run execute at @s[scores={KyuDummy=1}] run effect give @e[type=witch,distance=..5] minecraft:resistance 555 5
execute at @s[scores={KyuDummy2=20}] run execute at @s[scores={KyuDummy=1}] run tp @e[type=witch,distance=..5] ~ -100 ~
execute at @s[scores={KyuDummy2=20}] run execute at @s[scores={KyuDummy=1}] run tp @s ~ -100 ~

execute as @s[scores={KyuDummy2=18}] run tag @s add NoDeathText
#13
