# Testing Click

## Back click
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]}] run execute unless entity @s[nbt={EnderItems:[{Slot:18b,id:"minecraft:ender_pearl"}]}] run scoreboard players set @s men_cos 1
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]}] run execute unless entity @s[nbt={EnderItems:[{Slot:18b,id:"minecraft:ender_pearl"}]}] at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.5

## Glass click
execute as @s[nbt={EnderItems:[{Slot:11b,id:"minecraft:lime_stained_glass"}]}] run execute unless entity @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]}] run scoreboard players set @s cage_type 1
execute as @s[nbt={EnderItems:[{Slot:11b,id:"minecraft:lime_stained_glass"}]}] run execute unless entity @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]}] at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.5

## Green glass click
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsWins=1..}] run execute unless entity @s[nbt={EnderItems:[{Slot:11b,id:"minecraft:lime_stained_glass"}]}] run scoreboard players set @s cage_type 2
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsWins=1..}] run execute unless entity @s[nbt={EnderItems:[{Slot:11b,id:"minecraft:lime_stained_glass"}]}] at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.5
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsWins=0}] run execute unless entity @s[nbt={EnderItems:[{Slot:11b,id:"minecraft:lime_stained_glass"}]}] run tellraw @s {"translate":"subchronos.lobby.cosmetics.generic.wins","fallback":"You need %s wins to use these cage!","with":["1"],"color":"red"}
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsWins=0}] run execute unless entity @s[nbt={EnderItems:[{Slot:11b,id:"minecraft:lime_stained_glass"}]}] at @s run playsound minecraft:entity.villager.no master @s ~ ~ ~ 1

## Potion click
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsWins=3..}] run execute unless entity @s[nbt={EnderItems:[{Slot:12b,id:"minecraft:potion"}]}] run scoreboard players set @s cage_type 3
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsWins=3..}] run execute unless entity @s[nbt={EnderItems:[{Slot:12b,id:"minecraft:potion"}]}] at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.5
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsWins=..2}] run execute unless entity @s[nbt={EnderItems:[{Slot:12b,id:"minecraft:potion"}]}] run tellraw @s {"translate":"subchronos.lobby.cosmetics.generic.wins","fallback":"You need %s wins to use these cage!","with":["3"],"color":"red"}
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsWins=..2}] run execute unless entity @s[nbt={EnderItems:[{Slot:12b,id:"minecraft:potion"}]}] at @s run playsound minecraft:entity.villager.no master @s ~ ~ ~ 1

## IronBar click
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsKills=10..}] run execute unless entity @s[nbt={EnderItems:[{Slot:15b,id:"minecraft:iron_bars"}]}] run scoreboard players set @s cage_type 4
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsKills=10..}] run execute unless entity @s[nbt={EnderItems:[{Slot:15b,id:"minecraft:iron_bars"}]}] at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.5
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsKills=..9}] run execute unless entity @s[nbt={EnderItems:[{Slot:15b,id:"minecraft:iron_bars"}]}] run tellraw @s {"translate":"subchronos.lobby.cosmetics.generic.kills","fallback":"You need %s kills to use these cage!","with":["10"],"color":"red"}
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsKills=..9}] run execute unless entity @s[nbt={EnderItems:[{Slot:15b,id:"minecraft:iron_bars"}]}] at @s run playsound minecraft:entity.villager.no master @s ~ ~ ~ 1

## Piston click
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsWins=5..}] run execute unless entity @s[nbt={EnderItems:[{Slot:13b,id:"minecraft:piston"}]}] run scoreboard players set @s cage_type 5
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsWins=5..}] run execute unless entity @s[nbt={EnderItems:[{Slot:13b,id:"minecraft:piston"}]}] at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.5
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsWins=..4}] run execute unless entity @s[nbt={EnderItems:[{Slot:13b,id:"minecraft:piston"}]}] run tellraw @s {"translate":"subchronos.lobby.cosmetics.generic.wins","fallback":"You need %s wins to use these cage!","with":["5"],"color":"red"}
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsWins=..4}] run execute unless entity @s[nbt={EnderItems:[{Slot:13b,id:"minecraft:piston"}]}] at @s run playsound minecraft:entity.villager.no master @s ~ ~ ~ 1

## IronDoor click
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsKills=5..}] run execute unless entity @s[nbt={EnderItems:[{Slot:14b,id:"minecraft:iron_door"}]}] run scoreboard players set @s cage_type 6
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsKills=5..}] run execute unless entity @s[nbt={EnderItems:[{Slot:14b,id:"minecraft:iron_door"}]}] at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.5
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsKills=..4}] run execute unless entity @s[nbt={EnderItems:[{Slot:14b,id:"minecraft:iron_door"}]}] run tellraw @s {"translate":"subchronos.lobby.cosmetics.generic.kills","fallback":"You need %s kills to use these cage!","with":["5"],"color":"red"}
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsKills=..4}] run execute unless entity @s[nbt={EnderItems:[{Slot:14b,id:"minecraft:iron_door"}]}] at @s run playsound minecraft:entity.villager.no master @s ~ ~ ~ 1

## Seta click
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsKills=15..}] run execute unless entity @s[nbt={EnderItems:[{Slot:16b,id:"minecraft:red_mushroom_block"}]}] run scoreboard players set @s cage_type 7
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsKills=15..}] run execute unless entity @s[nbt={EnderItems:[{Slot:16b,id:"minecraft:red_mushroom_block"}]}] at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.5
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsKills=..14}] run execute unless entity @s[nbt={EnderItems:[{Slot:16b,id:"minecraft:red_mushroom_block"}]}] run tellraw @s {"translate":"subchronos.lobby.cosmetics.generic.kills","fallback":"You need %s kills to use these cage!","with":["15"],"color":"red"}
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]},scores={statsKills=..14}] run execute unless entity @s[nbt={EnderItems:[{Slot:16b,id:"minecraft:red_mushroom_block"}]}] at @s run playsound minecraft:entity.villager.no master @s ~ ~ ~ 1

## Shulker click
execute if entity @s[tag=unlocked_pk] as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]}] run execute unless entity @s[nbt={EnderItems:[{Slot:22b,id:"minecraft:pointed_dripstone"}]}] run scoreboard players set @s cage_type 8
execute if entity @s[tag=unlocked_pk] as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:glass"}]}] run execute unless entity @s[nbt={EnderItems:[{Slot:22b,id:"minecraft:pointed_dripstone"}]}] at @s run playsound minecraft:ui.button.click master @s ~ ~ ~ 1 1.5

# Placing GUI

item replace entity @s enderchest.0 with minecraft:blue_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.1 with minecraft:cyan_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.2 with minecraft:blue_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.3 with minecraft:cyan_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.4 with minecraft:blue_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.5 with minecraft:cyan_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.6 with minecraft:blue_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.7 with minecraft:cyan_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.8 with minecraft:blue_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.9 with minecraft:cyan_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
execute unless score @s cage_type matches 1 run item replace entity @s enderchest.10 with glass[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":"Glass cage","italic":false,"color":"green"},lore=[{"text":"Unlocked","color":"green","bold":false,"italic":false}]]
execute if score @s cage_type matches 1 run item replace entity @s enderchest.10 with glass[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":"Glass cage","italic":false,"color":"aqua"},lore=[{"text":"Selected","color":"gray","bold":false,"italic":false}],enchantment_glint_override=true]


# Placing GUI

# Slot 0
execute if entity @s[tag=unlocked_pk] run item replace entity @s enderchest.0 with minecraft:blue_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
execute unless entity @s[tag=unlocked_pk] run item replace entity @s enderchest.0 with minecraft:blue_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]

# Slots 1-9
item replace entity @s enderchest.1 with minecraft:cyan_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.2 with minecraft:blue_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.3 with minecraft:cyan_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.4 with minecraft:blue_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.5 with minecraft:cyan_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.6 with minecraft:blue_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.7 with minecraft:cyan_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.8 with minecraft:blue_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.9 with minecraft:cyan_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]

# GLASS CAGE (slot 10)
execute unless score @s cage_type matches 1 run item replace entity @s enderchest.10 with glass[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.glass","fallback":"Glass cage","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked","color":"green"}]]
execute if score @s cage_type matches 1 run item replace entity @s enderchest.10 with glass[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.glass","fallback":"Glass cage","italic":false,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],enchantment_glint_override=true]

# GREEN CAGE (slot 11)
execute unless score @s cage_type matches 2 if score @s statsWins matches ..0 run item replace entity @s enderchest.11 with minecraft:lime_stained_glass[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.green","fallback":"Green cage","italic":false,"color":"red"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.wins","fallback":"You need %s wins to unlock.","with":["1"],"color":"red"}]]
execute unless score @s cage_type matches 2 if score @s statsWins matches 1.. run item replace entity @s enderchest.11 with minecraft:lime_stained_glass[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.green","fallback":"Green cage","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked","color":"green"}]]
execute if score @s cage_type matches 2 run item replace entity @s enderchest.11 with minecraft:lime_stained_glass[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.green","fallback":"Green cage","italic":false,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],enchantment_glint_override=true]

# INVISIBLE CAGE (slot 12)
execute unless score @s cage_type matches 3 if score @s statsWins matches ..2 run item replace entity @s enderchest.12 with minecraft:potion[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.invisible","fallback":"Invisible cage","italic":false,"color":"red"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.wins","fallback":"You need %s wins to unlock.","with":["3"],"color":"red"}],potion_contents={custom_color:10263708},tooltip_display={hidden_components:["potion_contents"]}]
execute unless score @s cage_type matches 3 if score @s statsWins matches 3.. run item replace entity @s enderchest.12 with minecraft:potion[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.invisible","fallback":"Invisible cage","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked","color":"green"}],potion_contents={custom_color:10263708},tooltip_display={hidden_components:["potion_contents"]}]
execute if score @s cage_type matches 3 run item replace entity @s enderchest.12 with minecraft:potion[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.invisible","fallback":"Invisible cage","italic":false,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],potion_contents={custom_color:10263708},tooltip_display={hidden_components:["potion_contents"]},enchantment_glint_override=true]

# PISTON CAGE (slot 13)
execute unless score @s cage_type matches 5 if score @s statsWins matches ..4 run item replace entity @s enderchest.13 with minecraft:piston[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.piston","fallback":"Piston cage","italic":false,"color":"red"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.wins","fallback":"You need %s wins to unlock.","with":["5"],"color":"red"}]]
execute unless score @s cage_type matches 5 if score @s statsWins matches 5.. run item replace entity @s enderchest.13 with minecraft:piston[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.piston","fallback":"Piston cage","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked","color":"green"}]]
execute if score @s cage_type matches 5 run item replace entity @s enderchest.13 with minecraft:piston[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.piston","fallback":"Piston cage","italic":false,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],enchantment_glint_override=true]

# DOORS CAGE (slot 14)
execute unless score @s cage_type matches 6 if score @s statsKills matches ..4 run item replace entity @s enderchest.14 with minecraft:iron_door[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.door","fallback":"Doors cage","italic":false,"color":"red"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.kills","fallback":"You need %s kills to unlock.","with":["5"],"color":"red"}]]
execute unless score @s cage_type matches 6 if score @s statsKills matches 5.. run item replace entity @s enderchest.14 with minecraft:iron_door[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.door","fallback":"Doors cage","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked","color":"green"}]]
execute if score @s cage_type matches 6 run item replace entity @s enderchest.14 with minecraft:iron_door[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.door","fallback":"Doors cage","italic":false,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],enchantment_glint_override=true]

# JAIL CAGE (slot 15)
execute unless score @s cage_type matches 4 if score @s statsKills matches ..9 run item replace entity @s enderchest.15 with minecraft:iron_bars[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.jail","fallback":"Jail cage","italic":false,"color":"red"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.kills","fallback":"You need %s kills to unlock.","with":["10"],"color":"red"}]]
execute unless score @s cage_type matches 4 if score @s statsKills matches 10.. run item replace entity @s enderchest.15 with minecraft:iron_bars[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.jail","fallback":"Jail cage","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked","color":"green"}]]
execute if score @s cage_type matches 4 run item replace entity @s enderchest.15 with minecraft:iron_bars[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.jail","fallback":"Jail cage","italic":false,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],enchantment_glint_override=true]

# MUSHROOM CAGE (slot 16)
execute unless score @s cage_type matches 7 if score @s statsKills matches ..14 run item replace entity @s enderchest.16 with minecraft:red_mushroom_block[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.mushroom","fallback":"Mushroom cage","italic":false,"color":"red"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.kills","fallback":"You need %s kills to unlock.","with":["15"],"color":"red"}]]
execute unless score @s cage_type matches 7 if score @s statsKills matches 15.. run item replace entity @s enderchest.16 with minecraft:red_mushroom_block[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.mushroom","fallback":"Mushroom cage","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked","color":"green"}]]
execute if score @s cage_type matches 7 run item replace entity @s enderchest.16 with minecraft:red_mushroom_block[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.mushroom","fallback":"Mushroom cage","italic":false,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],enchantment_glint_override=true]

# Slots 17-21
item replace entity @s enderchest.17 with minecraft:cyan_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.18 with minecraft:ender_pearl[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.generic.back","fallback":"Back","italic":false,"color":"#A1A1A1"}]
item replace entity @s enderchest.19 with minecraft:cyan_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.20 with minecraft:blue_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.21 with minecraft:cyan_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]

# DRIPSTONE CAGE (slot 22)
execute if entity @s[tag=unlocked_pk] unless score @s cage_type matches 8 run item replace entity @s enderchest.22 with minecraft:pointed_dripstone[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.dripstone","fallback":"Dripstone cage","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked by completing the parkour","color":"green"}]]
execute if entity @s[tag=unlocked_pk] if score @s cage_type matches 8 run item replace entity @s enderchest.22 with minecraft:pointed_dripstone[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p2.dripstone","fallback":"Dripstone cage","italic":false,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],enchantment_glint_override=true]
execute unless entity @s[tag=unlocked_pk] run item replace entity @s enderchest.22 with minecraft:blue_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]


item replace entity @s enderchest.23 with minecraft:cyan_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.24 with minecraft:blue_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.25 with minecraft:cyan_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.26 with minecraft:blue_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]