function kaisyn:misc/menu/misc/glass/items_bottom

item replace entity @s container.0 with minecraft:
item replace entity @s container.1
item replace entity @s container.2
item replace entity @s container.3
item replace entity @s container.4
item replace entity @s container.5
item replace entity @s container.6
item replace entity @s container.7
item replace entity @s container.8
item replace entity @s container.9
item replace entity @s container.10
item replace entity @s container.11 replace
item replace entity @s container.12 replace
item replace entity @s container.13 replace
item replace entity @s container.14 replace
item replace entity @s container.15 replace
item replace entity @s container.16 replace
item replace entity @s container.17 replace

execute unless data entity @s Items[{Slot:18b,tag:{loot_table_recipes:{gui:1b}}}] run function kaisyn:misc/menu/pages/turn/8001
execute unless data entity @s Items[{Slot:22b,tag:{loot_table_recipes:{gui:1b}}}] run function kaisyn:misc/menu/pages/turn/8001
execute unless data entity @s Items[{Slot:27b,tag:{loot_table_recipes:{gui:1b}}}] run function kaisyn:misc/menu/pages/turn/8003