data merge entity @e[tag=vent_opening,limit=1] {Rotation:[195F,5F]}
data merge entity @e[tag=hammer_broken,limit=1] {item:{id:"minecraft:air",Count:1b}}
setblock 18 -9 -66 minecraft:oak_fence
setblock 18 62 -66 oak_fence
data merge entity @e[type=item_display,tag=fuse_panel,limit=1] {item:{id:"minecraft:coal",Count:1b,tag:{CustomModelData:35}}}
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:10}}}
execute as @e[name=lamp] at @s run setblock ~ ~-1 ~ light[level=13]
setblock 20 45 -66 light[level=11]
setblock 20 45 -66 air
data merge entity @e[tag=elevator_sign,limit=1] {item:{id:"minecraft:air",Count:1b}}
data merge entity @e[type=item_display,tag=notebook_screen,limit=1] {item:{id:"minecraft:air",Count:1b}}
data merge entity @e[type=item_display,tag=office_table,limit=1] {item:{id:"minecraft:coal",Count:1b,tag:{CustomModelData:8}}}
data merge entity @e[type=item_display,tag=mass,limit=1] {item:{id:"minecraft:coal",Count:1b,tag:{CustomModelData:90}}}
setblock 5 61 -80 minecraft:spruce_door[open=false,half=lower,hinge=left,facing=north]
setblock 5 62 -80 minecraft:spruce_door[open=false,half=upper,hinge=left,facing=north]
tp @e[tag=chair,x=0,y=61,z=-73,distance=..3] 0.521079 61.5 -72.3 90 0
fill -3 44 -82 -3 63 -65 magma_block replace black_wool
fill 13 61 -63 15 63 -63 barrier

function slender:scripts/interactions/light_switch/bathroom_off
function slender:scripts/interactions/light_switch/bedroom_off
function slender:scripts/interactions/light_switch/kitchen_off
function slender:scripts/interactions/light_switch/hallway_off
function slender:reset_doors

# Interactions
tp @e[type=minecraft:item_display,tag=fuse1] 32.395184 12.5 -7.0
tp @e[type=minecraft:interaction,tag=fuse1] 32.395184 12.0 -7.0
tp @e[type=minecraft:item_display,tag=fuse2] 46.095459 13.880000 -32.050000
tp @e[type=minecraft:interaction,tag=fuse2] 46.095459 13.380000 -32.050000
tp @e[type=minecraft:item_display,tag=fuse3] 13.395075 13.250000 -8.633688
tp @e[type=minecraft:interaction,tag=fuse3] 13.395075 12.750000 -8.633688
tp @e[type=interaction,tag=fuse_panel] 21.000000 13.000000 -6.500000
tp @e[type=interaction,tag=vent1] 25.5 100 -42
tp @e[type=interaction,tag=vent2] 25 13.5 -46.5
tp @e[type=interaction,tag=vent3] 0 13.5 -31.5
tp @e[type=interaction,tag=vent5] 24 35.5 -65
tp @e[type=interaction,tag=vent6] 24 24.5 -64
tp @e[type=minecraft:interaction,tag=door_unlockable1] 5.5 43 -79.5
tp @e[type=minecraft:interaction,tag=door_unlockable2] 3.5 54.9 -77.5
tp @e[type=minecraft:interaction,tag=door_unlockable3] 14.5 43.0 -52.5
tp @e[type=minecraft:interaction,tag=door_unlockable4] 3 61 -71
tp @e[type=minecraft:interaction,tag=door_jammed2] 43 43 -65
tp @e[type=minecraft:interaction,tag=vent_open] 25.5 44.8 -41.5
tp @e[type=minecraft:interaction,tag=wc_female1] 16.5 43 -69.5
tp @e[type=minecraft:interaction,tag=wc_female3] 16.5 55 -69.5
tp @e[type=minecraft:interaction,tag=wc_female4] 16.5 61 -69.5


# Entities
execute as @e[tag=vent_opening] at @s run teleport @s 25.45 45.5 -41.6
execute as @e[tag=vent_drop] at @s run teleport @s 3.5 16.5 -29.5
execute as @e[name=elevator_door_left] at @s run tp @s 18.5 ~ -65.5
execute as @e[name=elevator_door_right] at @s run tp @s 18.5 ~ -65.5
execute as @e[tag=door_blocked2] at @s run tp @s 5 61 -80

# Scores
scoreboard players set vent_drop scenes 0
scoreboard players set office1 scenes 0
scoreboard players set office2 scenes 9999
scoreboard players set slender_appear1 scenes 0

scoreboard players set obj_fuse map 0
scoreboard players set vent_breaking map 0
scoreboard players set mass_rustle map 0
scoreboard players set slender_appear1 scenes 0

scoreboard players set key1 info 0
scoreboard players set key2 info 0
scoreboard players set key3 info 0
scoreboard players set hammer info 0
scoreboard players set interact_notebook info 0
scoreboard players set interact_elevator info 1
scoreboard players set blocked_way1 info 1

scoreboard players set vents1 ambient 0
scoreboard players set vents3 ambient 0


