summon marker ~ ~ ~ {Tags:["central_shield","obj","unspellable","es","init"]}

summon armor_stand ~ ~ ~ {Marker:1b,Invisible:1b,Tags:["shield","1","obj","unspellable","es","init"],Small:1b,ArmorItems:[{},{},{},{id:"polished_andesite",Count:1b}]}
summon armor_stand ~ ~ ~ {Marker:1b,Invisible:1b,Tags:["shield","2","obj","unspellable","es","init"],Small:1b,ArmorItems:[{},{},{},{id:"polished_andesite",Count:1b}]}
summon armor_stand ~ ~ ~ {Marker:1b,Invisible:1b,Tags:["shield","3","obj","unspellable","es","init"],Small:1b,ArmorItems:[{},{},{},{id:"polished_andesite",Count:1b}]}
summon armor_stand ~ ~ ~ {Marker:1b,Invisible:1b,Tags:["shield","4","obj","unspellable","es","init"],Small:1b,ArmorItems:[{},{},{},{id:"polished_andesite",Count:1b}]}

summon marker ~ ~ ~ {Tags:["shield_b","1","unspellable","es","init"]}
summon marker ~ ~ ~ {Tags:["shield_b","2","unspellable","es","init"]}
summon marker ~ ~ ~ {Tags:["shield_b","3","unspellable","es","init"]}
summon marker ~ ~ ~ {Tags:["shield_b","4","unspellable","es","init"]}

execute as @e[type=marker,tag=central_shield,tag=init,sort=nearest,limit=1] run function olink:ch1/new_link
execute as @e[tag=es,tag=init,distance=..0.1,limit=9] run function olink:ch1/join_link

scoreboard players set @e[type=marker,tag=central_shield,tag=init,sort=nearest,limit=1] countdown 140

tag @e[tag=es,tag=init] remove init
