# Testing Click

##Click cages
execute as @s[nbt={EnderItems:[{Slot:11b,id:"minecraft:shield",components:{"minecraft:custom_data":{menu:1}}}]}] run execute unless entity @s[nbt={EnderItems:[{Slot:13b,id:"minecraft:glass"}]}] run scoreboard players set @s men_cos 2
execute as @s[nbt={EnderItems:[{Slot:11b,id:"minecraft:shield",components:{"minecraft:custom_data":{menu:1}}}]}] run execute unless entity @s[nbt={EnderItems:[{Slot:13b,id:"minecraft:glass"}]}] at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.5
##Click Shields
execute as @s[nbt={EnderItems:[{Slot:13b,id:"minecraft:glass"}]}] run execute unless entity @s[nbt={EnderItems:[{Slot:11b,id:"minecraft:shield",components:{"minecraft:custom_data":{menu:1}}}]}] run scoreboard players set @s men_cos 3
execute as @s[nbt={EnderItems:[{Slot:13b,id:"minecraft:glass"}]}] run execute unless entity @s[nbt={EnderItems:[{Slot:11b,id:"minecraft:shield",components:{"minecraft:custom_data":{menu:1}}}]}] at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.5
##Click Trails
execute as @s[nbt={EnderItems:[{Slot:13b,id:"minecraft:glass"}]}] run execute unless entity @s[nbt={EnderItems:[{Slot:15b,id:"minecraft:tipped_arrow"}]}] run scoreboard players set @s men_cos 4
execute as @s[nbt={EnderItems:[{Slot:13b,id:"minecraft:glass"}]}] run execute unless entity @s[nbt={EnderItems:[{Slot:15b,id:"minecraft:tipped_arrow"}]}] at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.5

# Placing GUI

item replace entity @s enderchest.0 with minecraft:green_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.1 with minecraft:lime_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.2 with minecraft:green_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.3 with minecraft:lime_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.4 with minecraft:green_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.5 with minecraft:lime_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.6 with minecraft:green_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.7 with minecraft:lime_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.8 with minecraft:green_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.9 with minecraft:lime_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.10 with minecraft:green_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.11 with shield[minecraft:custom_data={menu:1,trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p1.shields","fallback":"Shields","italic":false,"color":"#FF8800"}]
item replace entity @s enderchest.12 with minecraft:green_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.13 with glass[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p1.cages","fallback":"Cages","italic":false,"color":"#0AA5FF"}]
item replace entity @s enderchest.14 with minecraft:green_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.15 with tipped_arrow[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p1.arrows","fallback":"Arrow Trails","italic":false,"color":"#FF04F9"},potion_contents={custom_color:16728313},tooltip_display={hidden_components:["potion_contents"]}]
item replace entity @s enderchest.16 with minecraft:green_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.17 with minecraft:lime_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.18 with minecraft:green_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.19 with minecraft:lime_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.20 with minecraft:green_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.21 with minecraft:lime_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.22 with minecraft:green_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.23 with minecraft:lime_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.24 with minecraft:green_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.25 with minecraft:lime_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.26 with minecraft:green_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
