execute at @e[type=armor_stand,tag=NetherShopText,distance=..25] run summon slime ~ ~ ~ {Size:1b,NoGravity:1b,Silent:1b,PersistenceRequired:1b,NoAI:1b,Health:9999f,Tags:["ShopSlime","GKNameTag","GKQMark","K"],ActiveEffects:[{Id:14,Amplifier:0b,Duration:19710398,ShowParticles:0b}],Attributes:[{Name:generic.max_health,Base:1024},{Name:generic.knockback_resistance,Base:100}]}



execute unless entity @e[type=armor_stand,name=DayQ,tag=CadeyrnDefeated] run summon skeleton_horse ~ ~-.5 ~ {NoGravity:1,Tags:["RealCadeyrn","GKNameTag","CadeyrnTP"],PersistenceRequired:1,Attributes:[{Name:generic.knockback_resistance,Base:1}],Invulnerable:1,NoAI:1,Silent:1,Passengers:[{id:"stray",NoGravity:1,Tags:["RealCadeyrn","GKNameTag","CadeyrnTP"],CustomNameVisible:1,CustomName:'{"text":"Cadeyrn the Wretched","color":"gold"}',ArmorItems:[{id:"minecraft:chainmail_boots",Count:1b},{id:"minecraft:chainmail_leggings",Count:1b},{id:"minecraft:chainmail_chestplate",Count:1b},{id:"minecraft:netherite_helmet",Count:1b}],HandItems:[{id:"minecraft:golden_sword",Count:1b,tag:{Enchantments:[{id:"minecraft:knockback",lvl:15}]}},{}],Attributes:[{Name:generic.knockbackResistance,Base:1}],Invulnerable:1,Silent:1,PersistenceRequired:1}]}
execute if entity @e[type=armor_stand,name=DayQ,tag=CadeyrnDefeated] run summon armor_stand ~ ~-1.85 ~ {Tags:["TinyCadeyrn"],CustomNameVisible:1,CustomName:'{"text":"Cadey","color":"#FFD4D5"}',Rotation:[90F,0F],NoGravity:1,Invisible:1b,Silent:1b,Pose:{Head:[-15f,0f,0f],RightArm:[280f,3f,90f],LeftArm:[280f,0f,-90f]},HandItems:[{id:"minecraft:bone",Count:1b},{id:"minecraft:bone",Count:1b}],ArmorItems:[{},{},{},{id:"minecraft:player_head",Count:1b,tag:{SkullOwner:{Id:[I;1785929880,503663408,-1696403692,-78066405],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMmM1MDk3OTE2YmMwNTY1ZDMwNjAxYzBlZWJmZWIyODcyNzdhMzRlODY3YjRlYTQzYzYzODE5ZDUzZTg5ZWRlNyJ9fX0="}]}}}}]}
execute if entity @e[type=armor_stand,name=DayQ,tag=CadeyrnDefeated] run fill ~-12 0 ~-12 ~12 0 ~12 air replace repeating_command_block
fill ~ ~ ~ ~ ~ ~ air




#execute unless entity @a[distance=..30,gamemode=creative] run execute if score #KyuQStructuresInstall KyuDummy5 matches 1 run data merge block ~ ~1 ~ {auto:1b}