tp @e[type=block_display,tag=main_menu] 62 -58 7 -180 0

kill @e[type=text_display,tag=hit_sound]
kill @e[type=interaction,tag=hit_sound]

execute if entity @a[tag=hit_sound_fast] at @a run playsound atmos:ding_1 master @a ~ ~ ~ 10 1
execute if entity @a[tag=hit_sound_fast] run summon interaction ^-1 ^1.25 ^3 {width:1.25f,height:0.25f,response:1b,Tags:["button","setting","hit_sound_fast","hit_sound"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[0F,0F],alignment:"center",Tags:["button","setting","text","hit_sound_fast","hit_sound"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0.5f],scale:[0.75f,0.75f,0.75f]},text:'[{"color":"yellow","text":"Hit Sound: "},{"color":"green","text":"[Fast]","bold":true}]',background:7566195}]}

execute if entity @a[tag=hit_sound_slow] at @a run playsound atmos:ding_1 master @a ~ ~ ~ 10 0.8
execute if entity @a[tag=hit_sound_slow] run summon interaction ^-1 ^1.25 ^3 {width:1.25f,height:0.25f,response:1b,Tags:["button","setting","hit_sound_slow","hit_sound"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[0F,0F],alignment:"center",Tags:["button","setting","text","hit_sound_slow","hit_sound"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0.5f],scale:[0.75f,0.75f,0.75f]},text:'[{"color":"yellow","text":"Hit Sound: "},{"color":"gold","text":"[Slow]","bold":true}]',background:7566195}]}

execute if entity @a[tag=!hit_sound_fast,tag=!hit_sound_slow] at @a run playsound atmos:ding_1 master @a ~ ~ ~ 10 0.5
execute if entity @a[tag=!hit_sound_fast,tag=!hit_sound_slow] run summon interaction ^-1 ^1.25 ^3 {width:1.25f,height:0.25f,response:1b,Tags:["button","setting","hit_sound_off","hit_sound"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[0F,0F],alignment:"center",Tags:["button","setting","text","hit_sound_off","hit_sound"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0.5f],scale:[0.75f,0.75f,0.75f]},text:'[{"color":"yellow","text":"Hit Sound: "},{"color":"red","text":"[Off]","bold":true}]',background:7566195}]}