#tellraw @a[tag=K] ["",{"text":"A random event has occured!","color":"yellow","italic":true}]
tellraw @a[tag=K] ["",{"text":"The void calls...","color":"dark_purple","italic":true}]

tag @e[tag=K,type=zombie] add EnderQ
tag @e[tag=K,type=skeleton] add EnderQ
tag @e[tag=K,type=minecraft:zombified_piglin] add EnderQ
tag @e[tag=K,type=creeper] add EnderQ
tag @e[tag=K,type=enderman] add EnderQ
#tag @e[tag=K,type=slime] add EnderQ
tag @e[tag=K,type=spider] add EnderMiteQ
tag @e[tag=K,type=cave_spider] add EnderQ
tag @e[tag=K,type=stray,name=!"Cadeyrn the Wretched"] add EnderQ
tag @e[tag=K,type=husk] add EnderQ
tag @e[tag=K,type=witch] add EnderQ
tag @e[tag=K,type=wither_skeleton] add EnderQ
tag @e[tag=K,type=blaze] add EnderQ
tag @e[tag=K,type=silverfish] add EnderQ
tag @e[tag=K,type=magma_cube] add EnderQ

execute at @e[tag=EnderQ] run summon minecraft:enderman ~ ~ ~ {Tags:["VoidCallsEvent"]}
execute as @e[tag=EnderQ] run execute at @s run tp @s ~ ~-500 ~
execute as @e[type=minecraft:enderman,tag=VoidCallsEvent] run data merge entity @s {PersistenceRequired:1}
execute as @e[type=minecraft:enderman,tag=VoidCallsEvent] run tag @s add RemovePersist
playsound minecraft:entity.enderman.stare hostile @a ~ ~ ~ 1 0.8 1
execute at @e[tag=EnderMiteQ] run summon minecraft:endermite ~ ~ ~
execute as @e[tag=EnderMiteQ] run execute at @s run tp @s ~ ~-500 ~