execute as @e[type=text_display] run data modify entity @s background set value 7566195
data modify entity @n[type=text_display,tag=classes] background set value -16777216

playsound ui.button.click master @a ~ ~ ~ 10 1

kill @e[type=interaction,tag=button,tag=!main_menu]
kill @e[type=text_display,tag=button,tag=!main_menu]
kill @e[type=item_display,tag=!logo,tag=!main_background]
summon interaction 71 -53.25 9 {width:0.5f,height:0.25f,response:1b,Tags:["button"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","text","choice"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},text:'{"color":"gold","bold":true,"text":"=Classes="}',background:-16777216}]}

#classes
summon interaction 71 -53.75 9 {width:0.5f,height:0.25f,response:1b,Tags:["button","gunner"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","gunner","text","choice"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},text:'{"color":"aqua","text":"Gunner"}',background:7566195}]}

summon interaction 71 -54.25 9 {width:0.5f,height:0.25f,response:1b,Tags:["button","brawler"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","brawler","text","choice"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},text:'{"color":"red","text":"Brawler"}',background:7566195}]}

execute if entity @a[tag=sniper_unlocked] run summon interaction 71 -54.75 9 {width:0.5f,height:0.25f,response:1b,Tags:["button","sniper"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","sniper","text","choice"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},text:'{"color":"green","text":"Sniper"}',background:7566195}]}

execute if entity @a[tag=assassin_unlocked] run summon interaction 71 -55.25 9 {width:0.5f,height:0.25f,response:1b,Tags:["button","assassin"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","assassin","text","choice"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},text:'{"color":"gray","text":"Assassin"}',background:7566195}]}

execute if entity @a[tag=engineer_unlocked] run summon interaction 71 -55.75 9 {width:0.5f,height:0.25f,response:1b,Tags:["button","engineer"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","engineer","text","choice"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},text:'{"color":"yellow","text":"Engineer"}',background:7566195}]}

execute if entity @a[tag=archer_unlocked] run summon interaction 71 -56.25 9 {width:0.5f,height:0.25f,response:1b,Tags:["button","archer"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","archer","text","choice"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},text:'{"color":"light_purple","text":"Archer"}',background:7566195}]}

execute if entity @a[tag=knight_unlocked] run summon interaction 71 -56.75 9 {width:0.5f,height:0.25f,response:1b,Tags:["button","knight"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","knight","text","choice"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},text:'{"color":"gold","text":"Knight"}',background:7566195}]}

#locked
execute if entity @a[tag=!sniper_unlocked] run summon interaction 71 -54.75 9 {width:0.5f,height:0.25f,response:1b,Tags:["button","locked","sniper"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","locked","text","choice"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},text:'{"color":"dark_gray","text":"Sniper"}',background:7566195}]}

execute if entity @a[tag=!assassin_unlocked] run summon interaction 71 -55.25 9 {width:0.5f,height:0.25f,response:1b,Tags:["button","locked","assassin"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","locked","text","choice"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},text:'{"color":"dark_gray","text":"Assassin"}',background:7566195}]}

execute if entity @a[tag=!engineer_unlocked] run summon interaction 71 -55.75 9 {width:0.5f,height:0.25f,response:1b,Tags:["button","locked","engineer"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","locked","text","choice"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},text:'{"color":"dark_gray","text":"Engineer"}',background:7566195}]}

execute if entity @a[tag=!archer_unlocked] run summon interaction 71 -56.25 9 {width:0.5f,height:0.25f,response:1b,Tags:["button","locked","archer"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","locked","text","choice"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},text:'{"color":"dark_gray","text":"Archer"}',background:7566195}]}

execute if entity @a[tag=!knight_unlocked] run summon interaction 71 -56.75 9 {width:0.5f,height:0.25f,response:1b,Tags:["button","locked","knight"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","locked","text","choice"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},text:'{"color":"dark_gray","text":"Knight"}',background:7566195}]}

#background
summon item_display 71.9 -55 9 {Tags:["background"],Rotation:[90F,0F],shadow_strength:0f,shadow_radius:0f,brightness:{sky:15,block:0},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[2f,5f,0.1f]},item:{id:"minecraft:black_stained_glass"}}

summon item_display 71.95 -54.5 11 {Tags:["background"],Rotation:[90F,0F],shadow_strength:0f,shadow_radius:0f,brightness:{sky:15,block:0},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[1f,1f,0.1f]},item:{id:"minecraft:black_stained_glass"}}

execute at @e[type=block_display,tag=main_menu] run summon interaction ^-2 ^1 ^2.5 {width:0.5f,height:0.25f,response:1b,Tags:["button","fake_start"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","text","fake_start"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},text:'{"color":"dark_red","bold":true,"text":"[START]"}',background:7566195}]}