execute as @e[type=armor_stand,name=SaveInvKyu] run execute at @s run tp @s ~1 ~ ~
execute at @e[type=armor_stand,name=SaveInvKyu] run fill ~ 240 ~ ~ 241 ~ chest
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run data modify block ~ ~ ~ Items set from entity @p[tag=InvStartSave,tag=!InvSaved] Inventory
advancement grant @p[tag=InvStartSave] only minecraft:suhc/joinedsuhc
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 243 ~ run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:stone",Count:1b},Age:5999s}
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest] Item set from entity @p[tag=InvStartSave,tag=!InvSaved] Inventory[{Slot:27b}]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify block ~ ~ ~ Items[{Slot:0b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest] Item
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run kill @e[type=item,distance=..10]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 243 ~ run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:stone",Count:1b},Age:5999s}
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest] Item set from entity @p[tag=InvStartSave,tag=!InvSaved] Inventory[{Slot:28b}]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify block ~ ~ ~ Items[{Slot:1b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest] Item
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run kill @e[type=item,distance=..10]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 243 ~ run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:stone",Count:1b},Age:5999s}
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest] Item set from entity @p[tag=InvStartSave,tag=!InvSaved] Inventory[{Slot:29b}]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify block ~ ~ ~ Items[{Slot:2b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest] Item
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run kill @e[type=item,distance=..10]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 243 ~ run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:stone",Count:1b},Age:5999s}
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest] Item set from entity @p[tag=InvStartSave,tag=!InvSaved] Inventory[{Slot:30b}]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify block ~ ~ ~ Items[{Slot:3b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest] Item
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run kill @e[type=item,distance=..10]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 243 ~ run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:stone",Count:1b},Age:5999s}
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest] Item set from entity @p[tag=InvStartSave,tag=!InvSaved] Inventory[{Slot:31b}]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify block ~ ~ ~ Items[{Slot:4b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest] Item
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run kill @e[type=item,distance=..10]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 243 ~ run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:stone",Count:1b},Age:5999s}
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest] Item set from entity @p[tag=InvStartSave,tag=!InvSaved] Inventory[{Slot:32b}]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify block ~ ~ ~ Items[{Slot:5b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest] Item
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run kill @e[type=item,distance=..10]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 243 ~ run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:stone",Count:1b},Age:5999s}
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest] Item set from entity @p[tag=InvStartSave,tag=!InvSaved] Inventory[{Slot:33b}]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify block ~ ~ ~ Items[{Slot:6b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest] Item
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run kill @e[type=item,distance=..10]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 243 ~ run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:stone",Count:1b},Age:5999s}
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest] Item set from entity @p[tag=InvStartSave,tag=!InvSaved] Inventory[{Slot:34b}]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify block ~ ~ ~ Items[{Slot:7b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest] Item
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run kill @e[type=item,distance=..10]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 243 ~ run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:stone",Count:1b},Age:5999s}
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest] Item set from entity @p[tag=InvStartSave,tag=!InvSaved] Inventory[{Slot:35b}]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify block ~ ~ ~ Items[{Slot:8b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest] Item
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run kill @e[type=item,distance=..10]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 243 ~ run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:stone",Count:1b},Age:5999s}
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest] Item set from entity @p[tag=InvStartSave,tag=!InvSaved] Inventory[{Slot:100b}]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify block ~ ~ ~ Items[{Slot:9b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest] Item
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run kill @e[type=item,distance=..10]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 243 ~ run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:stone",Count:1b},Age:5999s}
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest] Item set from entity @p[tag=InvStartSave,tag=!InvSaved] Inventory[{Slot:101b}]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify block ~ ~ ~ Items[{Slot:10b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest] Item
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run kill @e[type=item,distance=..10]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 243 ~ run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:stone",Count:1b},Age:5999s}
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest] Item set from entity @p[tag=InvStartSave,tag=!InvSaved] Inventory[{Slot:102b}]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify block ~ ~ ~ Items[{Slot:11b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest] Item
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run kill @e[type=item,distance=..10]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 243 ~ run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:stone",Count:1b},Age:5999s}
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest] Item set from entity @p[tag=InvStartSave,tag=!InvSaved] Inventory[{Slot:103b}]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify block ~ ~ ~ Items[{Slot:12b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest] Item
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run kill @e[type=item,distance=..10]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 243 ~ run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:stone",Count:1b},Age:5999s}
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest] Item set from entity @p[tag=InvStartSave,tag=!InvSaved] SelectedItem
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify block ~ ~ ~ Items[{Slot:13b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest] Item
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run kill @e[type=item,distance=..10]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 243 ~ run summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:stone",Count:1b},Age:5999s}
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify entity @e[distance=..11,type=item,limit=1,sort=nearest] Item set from entity @p[tag=InvStartSave,tag=!InvSaved] Inventory[{Slot:-106b}]
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 241 ~ run data modify block ~ ~ ~ Items[{Slot:14b}] merge from entity @e[distance=..11,type=item,limit=1,sort=nearest] Item
execute at @e[type=armor_stand,name=SaveInvKyu] positioned ~ 240 ~ run kill @e[type=item,distance=..10]
execute as @a[tag=InvStartSave,tag=!InvSaved] store result score @s OGXCoord run data get entity @s Pos[0] 1
execute as @a[tag=InvStartSave,tag=!InvSaved] store result score @s OGYCoord run data get entity @s Pos[1] 1
execute as @a[tag=InvStartSave,tag=!InvSaved] store result score @s OGZCoord run data get entity @s Pos[2] 1
tag @a[tag=InvStartSave] add InvSaved
clear @a[tag=InvStartSave,tag=InvSaved,tag=ClearInvKyu]
tag @a remove InvStartSave