# Testing Click
## Back click
execute as @s[nbt={EnderItems:[{Slot:10b,id:"minecraft:shield"}]}] 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:shield"}]}] 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

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

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

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

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

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

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

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

# PLACING GUI (slots 0–9)
execute if entity @s[scores={easter_arbol=1}] run item replace entity @s enderchest.0 with minecraft:red_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
execute unless entity @s[scores={easter_arbol=1}] run item replace entity @s enderchest.0 with minecraft:red_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.1 with minecraft:orange_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.2 with minecraft:red_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.3 with minecraft:orange_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.4 with minecraft:red_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.5 with minecraft:orange_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.6 with minecraft:red_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.7 with minecraft:orange_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.8 with minecraft:red_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.9 with minecraft:orange_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]

# NORMAL SHIELD (slot 10)
execute unless score @s shield_type matches 1 run item replace entity @s enderchest.10 with minecraft:shield[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.normal","fallback":"Normal Shield","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked","color":"green"}],tooltip_display={hidden_components:["banner_patterns","base_color"]}]
execute if score @s shield_type matches 1 run item replace entity @s enderchest.10 with minecraft:shield[minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.normal","fallback":"Normal Shield","italic":true,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],enchantment_glint_override=true,tooltip_display={hidden_components:["banner_patterns","base_color"]}]

# SKULL SHIELD (slot 14)
execute unless score @s shield_type matches 2 if score @s statsKills matches ..4 run item replace entity @s enderchest.14 with minecraft:shield[base_color="yellow",banner_patterns=[{"pattern":"minecraft:curly_border","color":"white"},{"pattern":"minecraft:stripe_center","color":"white"},{"pattern":"minecraft:stripe_bottom","color":"black"},{"pattern":"minecraft:creeper","color":"white"},{"pattern":"minecraft:stripe_top","color":"yellow"},{"pattern":"minecraft:triangles_top","color":"black"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.skull","fallback":"Skull Shield","italic":false,"color":"red"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.kills","fallback":"You need %s kills to unlock.","with":["5"],"color":"red"}],tooltip_display={hidden_components:["banner_patterns","base_color"]}]
execute unless score @s shield_type matches 2 if score @s statsKills matches 5.. run item replace entity @s enderchest.14 with minecraft:shield[base_color="yellow",banner_patterns=[{"pattern":"minecraft:curly_border","color":"white"},{"pattern":"minecraft:stripe_center","color":"white"},{"pattern":"minecraft:stripe_bottom","color":"black"},{"pattern":"minecraft:creeper","color":"white"},{"pattern":"minecraft:stripe_top","color":"yellow"},{"pattern":"minecraft:triangles_top","color":"black"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.skull","fallback":"Skull Shield","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked","color":"green"}],tooltip_display={hidden_components:["banner_patterns","base_color"]}]
execute if score @s shield_type matches 2 run item replace entity @s enderchest.14 with minecraft:shield[base_color="yellow",banner_patterns=[{"pattern":"minecraft:curly_border","color":"white"},{"pattern":"minecraft:stripe_center","color":"white"},{"pattern":"minecraft:stripe_bottom","color":"black"},{"pattern":"minecraft:creeper","color":"white"},{"pattern":"minecraft:stripe_top","color":"yellow"},{"pattern":"minecraft:triangles_top","color":"black"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.skull","fallback":"Skull Shield","italic":true,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],enchantment_glint_override=true,tooltip_display={hidden_components:["banner_patterns","base_color"]}]

# POKEBALL SHIELD (slot 11)
execute unless score @s shield_type matches 3 if score @s statsWins matches ..0 run item replace entity @s enderchest.11 with minecraft:shield[base_color="white",banner_patterns=[{"pattern":"minecraft:half_horizontal","color":"red"},{"pattern":"minecraft:rhombus","color":"black"},{"pattern":"minecraft:stripe_top","color":"red"},{"pattern":"minecraft:stripe_bottom","color":"white"},{"pattern":"minecraft:stripe_middle","color":"black"},{"pattern":"minecraft:circle","color":"white"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.pokeball","fallback":"Pokeball Shield","italic":false,"color":"red"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.wins","fallback":"You need %s wins to unlock.","with":["1"],"color":"red"}],tooltip_display={hidden_components:["banner_patterns","base_color"]}]
execute unless score @s shield_type matches 3 if score @s statsWins matches 1.. run item replace entity @s enderchest.11 with minecraft:shield[base_color="white",banner_patterns=[{"pattern":"minecraft:half_horizontal","color":"red"},{"pattern":"minecraft:rhombus","color":"black"},{"pattern":"minecraft:stripe_top","color":"red"},{"pattern":"minecraft:stripe_bottom","color":"white"},{"pattern":"minecraft:stripe_middle","color":"black"},{"pattern":"minecraft:circle","color":"white"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.pokeball","fallback":"Pokeball Shield","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked","color":"green"}],tooltip_display={hidden_components:["banner_patterns","base_color"]}]
execute if score @s shield_type matches 3 run item replace entity @s enderchest.11 with minecraft:shield[base_color="white",banner_patterns=[{"pattern":"minecraft:half_horizontal","color":"red"},{"pattern":"minecraft:rhombus","color":"black"},{"pattern":"minecraft:stripe_top","color":"red"},{"pattern":"minecraft:stripe_bottom","color":"white"},{"pattern":"minecraft:stripe_middle","color":"black"},{"pattern":"minecraft:circle","color":"white"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.pokeball","fallback":"Pokeball Shield","italic":true,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],enchantment_glint_override=true,tooltip_display={hidden_components:["banner_patterns","base_color"]}]

# CROWN SHIELD (slot 13)
execute unless score @s shield_type matches 4 if score @s statsWins matches ..4 run item replace entity @s enderchest.13 with minecraft:shield[base_color="black",banner_patterns=[{"pattern":"minecraft:stripe_middle","color":"yellow"},{"pattern":"minecraft:stripe_middle","color":"yellow"},{"pattern":"minecraft:half_horizontal","color":"black"},{"pattern":"minecraft:border","color":"black"},{"pattern":"minecraft:piglin","color":"black"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.crown","fallback":"Crown Shield","italic":false,"color":"red"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.wins","fallback":"You need %s wins to unlock.","with":["5"],"color":"red"}],tooltip_display={hidden_components:["banner_patterns","base_color"]}]
execute unless score @s shield_type matches 4 if score @s statsWins matches 5.. run item replace entity @s enderchest.13 with minecraft:shield[base_color="black",banner_patterns=[{"pattern":"minecraft:stripe_middle","color":"yellow"},{"pattern":"minecraft:stripe_middle","color":"yellow"},{"pattern":"minecraft:half_horizontal","color":"black"},{"pattern":"minecraft:border","color":"black"},{"pattern":"minecraft:piglin","color":"black"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.crown","fallback":"Crown Shield","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked","color":"green"}],tooltip_display={hidden_components:["banner_patterns","base_color"]}]
execute if score @s shield_type matches 4 run item replace entity @s enderchest.13 with minecraft:shield[base_color="black",banner_patterns=[{"pattern":"minecraft:stripe_middle","color":"yellow"},{"pattern":"minecraft:stripe_middle","color":"yellow"},{"pattern":"minecraft:half_horizontal","color":"black"},{"pattern":"minecraft:border","color":"black"},{"pattern":"minecraft:piglin","color":"black"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.crown","fallback":"Crown Shield","italic":true,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],enchantment_glint_override=true,tooltip_display={hidden_components:["banner_patterns","base_color"]}]

# CHICKEN SHIELD (slot 12)
execute unless score @s shield_type matches 5 if score @s statsWins matches ..2 run item replace entity @s enderchest.12 with minecraft:shield[base_color="white",banner_patterns=[{"pattern":"minecraft:square_top_left","color":"black"},{"pattern":"minecraft:square_top_right","color":"black"},{"pattern":"minecraft:straight_cross","color":"white"},{"pattern":"minecraft:half_horizontal_bottom","color":"red"},{"pattern":"minecraft:border","color":"white"},{"pattern":"minecraft:stripe_middle","color":"yellow"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.chicken","fallback":"Chicken Shield","italic":false,"color":"red"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.wins","fallback":"You need %s wins to unlock.","with":["3"],"color":"red"}],tooltip_display={hidden_components:["banner_patterns","base_color"]}]
execute unless score @s shield_type matches 5 if score @s statsWins matches 3.. run item replace entity @s enderchest.12 with minecraft:shield[base_color="white",banner_patterns=[{"pattern":"minecraft:square_top_left","color":"black"},{"pattern":"minecraft:square_top_right","color":"black"},{"pattern":"minecraft:straight_cross","color":"white"},{"pattern":"minecraft:half_horizontal_bottom","color":"red"},{"pattern":"minecraft:border","color":"white"},{"pattern":"minecraft:stripe_middle","color":"yellow"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.chicken","fallback":"Chicken Shield","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked","color":"green"}],tooltip_display={hidden_components:["banner_patterns","base_color"]}]
execute if score @s shield_type matches 5 run item replace entity @s enderchest.12 with minecraft:shield[base_color="white",banner_patterns=[{"pattern":"minecraft:square_top_left","color":"black"},{"pattern":"minecraft:square_top_right","color":"black"},{"pattern":"minecraft:straight_cross","color":"white"},{"pattern":"minecraft:half_horizontal_bottom","color":"red"},{"pattern":"minecraft:border","color":"white"},{"pattern":"minecraft:stripe_middle","color":"yellow"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.chicken","fallback":"Chicken Shield","italic":true,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],enchantment_glint_override=true,tooltip_display={hidden_components:["banner_patterns","base_color"]}]

# CHOCOLATE SHIELD (slot 15)
execute unless score @s shield_type matches 6 if score @s statsKills matches ..9 run item replace entity @s enderchest.15 with minecraft:shield[base_color="black",banner_patterns=[{"pattern":"minecraft:bricks","color":"brown"},{"pattern":"minecraft:half_horizontal_bottom","color":"purple"},{"pattern":"minecraft:stripe_middle","color":"purple"},{"pattern":"minecraft:stripe_downleft","color":"purple"},{"pattern":"minecraft:stripe_right","color":"purple"},{"pattern":"minecraft:mojang","color":"white"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.choco","fallback":"Chocolate Shield","italic":false,"color":"red"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.kills","fallback":"You need %s kills to unlock.","with":["10"],"color":"red"}],tooltip_display={hidden_components:["banner_patterns","base_color"]}]
execute unless score @s shield_type matches 6 if score @s statsKills matches 10.. run item replace entity @s enderchest.15 with minecraft:shield[base_color="black",banner_patterns=[{"pattern":"minecraft:bricks","color":"brown"},{"pattern":"minecraft:half_horizontal_bottom","color":"purple"},{"pattern":"minecraft:stripe_middle","color":"purple"},{"pattern":"minecraft:stripe_downleft","color":"purple"},{"pattern":"minecraft:stripe_right","color":"purple"},{"pattern":"minecraft:mojang","color":"white"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.choco","fallback":"Chocolate Shield","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked","color":"green"}],tooltip_display={hidden_components:["banner_patterns","base_color"]}]
execute if score @s shield_type matches 6 run item replace entity @s enderchest.15 with minecraft:shield[base_color="black",banner_patterns=[{"pattern":"minecraft:bricks","color":"brown"},{"pattern":"minecraft:half_horizontal_bottom","color":"purple"},{"pattern":"minecraft:stripe_middle","color":"purple"},{"pattern":"minecraft:stripe_downleft","color":"purple"},{"pattern":"minecraft:stripe_right","color":"purple"},{"pattern":"minecraft:mojang","color":"white"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.choco","fallback":"Chocolate Shield","italic":true,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],enchantment_glint_override=true,tooltip_display={hidden_components:["banner_patterns","base_color"]}]

# SUNRISE SHIELD (slot 16)
execute unless score @s shield_type matches 7 if score @s statsKills matches ..14 run item replace entity @s enderchest.16 with minecraft:shield[base_color="orange",banner_patterns=[{"pattern":"minecraft:gradient","color":"red"},{"pattern":"minecraft:flower","color":"orange"},{"pattern":"minecraft:circle","color":"yellow"},{"pattern":"minecraft:triangle_bottom","color":"white"},{"pattern":"minecraft:triangles_bottom","color":"light_gray"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.sunrise","fallback":"Sunrise Shield","italic":false,"color":"red"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.kills","fallback":"You need %s kills to unlock.","with":["15"],"color":"red"}],tooltip_display={hidden_components:["banner_patterns","base_color"]}]
execute unless score @s shield_type matches 7 if score @s statsKills matches 15.. run item replace entity @s enderchest.16 with minecraft:shield[base_color="orange",banner_patterns=[{"pattern":"minecraft:gradient","color":"red"},{"pattern":"minecraft:flower","color":"orange"},{"pattern":"minecraft:circle","color":"yellow"},{"pattern":"minecraft:triangle_bottom","color":"white"},{"pattern":"minecraft:triangles_bottom","color":"light_gray"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.sunrise","fallback":"Sunrise Shield","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked","color":"green"}],tooltip_display={hidden_components:["banner_patterns","base_color"]}]
execute if score @s shield_type matches 7 run item replace entity @s enderchest.16 with minecraft:shield[base_color="orange",banner_patterns=[{"pattern":"minecraft:gradient","color":"red"},{"pattern":"minecraft:flower","color":"orange"},{"pattern":"minecraft:circle","color":"yellow"},{"pattern":"minecraft:triangle_bottom","color":"white"},{"pattern":"minecraft:triangles_bottom","color":"light_gray"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.sunrise","fallback":"Sunrise Shield","italic":true,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],enchantment_glint_override=true,tooltip_display={hidden_components:["banner_patterns","base_color"]}]

# TREE SHIELD (slot 22)
execute if entity @s[scores={easter_arbol=1}] unless score @s shield_type matches 8 run item replace entity @s enderchest.22 with minecraft:shield[base_color="cyan",banner_patterns=[{"pattern":"minecraft:cross","color":"brown"},{"pattern":"minecraft:stripe_center","color":"brown"},{"pattern":"minecraft:stripe_top","color":"green"},{"pattern":"minecraft:globe","color":"cyan"},{"pattern":"minecraft:curly_border","color":"cyan"},{"pattern":"minecraft:stripe_bottom","color":"green"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.tree","fallback":"Tree Shield","italic":false,"color":"green"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.unlocked","fallback":"Unlocked by finding the easter egg","color":"green"}],tooltip_display={hidden_components:["banner_patterns","base_color"]}]
execute if entity @s[scores={easter_arbol=1}] if score @s shield_type matches 8 run item replace entity @s enderchest.22 with minecraft:shield[base_color="cyan",banner_patterns=[{"pattern":"minecraft:cross","color":"brown"},{"pattern":"minecraft:stripe_center","color":"brown"},{"pattern":"minecraft:stripe_top","color":"green"},{"pattern":"minecraft:globe","color":"cyan"},{"pattern":"minecraft:curly_border","color":"cyan"},{"pattern":"minecraft:stripe_bottom","color":"green"}],minecraft:custom_data={trash:1b},minecraft:custom_name={"translate":"subchronos.lobby.cosmetics.p3.tree","fallback":"Tree Shield","italic":false,"color":"aqua"},lore=[{"translate":"subchronos.lobby.cosmetics.generic.selected","fallback":"Selected","color":"gray"}],enchantment_glint_override=true,tooltip_display={hidden_components:["banner_patterns","base_color"]}]
execute unless entity @s[scores={easter_arbol=1}] run item replace entity @s enderchest.22 with minecraft:red_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]


# EXTRA GUI (slots 17–21)
item replace entity @s enderchest.17 with minecraft:orange_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:orange_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.20 with minecraft:red_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]
item replace entity @s enderchest.21 with minecraft:orange_stained_glass_pane[minecraft:custom_data={trash:1b},minecraft:custom_name={"text":" "}]

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