scoreboard players add #lvl7d time 1
execute if score #lvl7d time matches 10 run tellraw @a [{"text":"\n\n\n[NPC] ","color":"dark_aqua"},{"text":"So, so, so. Wie ich durch die Kamera sehe, habt also alle es durch die F1n5ternis geschafft?","color":"white"}]
execute if score #lvl7d time matches 50 run tellraw @a [{"text":"\n[NPC] ","color":"dark_aqua"},{"text":"Na dann zeigt mal, wie ihr mit diesen ","color":"white"},{"text":"Mobs ","color":"aqua"},{"text":"zurecht kommt!","color":"white"}]
execute if score #lvl7d time matches 120 run tellraw @a [{"text":"\n[NPC] ","color":"dark_aqua"},{"text":"Ich werde in ","color":"white"},{"text":"5 Sekunden ","color":"aqua"},{"text":"das Glas entfernen... macht euch bereit!","color":"white"}]

execute if score #lvl7d time matches 140 run tellraw @a [{"text":"\n[NPC] ","color":"dark_aqua"},{"text":"4!","color":"white"}]
execute if score #lvl7d time matches 140 run playsound minecraft:block.end_portal_frame.fill master @a 30 37 -38 2 .3
execute if score #lvl7d time matches 160 run tellraw @a [{"text":"[NPC] ","color":"dark_aqua"},{"text":"3!","color":"white"}]
execute if score #lvl7d time matches 160 run playsound minecraft:block.end_portal_frame.fill master @a 30 37 -38 2 .3
execute if score #lvl7d time matches 180 run tellraw @a [{"text":"[NPC] ","color":"dark_aqua"},{"text":"2!","color":"white"}]
execute if score #lvl7d time matches 180 run playsound minecraft:block.end_portal_frame.fill master @a 30 37 -38 2 .3
execute if score #lvl7d time matches 200 run tellraw @a [{"text":"[NPC] ","color":"dark_aqua"},{"text":"1!","color":"white"}]
execute if score #lvl7d time matches 200 run playsound minecraft:block.end_portal_frame.fill master @a 30 37 -38 2 .3
execute if score #lvl7d time matches 220 run tellraw @a [{"text":"[NPC] ","color":"dark_aqua"},{"text":"Viel Erfolg!\n       (Jetzt sollen Block Sounds leise gestellt werden)\n","color":"white"}]
execute if score #lvl7d time matches 220 run fill 31 37 -35 29 39 -35 air
execute if score #lvl7d time matches 220 run playsound minecraft:block.glass.break master @a 30.0 38 -35 .2 .5
execute if score #lvl7d time matches 220 run data merge entity a6ea3a31-589b-4f55-a157-5bd4fc13b043 {block_state:{Name:"minecraft:air"}}

execute if score #lvl7d time matches 220 run playsound minecraft:block.end_portal_frame.fill master @a 30 37 -38 2 1.7
execute if score #lvl7d time matches 220.. run scoreboard players add #lvl7timer time 1
execute if score #lvl7d time matches 220.. run execute if score #lvl7timer time matches 20 run scoreboard players add #lvl7_sec time 1
execute if score #lvl7d time matches 220.. run execute if score #lvl7timer time matches 20 run scoreboard players reset #lvl7timer time
execute if score #lvl7d time matches 220.. run execute if score #lvl7_sec time matches 60.. run scoreboard players add #lvl7_min time 1
execute if score #lvl7d time matches 220.. run execute if score #lvl7_sec time matches 60.. run scoreboard players remove #lvl7_sec time 60
execute if score #lvl7d time matches 220.. if score #lvl7_sec time matches ..9 run data merge entity e5abd830-189a-487f-8f1b-722c1825032e {text:'[{"text":"Ihr habt\\n","color":"white"},{"score":{"name":"#lvl7_min","objective":"time"},"color":"gold"},{"text":":","color":"white"},{"text":"0","color":"gold"},{"score":{"name":"#lvl7_sec","objective":"time"},"color":"gold"},{"text":" gebraucht,\\n um es heraus zu finden!","color":"white"}]'}
execute if score #lvl7d time matches 220.. unless score #lvl7_sec time matches ..9 run data merge entity e5abd830-189a-487f-8f1b-722c1825032e {text:'[{"text":"Ihr habt:\\n","color":"white"},{"score":{"name":"#lvl7_min","objective":"time"},"color":"gold"},{"text":":","color":"white"},{"score":{"name":"#lvl7_sec","objective":"time"},"color":"gold"},{"text":" gebraucht,\\n um es heraus zu finden!","color":"white"}]'}
execute if score #lvl7d time matches 220.. run execute if entity @a[x=11,dx=3,y=42,dy=4,z=-31,dz=9] run scoreboard players set #lvl7d time -1
