execute as @e[type=armor_stand,tag=SpawnCrystalKyu,tag=!GotCrysSpawn,limit=1,sort=random] run data merge entity @s {Tags:["KyuCrystalSumm","GotCrysSpawn","CrystalStructure1"]}
execute as @e[type=armor_stand,tag=SpawnCrystalKyu,tag=!GotCrysSpawn,limit=1,sort=random] run data merge entity @s {Tags:["KyuCrystalSumm","GotCrysSpawn","CrystalStructure2"]}
execute as @e[type=armor_stand,tag=SpawnCrystalKyu,tag=!GotCrysSpawn,limit=1,sort=random] run data merge entity @s {Tags:["KyuCrystalSumm","GotCrysSpawn","CrystalStructure3"]}
execute as @e[type=armor_stand,tag=SpawnCrystalKyu,tag=!GotCrysSpawn,limit=1,sort=random] run data merge entity @s {Tags:["KyuCrystalSumm","GotCrysSpawn","CrystalStructure4"]}
execute as @e[type=armor_stand,tag=SpawnCrystalKyu,tag=!GotCrysSpawn,limit=1,sort=random] run data merge entity @s {Tags:["KyuCrystalSumm","GotCrysSpawn","CrystalStructure5"]}
execute as @e[type=armor_stand,tag=SpawnCrystalKyu,tag=!GotCrysSpawn,limit=1,sort=random] run data merge entity @s {Tags:["KyuCrystalSumm","GotCrysSpawn","CrystalStructure6"]}
execute as @e[type=armor_stand,tag=SpawnCrystalKyu,tag=!GotCrysSpawn,limit=1,sort=random] run data merge entity @s {Tags:["KyuCrystalSumm","GotCrysSpawn","CrystalStructure7"]}
execute as @e[type=armor_stand,tag=SpawnCrystalKyu,limit=10,sort=random,tag=!GotCrysSpawn] run data merge entity @s {Tags:["KyuCrystalSumm","GotCrysSpawn","CrystalStructureR"]}

execute as @e[type=armor_stand,tag=CrystalStructureR] run execute at @s run function zzzzdonotuse:enderdragon/randomcrystals

execute as @e[type=armor_stand,tag=SpawnCrystalKyu] run execute at @s run tp @s ~ ~ ~ facing 0 91 0
execute at @e[type=armor_stand,tag=CrystalStructure1] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:endcrystals1",posX:-4,posZ:-4,posY:-1,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[type=armor_stand,tag=CrystalStructure2] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:endcrystals2",posX:-4,posZ:-4,posY:-1,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[type=armor_stand,tag=CrystalStructure3] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:endcrystals3",posX:-4,posZ:-4,posY:-1,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[type=armor_stand,tag=CrystalStructure4] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:endcrystals4",posX:-4,posZ:-4,posY:-1,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[type=armor_stand,tag=CrystalStructure5] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:endcrystals5",posX:-4,posZ:-4,posY:-1,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[type=armor_stand,tag=CrystalStructure6] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:endcrystals6",posX:-4,posZ:-4,posY:-1,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @e[type=armor_stand,tag=CrystalStructure7] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:endcrystals7",posX:-4,posZ:-4,posY:-1,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy

execute at @e[type=armor_stand,tag=SpawnCrystalKyu,y_rotation=-45..45] run 

