execute if score office1 scenes matches 0 if entity @p[x=0,y=61,z=-73,distance=..3] run scoreboard players set office1 scenes 1
execute if score office1 scenes matches 1 run title @a times 40 999 0
execute if score office1 scenes matches 1 run title @a title "\uE001"
execute if score office1 scenes matches 1 run scoreboard players set cleaning_guy ambient 0
execute if score office1 scenes matches 40 run scoreboard players set ambient map 1

execute if score office1 scenes matches 120 run setblock 3 61 -71 spruce_door[open=false,hinge=left,facing=west,half=lower] destroy
execute if score office1 scenes matches 120 run setblock 3 62 -71 spruce_door[open=false,hinge=left,facing=west,half=upper] destroy
execute if score office1 scenes matches 120 run title @a times 0 9999 0
execute if score office1 scenes matches 120 run title @a subtitle "\uE001"
execute if score office1 scenes matches 121 run title @a title "1"
execute if score office1 scenes matches 122 run title @a title "11"
execute if score office1 scenes matches 123 run title @a title "11:"
execute if score office1 scenes matches 124 run title @a title "11:4"
execute if score office1 scenes matches 125 run title @a title "11:46"
execute if score office1 scenes matches 126 run title @a title "11:46 "
execute if score office1 scenes matches 127 run title @a title "11:46 P"
execute if score office1 scenes matches 128 run title @a title "11:46 PM"

execute if score office1 scenes matches 208 run title @a title ""
execute if score office1 scenes matches 207 run title @a title "1"
execute if score office1 scenes matches 206 run title @a title "11"
execute if score office1 scenes matches 205 run title @a title "11:"
execute if score office1 scenes matches 204 run title @a title "11:4"
execute if score office1 scenes matches 203 run title @a title "11:46"
execute if score office1 scenes matches 202 run title @a title "11:46 "
execute if score office1 scenes matches 201 run title @a title "11:46 P"
execute if score office1 scenes matches 200 run title @a title "11:46 PM"

execute if score office1 scenes matches 200 run scoreboard players set time map 2
execute if score office1 scenes matches 200 run tp @e[tag=chair,x=0,y=61,z=-73,distance=..3] 0.521079 61.5 -72.3 90 0
execute if score office1 scenes matches 200 run data merge entity @e[type=item_display,tag=office_table,limit=1] {item:{id:"minecraft:coal",Count:1b,tag:{CustomModelData:76}}}
execute if score office1 scenes matches 200 run data merge entity @e[name=vending_machine,x=1,y=61,z=-61,distance=..1,limit=1] {item:{id:"minecraft:coal",Count:1b,tag:{CustomModelData:81}}}
execute if score office1 scenes matches 200 run data merge entity @e[type=item_display,tag=elevator_sign,limit=1] {item:{id:"minecraft:coal",Count:1b,tag:{CustomModelData:82}}}
execute if score office1 scenes matches 200 run data merge entity @e[type=item_display,tag=notebook_screen,limit=1] {item:{id:"minecraft:coal",Count:1b,tag:{CustomModelData:83}}}
execute if score office1 scenes matches 200 run setblock 0 62 -74 light[level=6]
execute if score office1 scenes matches 200 run fill -3 44 -82 -3 63 -65 black_wool replace magma_block
execute if score office1 scenes matches 200 as @e[tag=cleaning_guy] at @s run function animated_java:clean_guy_final/remove/all
execute if score office1 scenes matches 200 run fill 13 61 -63 15 63 -63 air
execute if score office1 scenes matches 260 run title @a times 0 0 40
execute if score office1 scenes matches 260 run scoreboard players set ambient map 2
execute if score office1 scenes matches 280 run playsound dialogy_fred8 master @a ~ ~ ~ 9999999999

execute if score office1 scenes matches 280..310 run title @a actionbar [{"text":" I feel like eating something good."}]
execute if score office1 scenes matches 310 run title @a actionbar [{"text":"I'm going to buy something."}]
execute if score office1 scenes matches 310 run scoreboard players set electric_water ambient 1
execute if score office1 scenes matches 320 run scoreboard players set checkpoint map 1
execute if score office1 scenes matches 320 run scoreboard players set interact_notebook info 1
execute if score office1 scenes matches 320 run scoreboard players set machine_empty scenes 0
execute if score office1 scenes matches 330 run scoreboard players set objectives bossbar 2
execute if score office1 scenes matches 330 run scoreboard players set ticks bossbar 1
execute if score office1 scenes matches 330 run scoreboard players set what_is_happening scenes 0
execute if score office1 scenes matches 330 run data merge entity @e[type=interaction,tag=vending_machine1,limit=1] {response:true}
execute if score office1 scenes matches 330 run scoreboard players set interact_machine info 1
execute if score office1 scenes matches 330 run scoreboard players set vending_machine scenes 0
execute if score office1 scenes matches 50..180 run tp @p 0 100 -72 130 25
execute if score office1 scenes matches 180..260 run tp @p 0 61 -72 130 25

execute if score office1 scenes matches 1..330 run scoreboard players add office1 scenes 1

