execute if score @s phantom_cultist_end_crystal_timer matches 280 run scoreboard players remove @e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest] phantom_cultist_text_display_show 1
execute if score @s phantom_cultist_end_crystal_timer matches 260 run scoreboard players remove @e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest] phantom_cultist_text_display_show 1
execute if score @s phantom_cultist_end_crystal_timer matches 240 run scoreboard players remove @e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest] phantom_cultist_text_display_show 1
execute if score @s phantom_cultist_end_crystal_timer matches 220 run scoreboard players remove @e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest] phantom_cultist_text_display_show 1
execute if score @s phantom_cultist_end_crystal_timer matches 200 run scoreboard players remove @e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest] phantom_cultist_text_display_show 1
execute if score @s phantom_cultist_end_crystal_timer matches 180 run scoreboard players remove @e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest] phantom_cultist_text_display_show 1
execute if score @s phantom_cultist_end_crystal_timer matches 160 run scoreboard players remove @e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest] phantom_cultist_text_display_show 1
execute if score @s phantom_cultist_end_crystal_timer matches 140 run scoreboard players remove @e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest] phantom_cultist_text_display_show 1
execute if score @s phantom_cultist_end_crystal_timer matches 120 run scoreboard players remove @e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest] phantom_cultist_text_display_show 1
execute if score @s phantom_cultist_end_crystal_timer matches 120 run scoreboard players remove @e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest] phantom_cultist_text_display_show 1
execute if score @s phantom_cultist_end_crystal_timer matches 80 run scoreboard players remove @e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest] phantom_cultist_text_display_show 1
execute if score @s phantom_cultist_end_crystal_timer matches 60 run scoreboard players remove @e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest] phantom_cultist_text_display_show 1
execute if score @s phantom_cultist_end_crystal_timer matches 40 run scoreboard players remove @e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest] phantom_cultist_text_display_show 1
execute if score @s phantom_cultist_end_crystal_timer matches 20 run scoreboard players remove @e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest] phantom_cultist_text_display_show 1
execute if score @s phantom_cultist_end_crystal_timer matches 0 run scoreboard players remove @e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest] phantom_cultist_text_display_show 1

execute if score @s phantom_cultist_end_crystal_timer matches 280 run data merge entity @s {text:'[{"bold":true,"color":"red","italic":false,"text":"["},{"bold":true,"color":"green","italic":false,"score":{"name":"@e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest]","objective":"phantom_cultist_text_display_show"}},{"bold":true,"color":"red","italic":false,"text":"]"}]'}
execute if score @s phantom_cultist_end_crystal_timer matches 260 run data merge entity @s {text:'[{"bold":true,"color":"red","italic":false,"text":"["},{"bold":true,"color":"green","italic":false,"score":{"name":"@e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest]","objective":"phantom_cultist_text_display_show"}},{"bold":true,"color":"red","italic":false,"text":"]"}]'}
execute if score @s phantom_cultist_end_crystal_timer matches 240 run data merge entity @s {text:'[{"bold":true,"color":"red","italic":false,"text":"["},{"bold":true,"color":"green","italic":false,"score":{"name":"@e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest]","objective":"phantom_cultist_text_display_show"}},{"bold":true,"color":"red","italic":false,"text":"]"}]'}
execute if score @s phantom_cultist_end_crystal_timer matches 220 run data merge entity @s {text:'[{"bold":true,"color":"red","italic":false,"text":"["},{"bold":true,"color":"green","italic":false,"score":{"name":"@e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest]","objective":"phantom_cultist_text_display_show"}},{"bold":true,"color":"red","italic":false,"text":"]"}]'}
execute if score @s phantom_cultist_end_crystal_timer matches 200 run data merge entity @s {text:'[{"bold":true,"color":"red","italic":false,"text":"["},{"bold":true,"color":"green","italic":false,"score":{"name":"@e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest]","objective":"phantom_cultist_text_display_show"}},{"bold":true,"color":"red","italic":false,"text":"]"}]'}
execute if score @s phantom_cultist_end_crystal_timer matches 180 run data merge entity @s {text:'[{"bold":true,"color":"red","italic":false,"text":"["},{"bold":true,"color":"yellow","italic":false,"score":{"name":"@e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest]","objective":"phantom_cultist_text_display_show"}},{"bold":true,"color":"red","italic":false,"text":"]"}]'}
execute if score @s phantom_cultist_end_crystal_timer matches 160 run data merge entity @s {text:'[{"bold":true,"color":"red","italic":false,"text":"["},{"bold":true,"color":"yellow","italic":false,"score":{"name":"@e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest]","objective":"phantom_cultist_text_display_show"}},{"bold":true,"color":"red","italic":false,"text":"]"}]'}
execute if score @s phantom_cultist_end_crystal_timer matches 140 run data merge entity @s {text:'[{"bold":true,"color":"red","italic":false,"text":"["},{"bold":true,"color":"yellow","italic":false,"score":{"name":"@e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest]","objective":"phantom_cultist_text_display_show"}},{"bold":true,"color":"red","italic":false,"text":"]"}]'}
execute if score @s phantom_cultist_end_crystal_timer matches 120 run data merge entity @s {text:'[{"bold":true,"color":"red","italic":false,"text":"["},{"bold":true,"color":"yellow","italic":false,"score":{"name":"@e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest]","objective":"phantom_cultist_text_display_show"}},{"bold":true,"color":"red","italic":false,"text":"]"}]'}
execute if score @s phantom_cultist_end_crystal_timer matches 120 run data merge entity @s {text:'[{"bold":true,"color":"red","italic":false,"text":"["},{"bold":true,"color":"yellow","italic":false,"score":{"name":"@e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest]","objective":"phantom_cultist_text_display_show"}},{"bold":true,"color":"red","italic":false,"text":"]"}]'}
execute if score @s phantom_cultist_end_crystal_timer matches 80 run data merge entity @s {text:'[{"bold":true,"color":"red","italic":false,"text":"["},{"bold":true,"color":"red","italic":false,"score":{"name":"@e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest]","objective":"phantom_cultist_text_display_show"}},{"bold":true,"color":"red","italic":false,"text":"]"}]'}
execute if score @s phantom_cultist_end_crystal_timer matches 60 run data merge entity @s {text:'[{"bold":true,"color":"red","italic":false,"text":"["},{"bold":true,"color":"red","italic":false,"score":{"name":"@e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest]","objective":"phantom_cultist_text_display_show"}},{"bold":true,"color":"red","italic":false,"text":"]"}]'}
execute if score @s phantom_cultist_end_crystal_timer matches 40 run data merge entity @s {text:'[{"bold":true,"color":"red","italic":false,"text":"["},{"bold":true,"color":"red","italic":false,"score":{"name":"@e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest]","objective":"phantom_cultist_text_display_show"}},{"bold":true,"color":"red","italic":false,"text":"]"}]'}
execute if score @s phantom_cultist_end_crystal_timer matches 20 run data merge entity @s {text:'[{"bold":true,"color":"red","italic":false,"text":"["},{"bold":true,"color":"red","italic":false,"score":{"name":"@e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest]","objective":"phantom_cultist_text_display_show"}},{"bold":true,"color":"red","italic":false,"text":"]"}]'}
execute if score @s phantom_cultist_end_crystal_timer matches 0 run data merge entity @s {text:'[{"bold":true,"color":"red","italic":false,"text":"["},{"bold":true,"color":"red","italic":false,"score":{"name":"@e[type=end_crystal,tag=phantom_cultist_crystal,limit=1,sort=nearest]","objective":"phantom_cultist_text_display_show"}},{"bold":true,"color":"red","italic":false,"text":"]"}]'}

execute if score @s phantom_cultist_end_crystal_timer matches 280 run playsound ui.button.click hostile @a[distance=..12] ~ ~ ~ 2 1.5
execute if score @s phantom_cultist_end_crystal_timer matches 260 run playsound ui.button.click hostile @a[distance=..12] ~ ~ ~ 2 1.5
execute if score @s phantom_cultist_end_crystal_timer matches 240 run playsound ui.button.click hostile @a[distance=..12] ~ ~ ~ 2 1.5
execute if score @s phantom_cultist_end_crystal_timer matches 220 run playsound ui.button.click hostile @a[distance=..12] ~ ~ ~ 2 1.5
execute if score @s phantom_cultist_end_crystal_timer matches 200 run playsound ui.button.click hostile @a[distance=..12] ~ ~ ~ 2 1.5
execute if score @s phantom_cultist_end_crystal_timer matches 180 run playsound ui.button.click hostile @a[distance=..12] ~ ~ ~ 2 1.5
execute if score @s phantom_cultist_end_crystal_timer matches 160 run playsound ui.button.click hostile @a[distance=..12] ~ ~ ~ 2 1.5
execute if score @s phantom_cultist_end_crystal_timer matches 140 run playsound ui.button.click hostile @a[distance=..12] ~ ~ ~ 2 1.5
execute if score @s phantom_cultist_end_crystal_timer matches 120 run playsound ui.button.click hostile @a[distance=..12] ~ ~ ~ 2 1.5
execute if score @s phantom_cultist_end_crystal_timer matches 120 run playsound ui.button.click hostile @a[distance=..12] ~ ~ ~ 2 1.5
execute if score @s phantom_cultist_end_crystal_timer matches 80 run playsound ui.button.click hostile @a[distance=..12] ~ ~ ~ 2 1.5
execute if score @s phantom_cultist_end_crystal_timer matches 60 run playsound ui.button.click hostile @a[distance=..12] ~ ~ ~ 2 1.5
execute if score @s phantom_cultist_end_crystal_timer matches 40 run playsound ui.button.click hostile @a[distance=..12] ~ ~ ~ 2 1.5
execute if score @s phantom_cultist_end_crystal_timer matches 20 run playsound ui.button.click hostile @a[distance=..12] ~ ~ ~ 2 1.5
execute if score @s phantom_cultist_end_crystal_timer matches 0 run playsound ui.button.click hostile @a[distance=..12] ~ ~ ~ 2 1.5