execute if entity @s[tag=!playing] run scoreboard players enable @s cosmetics_ui
scoreboard players set @s cosmetics_ui -1

playsound minecraft:item.bottle.fill player @s ~ ~ ~ 1 2
particle minecraft:crit ~ ~-0.5 ~ 0 0 0 0.35 10 force @s

tellraw @s {"text":"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"}
tellraw @s [{"bold":true,"color":"#FFA114","text":"C"},{"bold":true,"color":"#FE9A2E","text":"o"},{"bold":true,"color":"#FE9348","text":"s"},{"bold":true,"color":"#FD8C62","text":"m"},{"bold":true,"color":"#FD857C","text":"e"},{"bold":true,"color":"#FC7F97","text":"t"},{"bold":true,"color":"#FC78B1","text":"i"},{"bold":true,"color":"#FB71CB","text":"c"},{"bold":true,"color":"#FA63FF","text":"s "},{"bold":false,"color":"dark_gray","text":"(click messages in chat to select)"}]
tellraw @s ""

tellraw @s ["",{"text":"[","color":"green"},{"text":"Death Messages","color":"white","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 1000"},"hover_event":{"action":"show_text","value":"Click to view Death Messages"}},{"text":"]","color":"green"},{"text":"\n "}]
tellraw @s ["",{"text":"[","color":"green"},{"text":"Kill Messages","color":"white","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 2000"},"hover_event":{"action":"show_text","value":"Click to view Kill Messages"}},{"text":"]","color":"green"},{"text":"\n "}]
tellraw @s ["",{"text":"[","color":"green"},{"text":"Arrow Trail","color":"white","click_event":{"action":"run_command","command":"/trigger cosmetics_ui set 3000"},"hover_event":{"action":"show_text","value":"Click to view Arrow Trails"}},{"text":"]","color":"green"},{"text":"\n "}]