execute if entity @a[advancements={main:progression/finished_run=true}] run function main:hub/objects/teleport/difficulty

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

summon interaction ^-4 ^4 ^1.75 {width:0.5f,height:0.25f,response:1b,Tags:["button","teleport_text"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90f,0f],alignment:"center",Tags:["button","teleport_text","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":"=Last Travel="}',background:7566195}]}

summon interaction ^-4 ^3.5 ^1.75 {width:0.5f,height:0.25f,response:1b,Tags:["button","teleport_text"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90f,0f],alignment:"center",Tags:["button","teleport_text","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":"Kills: "},{"color":"white","score":{"name":".kills","objective":"arena_time_hub"}}]',background:7566195}]}

summon interaction ^-4 ^3.25 ^1.75 {width:0.5f,height:0.25f,response:1b,Tags:["button","teleport_text"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90f,0f],alignment:"center",Tags:["button","teleport_text","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":"Total: "},{"color":"white","score":{"name":".total_min","objective":"arena_time_hub"}},{"text":" min "},{"color":"white","score":{"name":".total_sec","objective":"arena_time_hub"}},{"text":" sec"}]',background:7566195}]}

summon interaction ^-4 ^2.75 ^1.75 {width:0.5f,height:0.25f,response:1b,Tags:["button","teleport_text"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90f,0f],alignment:"center",Tags:["button","teleport_text","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":"Stage I: "},{"color":"white","score":{"name":".stage_1_min","objective":"arena_time_hub"}},{"text":" min "},{"color":"white","score":{"name":".stage_1_sec","objective":"arena_time_hub"}},{"text":" sec"}]',background:7566195}]}

summon interaction ^-4 ^2.5 ^1.75 {width:0.5f,height:0.25f,response:1b,Tags:["button","teleport_text"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90f,0f],alignment:"center",Tags:["button","teleport_text","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":"Stage II: "},{"color":"white","score":{"name":".stage_3_min","objective":"arena_time_hub"}},{"text":" min "},{"color":"white","score":{"name":".stage_2_sec","objective":"arena_time_hub"}},{"text":" sec"}]',background:7566195}]}

summon interaction ^-4 ^2.25 ^1.75 {width:0.5f,height:0.25f,response:1b,Tags:["button","teleport_text"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90f,0f],alignment:"center",Tags:["button","teleport_text","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":"Stage III: "},{"color":"white","score":{"name":".stage_3_min","objective":"arena_time_hub"}},{"text":" min "},{"color":"white","score":{"name":".stage_3_sec","objective":"arena_time_hub"}},{"text":" sec"}]',background:7566195}]}

summon interaction ^-4 ^2 ^1.75 {width:0.5f,height:0.25f,response:1b,Tags:["button","teleport_text"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90f,0f],alignment:"center",Tags:["button","teleport_text","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":"Stage VI: "},{"color":"white","score":{"name":".stage_4_min","objective":"arena_time_hub"}},{"text":" min "},{"color":"white","score":{"name":".stage_4_sec","objective":"arena_time_hub"}},{"text":" sec"}]',background:7566195}]}

summon interaction ^-4 ^1.5 ^1.75 {width:0.5f,height:0.25f,response:1b,Tags:["button","teleport_text"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90f,0f],alignment:"center",Tags:["button","teleport_text","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":"Boss I: "},{"color":"white","score":{"name":".boss_1_min","objective":"arena_time_hub"}},{"text":" min "},{"color":"white","score":{"name":".boss_1_sec","objective":"arena_time_hub"}},{"text":" sec"}]',background:7566195}]}

summon interaction ^-4 ^1.25 ^1.75 {width:0.5f,height:0.25f,response:1b,Tags:["button","teleport_text"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90f,0f],alignment:"center",Tags:["button","teleport_text","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":"Boss II: "},{"color":"white","score":{"name":".boss_2_min","objective":"arena_time_hub"}},{"text":" min "},{"color":"white","score":{"name":".boss_2_sec","objective":"arena_time_hub"}},{"text":" sec"}]',background:7566195}]}

summon interaction ^-4 ^1 ^1.75 {width:0.5f,height:0.25f,response:1b,Tags:["button","teleport_text"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90f,0f],alignment:"center",Tags:["button","teleport_text","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":"Boss III: "},{"color":"white","score":{"name":".boss_3_min","objective":"arena_time_hub"}},{"text":" min "},{"color":"white","score":{"name":".boss_3_sec","objective":"arena_time_hub"}},{"text":" sec"}]',background:7566195}]}

summon interaction ^-4 ^0.75 ^1.75 {width:0.5f,height:0.25f,response:1b,Tags:["button","teleport_text"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90f,0f],alignment:"center",Tags:["button","teleport_text","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":"Boss VI: "},{"color":"white","score":{"name":".boss_4_min","objective":"arena_time_hub"}},{"text":" min "},{"color":"white","score":{"name":".boss_4_sec","objective":"arena_time_hub"}},{"text":" sec"}]',background:7566195}]}

#background
summon item_display ^-4 ^2.25 ^1.8 {Tags:["background","teleport_text"],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:[2.8f,4.5f,0.1f]},item:{id:"minecraft:black_stained_glass"}}