kill @e[type=interaction]
kill @e[type=text_display]
kill @e[type=item_display]
kill @e[type=wolf]
fill 73 -58 5 73 -50 14 barrier

summon item_display ^2.5 ^4 ^2.5 {Tags:["logo"],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:[1.5f,0.75f,0.1f]},Rotation:[-90f,0f],item:{id:"minecraft:paper",count:1,components:{"item_model":"minecraft:logo"}}}

execute if entity @a[tag=!tutorial_finished] run summon interaction ^2.5 ^3 ^2.5 {width:1f,height:0.25f,response:1b,Tags:["button","main_menu","play"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","main_menu","play","text"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[2f,2f,2f]},text:'{"color":"#ff9100","bold":true,"text":"START"}',background:7566195}]}

execute if entity @a[tag=tutorial_finished] run summon interaction ^2.5 ^3 ^2.5 {width:1f,height:0.25f,response:1b,Tags:["button","main_menu","play"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","main_menu","play","text"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[2f,2f,2f]},text:'{"color":"#ff9100","bold":true,"text":"CONTINUE"}',background:7566195}]}


summon interaction ^2.5 ^2.5 ^2.5 {width:1f,height:0.25f,response:1b,Tags:["button","main_menu","settings"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","main_menu","settings","text"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[2f,2f,2f]},text:'{"color":"gold","text":"Settings"}',background:7566195}]}

summon interaction ^2.5 ^2 ^2.5 {width:1f,height:0.25f,response:1b,Tags:["button","main_menu","credits"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","main_menu","credits","text"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,0f],scale:[2f,2f,2f]},text:'{"color":"gold","text":"Credits"}',background:7566195}]}

summon item_display ^2.5 ^2 ^2.6 {Tags:["main_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"}}

execute if entity @a run summon interaction ^2.5 ^0.75 ^2.5 {width:1f,height:0.25f,response:1b,Tags:["button","main_menu","skip_tutorial"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","main_menu","admin_tag","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":"light_purple","text":"Skip Tutorial","bold":false}',background:7566195}]}

execute if entity @a[name="PinkiusPie"] run summon interaction ^2.5 ^0.25 ^2.5 {width:1f,height:0.25f,response:1b,Tags:["button","main_menu","admin_tag"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","main_menu","admin_tag","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":"light_purple","text":"Unlock All","bold":false}',background:7566195}]}


execute if entity @a[name="PinkiusPie"] run summon interaction ^2.5 ^-0.25 ^2.5 {width:1f,height:0.25f,response:1b,Tags:["button","main_menu","admin"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[90F,0F],alignment:"center",Tags:["button","main_menu","admin","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":"light_purple","text":"Admin Area","bold":false}',background:7566195}]}