tag @e[tag=K,type=zombie] add SHQ
tag @e[tag=K,type=skeleton] add SHQ
tag @e[tag=K,type=minecraft:zombified_piglin] add SHQ
tag @e[tag=K,type=creeper] add SHQ
tag @e[tag=K,type=enderman] add SHQ
#tag @e[tag=K,type=Slime] add SHQ
tag @e[tag=K,type=spider] add SHQ
tag @e[tag=K,type=cave_spider] add SHQ


execute at @e[tag=SHQ] run summon skeleton ~ ~ ~ {CustomName:"\"Spooky\"",Tags:["GearKyu","GKQMARK","GKNameTag","RemovePersist","SpookyEventSkele"],ArmorItems:[{id:"minecraft:leather_boots",Count:1b,tag:{Enchantments:[{id:"minecraft:protection",lvl:3},{id:"minecraft:feather_falling",lvl:5}],display:{color:0}}},{id:"minecraft:leather_leggings",Count:1b,tag:{Enchantments:[{id:"minecraft:protection",lvl:4}],display:{color:12738054}}},{id:"minecraft:leather_chestplate",Count:1b,tag:{Enchantments:[{id:"minecraft:protection",lvl:4}],display:{color:0}}},{id:"minecraft:jack_o_lantern",Count:1b}],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:power",lvl:3},{id:"minecraft:punch",lvl:1}]}},{id:"minecraft:tipped_arrow",Count:1b,tag:{custom_potion_effects:[{id:"minecraft:blindness",amplifier:0,duration:120,show_particles:0b}],Potion:"minecraft:water"}}],ArmorDropChances:[0.085F,0.0F,0.0F,0.0F]}
#execute if entity @e[name=DayQ,type=armor_stand,scores={DayQ=20..}] run execute at @e[tag=SHQ] run summon skeleton ~ ~ ~ {CustomName:"\"2Spooky\"",Tags:["GearKyu","GKQMARK","GKNameTag"],ArmorItems:[{id:"minecraft:leather_boots",Count:1b,tag:{Enchantments:[{id:"minecraft:protection",lvl:4},{id:"minecraft:feather_falling",lvl:5}],display:{color:0}}},{id:"minecraft:leather_leggings",Count:1b,tag:{Enchantments:[{id:"minecraft:protection",lvl:5}],display:{color:12738054}}},{id:"minecraft:leather_chestplate",Count:1b,tag:{Enchantments:[{id:"minecraft:protection",lvl:5}],display:{color:0}}},{id:"minecraft:jack_o_lantern",Count:1b}],HandItems:[{id:"minecraft:bow",Count:1b,tag:{Enchantments:[{id:"minecraft:power",lvl:6},{id:"minecraft:punch",lvl:2}]}},{id:"minecraft:tipped_arrow",Count:1b,tag:{custom_potion_effects:[{id:"minecraft:blindness",amplifier:0,duration:120,show_particles:0b},{id:"minecraft:wither",amplifier:0b,duration:40}],Potion:"minecraft:water"}}],ArmorDropChances:[0.085F,0.0F,0.0F,0.0F]}

execute as @e[tag=SHQ] run execute at @s run tp @s ~ ~-500 ~
execute as @e[type=skeleton,tag=SpookyEventSkele] run data merge entity @s {PersistenceRequired:1}
#idk???tellraw @a[tag=K] ["",{"text":"It's time to get spooky!","color":"gold","italic":true}]
tellraw @a[tag=K] ["",{"text":"It's time to get spooky!","color":"gold","italic":true}]