
execute positioned 13 24 53 if entity @a[distance=..2] unless score 3304 timer_an matches 2 run scoreboard players set 3304 timer_an 1
execute if score 3304 timer_an matches 1 run scoreboard players add 3303 timer_an 1

execute if score 3303 timer_an matches 5 run fill -7 36 46 14 20 52 minecraft:air replace #minecraft:9
execute if score 3303 timer_an matches 5 run execute positioned -1 33 49 run function animated_java:rotation9l/summon {args:{}}
execute if score 3303 timer_an matches 6 run execute as @e[tag=rotation9l] at @s run function animated_java:rotation9l/animations/animation/play
execute if score 3303 timer_an matches 26 run place template koncept:3 5 20 46
execute if score 3303 timer_an matches 26 run execute positioned 9 24 49 run playsound minecraft:block.bamboo_wood.place block @a[distance=..8] 9 24 49 1111 1
execute if score 3303 timer_an matches 26 run execute positioned -35 39 46 run function animated_java:rotation9l/remove/all

execute if score 3303 timer_an matches 136 run fill -7 36 46 14 20 52 minecraft:air replace #minecraft:9
execute if score 3303 timer_an matches 136 run execute positioned -1 33 49 run function animated_java:rotation9l/summon {args:{}}
execute if score 3303 timer_an matches 136 run execute as @e[tag=rotation9l] at @s run function animated_java:rotation9l/animations/animation2/play
execute if score 3303 timer_an matches 156 run place template koncept:2 -5 30 46
execute if score 3303 timer_an matches 156 run execute positioned -35 39 46 run function animated_java:rotation9l/remove/all
execute if score 3303 timer_an matches 136 run execute positioned 9 24 49 run playsound minecraft:block.bamboo_wood.place block @a[distance=..8] 9 24 49 1111 1


execute if score 3303 timer_an matches 180 run scoreboard players reset 3304 timer_an
execute if score 3303 timer_an matches 180 run scoreboard players reset 3303 timer_an


execute if score 41 timer matches 1 run execute positioned 21 17 45 run playsound minecraft:custom.bridge_open block @a[distance=..7] 21 17 45 1111 1
execute positioned 21 17 45 if entity @a[distance=..1] unless score 40 timer matches 2 run scoreboard players set 40 timer 1
execute if score 40 timer matches 1 run scoreboard players add 41 timer 1
execute if score 41 timer matches 20 run setblock 15 19 48 minecraft:chain
execute if score 41 timer matches 20 run setblock 17 19 50 minecraft:chain
execute if score 41 timer matches 20 run setblock 19 18 48 minecraft:chain
execute if score 41 timer matches 20 run setblock 17 18 46 minecraft:chain
execute if score 41 timer matches 30 run setblock 15 19 48 minecraft:chain
execute if score 41 timer matches 30 run setblock 17 18 50 minecraft:chain
execute if score 41 timer matches 30 run setblock 19 17 48 minecraft:chain
execute if score 41 timer matches 30 run setblock 17 17 46 minecraft:chain
execute if score 41 timer matches 35 run setblock 15 18 48 minecraft:chain
execute if score 41 timer matches 35 run setblock 17 19 50 minecraft:chain
execute if score 41 timer matches 35 run setblock 19 16 48 minecraft:chain
execute if score 41 timer matches 35 run setblock 17 16 46 minecraft:chain
execute if score 41 timer matches 36 run setblock 17 16 50 minecraft:oak_slab[type=top]
execute if score 41 timer matches 36 run setblock 16 16 49 minecraft:oak_slab[type=top]
execute if score 41 timer matches 36 run setblock 15 16 48 minecraft:oak_slab[type=top]

execute if score 41 timer matches 36 run setblock 17 15 46 minecraft:oak_slab[type=top]
execute if score 41 timer matches 36 run setblock 18 15 47 minecraft:oak_slab[type=top]
execute if score 41 timer matches 36 run setblock 19 15 48 minecraft:oak_slab[type=top]
execute if score 41 timer matches 1..35 run execute as @e[type=minecraft:armor_stand,tag=26] at @s run tp @s ~ ~-0.1 ~
execute if score 41 timer matches 36 run scoreboard players set 40 timer 2

execute if score 40 timer matches 2 run execute positioned 18 18 47 unless entity @a[distance=..10] run scoreboard players set 43 timer 1
execute if score 43 timer matches 1 run scoreboard players add 41 timer 1
execute if score 41 timer matches 37..72 run execute as @e[type=minecraft:armor_stand,tag=26] at @s run execute as @e[type=minecraft:armor_stand,tag=26] at @s run tp @s ~ ~0.1 ~

execute if score 41 timer matches 65 run setblock 15 19 48 minecraft:air
execute if score 41 timer matches 65 run setblock 17 19 50 minecraft:air
execute if score 41 timer matches 60 run setblock 19 18 48 minecraft:air
execute if score 41 timer matches 60 run setblock 17 18 46 minecraft:air
execute if score 41 timer matches 50 run setblock 15 19 48 minecraft:air
execute if score 41 timer matches 50 run setblock 17 18 50 minecraft:air
execute if score 41 timer matches 45 run setblock 19 17 48 minecraft:air
execute if score 41 timer matches 45 run setblock 17 17 46 minecraft:air
execute if score 41 timer matches 45 run setblock 15 18 48 minecraft:air
execute if score 41 timer matches 45 run setblock 17 19 50 minecraft:air

execute if score 41 timer matches 45 run setblock 19 16 48 minecraft:air
execute if score 41 timer matches 45 run setblock 17 16 46 minecraft:air
execute if score 41 timer matches 45 run setblock 17 16 50 minecraft:air
execute if score 41 timer matches 45 run setblock 16 16 49 minecraft:air
execute if score 41 timer matches 40 run setblock 15 16 48 minecraft:air
execute if score 41 timer matches 40 run setblock 17 15 46 minecraft:air
execute if score 41 timer matches 40 run setblock 18 15 47 minecraft:air
execute if score 41 timer matches 40 run setblock 19 15 48 minecraft:air
execute if score 41 timer matches 71 run scoreboard players reset 40 timer
execute if score 41 timer matches 71 run scoreboard players reset 43 timer
execute if score 41 timer matches 71 run scoreboard players reset 41 timer
execute if score 41 timer matches 71 run scoreboard players reset 40 timer


execute if score 35 timer matches 1 run execute positioned 8 20 41 run playsound minecraft:custom.bridge_open block @a[distance=..8] 8 20 41 1111 1
execute if block 7 21 40 minecraft:lever[powered=true] unless score 36 timer matches 2 run scoreboard players set 36 timer 1
execute if score 36 timer matches 1 run scoreboard players add 35 timer 1

execute if score 35 timer matches 5 run fill 14 23 42 14 23 40 air
execute if score 35 timer matches 5 run fill 11 22 42 11 22 40 minecraft:air
execute if score 35 timer matches 5 run setblock 11 23 42 minecraft:chain
execute if score 35 timer matches 5 run setblock 11 23 40 minecraft:chain
execute if score 35 timer matches 5 run setblock 14 24 42 minecraft:chain
execute if score 35 timer matches 5 run setblock 14 24 40 minecraft:chain
execute if score 35 timer matches 10 run setblock 11 22 42 minecraft:chain
execute if score 35 timer matches 10 run setblock 11 22 40 minecraft:chain
execute if score 35 timer matches 10 run setblock 14 23 42 minecraft:chain
execute if score 35 timer matches 10 run setblock 14 23 40 minecraft:chain
execute if score 35 timer matches 15 run setblock 11 21 42 minecraft:chain
execute if score 35 timer matches 15 run setblock 11 21 40 minecraft:chain
execute if score 35 timer matches 15 run setblock 14 22 42 minecraft:chain
execute if score 35 timer matches 15 run setblock 14 22 40 minecraft:chain
execute if score 35 timer matches 20 run setblock 11 20 42 minecraft:chain
execute if score 35 timer matches 20 run setblock 11 20 40 minecraft:chain
execute if score 35 timer matches 20 run setblock 14 22 42 minecraft:chain
execute if score 35 timer matches 20 run setblock 14 22 40 minecraft:chain
execute if score 35 timer matches 35 run setblock 11 19 42 minecraft:chain
execute if score 35 timer matches 35 run setblock 11 19 40 minecraft:chain
execute if score 35 timer matches 35 run setblock 14 22 42 minecraft:chain
execute if score 35 timer matches 35 run setblock 14 22 40 minecraft:chain
execute if score 35 timer matches 35 run fill 11 18 42 11 18 40 minecraft:oak_slab[type=top]
execute if score 35 timer matches 35 run fill 14 19 42 14 19 40 minecraft:oak_slab[type=top]
execute if score 35 timer matches 1..35 run execute as @e[type=minecraft:armor_stand,tag=25] at @s run execute as @e[type=minecraft:armor_stand,tag=25] at @s run tp @s ~ ~-0.1 ~
execute if score 35 timer matches 36.. run scoreboard players set 36 timer 2

execute if score 36 timer matches 2 run execute positioned 9 25 45 if entity @a[distance=..2] run scoreboard players set 37 timer 1
execute if score 36 timer matches 2 run execute positioned 11 19 43 unless entity @a[distance=..10] run scoreboard players set 37 timer 1
execute if score 37 timer matches 1 run scoreboard players add 35 timer 1
execute if score 36 timer matches 2 run execute positioned 9 25 45 if entity @a[distance=..2] run setblock 7 21 40 minecraft:lever[powered=false,facing=south]
execute if score 36 timer matches 2 run execute positioned 11 19 43 unless entity @a[distance=..10] run setblock 7 21 40 minecraft:lever[powered=false,facing=south]
execute if score 35 timer matches 37..72 run execute as @e[type=minecraft:armor_stand,tag=25] at @s run execute as @e[type=minecraft:armor_stand,tag=25] at @s run tp @s ~ ~0.1 ~
execute if score 35 timer matches 65 run setblock 11 23 42 minecraft:air
execute if score 35 timer matches 65 run setblock 11 23 40 minecraft:air
execute if score 35 timer matches 60 run setblock 11 22 42 minecraft:air
execute if score 35 timer matches 60 run setblock 11 22 40 minecraft:air
execute if score 35 timer matches 50 run setblock 11 21 42 minecraft:air
execute if score 35 timer matches 50 run setblock 11 21 40 minecraft:air
execute if score 35 timer matches 45 run setblock 11 20 42 minecraft:air
execute if score 35 timer matches 45 run setblock 11 20 40 minecraft:air
execute if score 35 timer matches 45 run setblock 14 22 40 minecraft:air
execute if score 35 timer matches 45 run setblock 14 22 42 minecraft:air
execute if score 35 timer matches 40 run setblock 11 19 42 minecraft:air
execute if score 35 timer matches 40 run setblock 11 19 40 minecraft:air
execute if score 35 timer matches 40 run fill 14 19 42 14 19 40 minecraft:air
execute if score 35 timer matches 40 run fill 11 18 42 11 18 40 minecraft:air
execute if score 35 timer matches 71 run fill 14 23 40 14 23 42 oak_slab[type=bottom]
execute if score 35 timer matches 71 run fill 11 22 42 11 22 40 oak_slab[type=bottom]
execute if score 35 timer matches 71 run scoreboard players reset 37 timer
execute if score 35 timer matches 71 run scoreboard players reset 36 timer
execute if score 35 timer matches 71 run scoreboard players reset 35 timer
execute if score 35 timer matches 71 run scoreboard players reset 37 timer
