execute if block 1000 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 0 execute if block 1000 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1000 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 1 execute if block 1000 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1000 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 2 execute if block 1000 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1000 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 3 execute if block 1000 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1001 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 4 execute if block 1001 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1001 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 5 execute if block 1001 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1001 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 6 execute if block 1001 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1001 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 7 execute if block 1001 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1002 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 8 execute if block 1002 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1002 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 9 execute if block 1002 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1002 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 10 execute if block 1002 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1002 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 11 execute if block 1002 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1003 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 12 execute if block 1003 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1003 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 13 execute if block 1003 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1003 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 14 execute if block 1003 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1003 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 15 execute if block 1003 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1004 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 16 execute if block 1004 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1004 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 17 execute if block 1004 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1004 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 18 execute if block 1004 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1004 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 19 execute if block 1004 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1005 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 20 execute if block 1005 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1005 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 21 execute if block 1005 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1005 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 22 execute if block 1005 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1005 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 23 execute if block 1005 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1006 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 24 execute if block 1006 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1006 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 25 execute if block 1006 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1006 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 26 execute if block 1006 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1006 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 27 execute if block 1006 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1007 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 28 execute if block 1007 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1007 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 29 execute if block 1007 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1007 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 30 execute if block 1007 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1007 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 31 execute if block 1007 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1008 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 32 execute if block 1008 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1008 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 33 execute if block 1008 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1008 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 34 execute if block 1008 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1008 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 35 execute if block 1008 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1009 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 100 execute if block 1009 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1009 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 101 execute if block 1009 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1009 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 102 execute if block 1009 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute if block 1009 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 103 execute if block 1009 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item execute store result score #fill_count temp run fill 1000 0 5001 1009 0 5004 air scoreboard players operation #fill_count temp %= #const_2 temp execute if score #fill_count temp matches 1 run scoreboard players set @s item_slot -106 execute if score #fill_count temp matches 1 at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item