execute at @e[name=CadeyrnCrafting,type=armor_stand] run clone ~ ~ ~ ~ ~ ~ ~ 255 ~
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run clone ~ ~ ~ ~ ~ ~ ~ 255 ~
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run summon minecraft:item ~ ~ ~ {Tags:["SetMiddleItem"],Item:{id:"minecraft:structure_void",Count:2b},Age:1999s}
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetMiddleItem] Item set from block ~ ~ ~ Items[{Slot:4b}]
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run item replace block ~ ~ ~ container.4 with minecraft:air
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run kill @e[distance=..15,nbt={Item:{id:"minecraft:dispenser"}}]
#
#
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run summon minecraft:item ~ ~ ~ {Tags:["SetSlot0Item"],Item:{id:"minecraft:structure_void",Count:2b},Age:1999s}
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run summon minecraft:item ~ ~ ~ {Tags:["SetSlot1Item"],Item:{id:"minecraft:structure_void",Count:2b},Age:1999s}
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run summon minecraft:item ~ ~ ~ {Tags:["SetSlot2Item"],Item:{id:"minecraft:structure_void",Count:2b},Age:1999s}
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run summon minecraft:item ~ ~ ~ {Tags:["SetSlot3Item"],Item:{id:"minecraft:structure_void",Count:2b},Age:1999s}
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run summon minecraft:item ~ ~ ~ {Tags:["SetSlot5Item"],Item:{id:"minecraft:structure_void",Count:2b},Age:1999s}
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run summon minecraft:item ~ ~ ~ {Tags:["SetSlot6Item"],Item:{id:"minecraft:structure_void",Count:2b},Age:1999s}
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run summon minecraft:item ~ ~ ~ {Tags:["SetSlot7Item"],Item:{id:"minecraft:structure_void",Count:2b},Age:1999s}
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run summon minecraft:item ~ ~ ~ {Tags:["SetSlot8Item"],Item:{id:"minecraft:structure_void",Count:2b},Age:1999s}
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot0Item] Item set from block ~ ~ ~ Items[{Slot:0b}]
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot1Item] Item set from block ~ ~ ~ Items[{Slot:1b}]
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot2Item] Item set from block ~ ~ ~ Items[{Slot:2b}]
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot3Item] Item set from block ~ ~ ~ Items[{Slot:3b}]
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot5Item] Item set from block ~ ~ ~ Items[{Slot:5b}]
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot6Item] Item set from block ~ ~ ~ Items[{Slot:6b}]
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot7Item] Item set from block ~ ~ ~ Items[{Slot:7b}]
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot8Item] Item set from block ~ ~ ~ Items[{Slot:8b}]
execute as @e[name=CadeyrnCrafting,type=armor_stand] run execute at @s positioned ~ 255 ~ run execute if entity @e[distance=..11,nbt={Item:{tag:{diamondnetherarmorkyu:1b}}},tag=!SetMiddleItem] run execute at @s run tellraw @a[distance=..10] ["",{"text":"In order to upgrade armor, it must be placed in the center slot!","color":"dark_red","italic":true}]
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run setblock ~ ~ ~ air
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run setblock ~ ~ ~ dispenser
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run execute as @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetMiddleItem,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] run execute at @s run function zzzzdonotuse:modifyarmor/customcraft2
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:0b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot0Item,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:1b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot1Item,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:2b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot2Item,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:3b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot3Item,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:5b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot5Item,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:6b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot6Item,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:7b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot7Item,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:8b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetSlot8Item,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
#
#
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:4b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetMiddleItem,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run kill @e[distance=..15,type=item]
execute at @e[name=CadeyrnCrafting,type=armor_stand] run setblock ~ ~ ~ air
execute at @e[name=CadeyrnCrafting,type=armor_stand] run clone ~ 255 ~ ~ 255 ~ ~ ~ ~
execute at @e[name=CadeyrnCrafting,type=armor_stand] run fill ~ 255 ~ ~ 255 ~ air
#
#
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run tag 
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run tag @e[type=item,distance=..11,limit=1,tag=!SetMiddleItem] add ItemToSlot
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:1b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=ItemToSlot,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run kill @e[distance=..15,tag=ItemToSlot]
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run tag @e[type=item,distance=..11,limit=1,tag=!SetMiddleItem] add ItemToSlot
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:2b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=ItemToSlot,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run kill @e[distance=..15,tag=ItemToSlot]
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run tag @e[type=item,distance=..11,limit=1,tag=!SetMiddleItem] add ItemToSlot
##execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:3b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=ItemToSlot,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run kill @e[distance=..15,tag=ItemToSlot]
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run tag @e[type=item,distance=..11,limit=1,tag=!SetMiddleItem] add ItemToSlot
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:5b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=ItemToSlot,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run kill @e[distance=..15,tag=ItemToSlot]
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run tag @e[type=item,distance=..11,limit=1,tag=!SetMiddleItem] add ItemToSlot
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:6b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=ItemToSlot,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run kill @e[distance=..15,tag=ItemToSlot]
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run tag @e[type=item,distance=..11,limit=1,tag=!SetMiddleItem] add ItemToSlot
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:7b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=ItemToSlot,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run kill @e[distance=..15,tag=ItemToSlot]
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run tag @e[type=item,distance=..11,limit=1,tag=!SetMiddleItem] add ItemToSlot
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:8b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=ItemToSlot,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run kill @e[distance=..15,tag=ItemToSlot]
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run tag @e[type=item,distance=..11,limit=1,tag=!SetMiddleItem] add ItemToSlot
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run data modify block ~ ~ ~ Items[{Slot:0b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest,tag=ItemToSlot,nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] Item
#execute at @e[name=CadeyrnCrafting,type=armor_stand] positioned ~ 255 ~ run kill @e[distance=..15,tag=ItemToSlot]
