tag @s add KyuDoStripMine
#tellraw @s ["",{"text":"You feel an evil presence near you - almost as if you're being watched.","color":"dark_gray","italic":true}]
#execute at @s run playsound entity.zombie.ambient hostile @s ~ ~ ~ 1 0.9 1
scoreboard players set @s KyuStripMine 0
scoreboard players set @s KAIR 100
scoreboard players add @e[name=DayQ,type=armor_stand] KyuStripCheck 1
execute store result score @s KyuUUID run data get entity @s UUID[0] 1
execute store result score @s KyuUUID2 run data get entity @s UUID[0] 1
execute at @s run summon villager ~ ~-3 ~ {Tags:["KAIR2","KAIRUUID","SPECSPAWN"],NoGravity:1b,Profession:0,Age:-30000,Attributes:[{Name:generic.max_health,Base:1250}],Health:1250.0f,PersistenceRequired:1,Silent:1,active_effects:[{id:"minecraft:fire_resistance",amplifier:0,duration:100000,show_particles:0b},{id:"minecraft:invisibility",amplifier:0,duration:80,show_particles:0b},{id:"minecraft:wither",amplifier:3,duration:100000,show_particles:0b}]}
execute at @s run summon zombie ~ ~-2 ~ {active_effects:[{id:"minecraft:fire_resistance",amplifier:0b,duration:6000}],PersistenceRequired:1,Tags:["KAIRUUID","SPECSPAWN","NOFOLLOW","DoubleMobMent"],Attributes:[{Name:generic.follow_range,Base:210}]}
execute at @s run summon zombie ~ ~-2 ~ {active_effects:[{id:"minecraft:fire_resistance",amplifier:0b,duration:6000}],PersistenceRequired:1,Tags:["KAIRUUID","SPECSPAWN","NOFOLLOW","DoubleMobMent"],Attributes:[{Name:generic.follow_range,Base:210}]}
execute at @s run summon zombie ~ ~-2 ~ {active_effects:[{id:"minecraft:fire_resistance",amplifier:0b,duration:6000}],PersistenceRequired:1,Tags:["KAIRUUID","SPECSPAWN","NOFOLLOW","DoubleMobMent"],Attributes:[{Name:generic.follow_range,Base:210}]}
execute at @s run summon zombie ~ ~-2 ~ {active_effects:[{id:"minecraft:fire_resistance",amplifier:0b,duration:6000}],PersistenceRequired:1,Tags:["KAIRUUID","SPECSPAWN","NOFOLLOW","DoubleMobMent"],Attributes:[{Name:generic.follow_range,Base:210}]}
execute at @s run summon zombie ~ ~-2 ~ {active_effects:[{id:"minecraft:fire_resistance",amplifier:0b,duration:6000}],PersistenceRequired:1,Tags:["KAIRUUID","SPECSPAWN","NOFOLLOW","DoubleMobMent"],Attributes:[{Name:generic.follow_range,Base:210}]}
execute as @e[type=#suhc:zombietype,tag=KAIRUUID,tag=!GotChamped] run function zzzzdonotuse:champions/zombietypes/choosezombietype
execute at @e[type=#suhc:zombietype,tag=KAIRUUID] run execute as @e[type=#suhc:zombietype,distance=..5] run data merge entity @s {active_effects:[{id:"minecraft:fire_resistance",amplifier:0b,duration:6000}],PersistenceRequired:1,Attributes:[{Name:generic.follow_range,Base:210}]}
execute at @e[type=#suhc:zombietype,tag=KAIRUUID] run execute as @e[type=#suhc:zombietype,distance=..5] run tag @s add KAIRUUID
execute at @e[type=#suhc:zombietype,tag=KAIRUUID] run execute as @e[type=#suhc:zombietype,distance=..5] run tag @s add SPECSPAWN
execute at @e[type=#suhc:zombietype,tag=KAIRUUID] run execute as @e[type=#suhc:zombietype,distance=..5] run tag @s add NOFOLLOW
execute at @e[type=#suhc:zombietype,tag=KAIRUUID] run execute as @e[type=#suhc:zombietype,distance=..5] run tag @s add DoubleMobMent
execute at @e[type=#suhc:zombietype,tag=KAIRUUID] run execute as @e[type=#suhc:zombietype,distance=..5] run tag @s add GotChamped
execute at @s run tp @e[type=#suhc:zombietype,distance=..5,tag=GotChamped] ~ ~-2 ~

execute as @s run execute at @s run execute store result score @e[tag=KAIRUUID,tag=!GOTUUID,distance=..8] KyuUUID run data get entity @s UUID[0] 1
execute as @s run execute at @s run execute store result score @e[tag=KAIRUUID,tag=!GOTUUID,distance=..8] KyuUUID2 run data get entity @s UUID[0] 1
execute as @s run execute at @s run tag @e[tag=!GOTUUID,distance=..8,tag=KAIRUUID] add GOTUUID

execute at @s positioned ~ ~ ~ run tag @e[distance=..10,type=#suhc:hostiles] add Gotspawned
execute at @s positioned ~-90 ~ ~-90 run tag @e[dx=180,dz=180,dy=32,type=#suhc:hostiles,tag=!Gotspawned,sort=nearest,limit=1,tag=!SPECSPAWN] add PossibleSpawn

execute at @s run tp @e[tag=GOTUUID,distance=..8,tag=KAIRUUID,tag=!NOTPTAG] @e[tag=PossibleSpawn,tag=!Gotspawned,tag=!KAIRUUID,limit=1]
execute at @s run tp @e[tag=GOTUUID,distance=..8,tag=KAIRUUID,tag=!NOTPTAG] ~ ~-500 ~
tag @e[tag=GOTUUID,distance=..48,tag=KAIRUUID,tag=!NOTPTAG] add NOTPTAG
data merge block 999979 179 999975 {auto:1b}

execute at @s run execute if entity @e[tag=PossibleSpawn,tag=!Gotspawned,distance=..195] run tellraw @s ["",{"text":"You feel an evil presence near you - almost as if you're being watched.","color":"dark_gray","italic":true}]
execute at @s run execute if entity @e[tag=PossibleSpawn,tag=!Gotspawned,distance=..195] run execute at @s run playsound entity.zombie.ambient hostile @s ~ ~ ~ 1 0.9 1

tag @e[tag=PossibleSpawn,tag=!Gotspawned] add Gotspawned


#/tag @e[type=zombie,limit=1,sort=nearest] list
#