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

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

summon interaction ^-1 ^4 ^2.5 {width:0.5f,height:0.25f,response:1b,Tags:["button","setting"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","setting","text"],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":"✦Settings✦"}',background:7566195}]}

summon interaction ^-1 ^3.75 ^2.5 {width:0.5f,height:0.25f,response:1b,Tags:["button","setting"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","setting","text"],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":"Use Recommended Values"}]',background:7566195}]}

summon interaction ^-1 ^3.5 ^2.5 {width:0.5f,height:0.25f,response:1b,Tags:["button","setting"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","setting","text"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[1f,1f,1f]},text:'[{"color":"white","text":"In ESC + Options"}]',background:7566195}]}

summon interaction ^-1 ^3 ^2.5 {width:0.5f,height:0.25f,response:1b,Tags:["button","setting"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","setting","text"],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":"✦Recomended Mods✦"}]',background:7566195}]}

summon interaction ^-1 ^2.75 ^2.5 {width:0.5f,height:0.25f,response:1b,Tags:["button","setting"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","setting","text"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[0.75f,0.75f,0.75f]},text:'[{"color":"yellow","text":"Optimization: "},{"color":"white","text":"Sodium/Lithium/etc."}]',background:7566195}]}

summon interaction ^-1 ^2.5 ^2.5 {width:0.5f,height:0.25f,response:1b,Tags:["button","setting"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","setting","text"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[0.75f,0.75f,0.75f]},text:'[{"color":"yellow","text":"Better First Person: "},{"color":"white","text":"Camera Overhaul"}]',background:7566195}]}

summon interaction ^-1 ^2.25 ^2.5 {width:0.5f,height:0.25f,response:1b,Tags:["button","setting"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","setting","text"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[0.75f,0.75f,0.75f]},text:'[{"color":"yellow","text":"Player Animations: "},{"color":"white","text":"Fresh Moves"}]',background:7566195}]}

summon interaction ^-1 ^1.75 ^2.5 {width:0.5f,height:0.25f,response:1b,Tags:["button","setting"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","setting","text"],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":"✦Extra✦"}]',background:7566195}]}

function main:menu/select/buttons/hit_sound
function main:menu/select/buttons/damage_number_setting
# function main:menu/select/buttons/archer_arrow_reset
function main:menu/select/buttons/text_speed
function main:menu/select/buttons/coral_detection

summon interaction ^-1 ^-0.25 ^2.5 {width:0.5f,height:0.25f,response:1b,Tags:["button","erase_data","setting"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","setting","text"],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":"ERASE DATA"}]',background:7566195}]}

# execute if entity @a[tag=background_music] run function main:menu/select/buttons/background_music {"tag":"add","color_1":"#644813","color_2":"#ffa600"}
# execute unless entity @a[tag=background_music] run function main:menu/select/buttons/background_music {"tag":"remove","color_1":"#ffa600","color_2":"#644813"}

summon item_display ^-1 ^2 ^2.55 {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:[3.5f,5f,0.1f]},item:{id:"minecraft:black_stained_glass"}}