execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~-1 ~ bedrock run execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~1 ~ bedrock run execute at @s run fill ~ ~ ~ ~ ~ ~ iron_block
execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~ ~ diamond_block run execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~ ~ diamond_block run execute at @s run fill ~ ~ ~ ~ ~ ~ gold_block
execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~ ~ diamond_block run execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~ ~ diamond_block run execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~ ~ diamond_block run execute at @s run fill ~ ~ ~ ~ ~ ~ diamond_block
execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~ ~ diamond_block run execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~ ~ diamond_block run execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~ ~ diamond_block run execute at @e[sort=random,limit=1,type=armor_stand,name=METEORKYU] if block ~ ~ ~ diamond_block run execute at @s run fill ~ ~ ~ ~ ~ ~ netherite_block

execute at @s run fill ~ ~ ~ ~ ~ ~ nether_gold_ore replace repeating_command_block
execute at @s run fill ~ ~ ~ ~ ~ ~ nether_gold_ore replace command_block
execute at @s run fill ~ ~ ~ ~ ~ ~ nether_gold_ore replace air


kill @s[tag=!CadeyrnOreStand]