
execute as @a[scores={checkpoint=1,checkpoint_between_1=0}] at @s positioned 10 19 23 if entity @s[distance=..2] run tag @s add return_stage_checkpoint_message
execute as @a[scores={checkpoint=1,checkpoint_between_1=0}] at @s positioned 10 19 23 if entity @s[distance=..2] run spawnpoint @s 10 19 23 -229.65 0
execute as @a[scores={checkpoint=1,checkpoint_between_1=0}] at @s positioned 10 19 23 if entity @s[distance=..2] run scoreboard players set @s checkpoint_between_1 1


execute if block 30 34 25 minecraft:air if block 31 34 25 minecraft:jungle_planks run setblock 31 34 25 minecraft:air



#levl1levl1 levl1levl2

execute positioned 32 27 19 if entity @a[distance=..5] unless score levl1levl1 timer_an matches 2 run scoreboard players set levl1levl1 timer_an 1
execute if score levl1levl1 timer_an matches 1 run scoreboard players add levl1levl2 timer_an 1

execute if score levl1levl2 timer_an matches 5.. run execute as @e[tag=mob_motion_recording_1levl,limit=1,sort=nearest] at @s run function koncept:level/1/10

execute if score levl1levl2 timer_an matches 115 run fill 26 31 30 26 32 30 minecraft:air
execute if score levl1levl2 timer_an matches 135 run setblock 26 32 30 minecraft:stone
execute if score levl1levl2 timer_an matches 135 run setblock 26 31 30 minecraft:cracked_stone_bricks
execute if score levl1levl2 timer_an matches 115 run execute positioned 26.43 32.92 30.00 run playsound minecraft:block.iron_door.open block @a[distance=..10] 26.43 32.92 30.00 1111 1
execute if score levl1levl2 timer_an matches 134 run execute positioned 26.43 32.92 30.00 run playsound minecraft:block.iron_door.close block @a[distance=..10] 26.43 32.92 30.00 1111 1

execute if score levl1levl2 timer_an matches 135 run scoreboard players set levl1levl1 timer_an 2



execute if score levl1levl2 timer_an matches 135.. run scoreboard players reset levl1levl1 timer_an
#execute if score levl1levl2 timer_an matches 135.. run scoreboard players reset levl1levl2 timer_an



#01010101 01010102 01010103 01010104

execute positioned 10 19 23 if entity @a[distance=..2] unless score 01010101 timer_an matches 2 run scoreboard players set 01010101 timer_an 1
execute if score 01010101 timer_an matches 1 run scoreboard players add 01010102 timer_an 1

execute if score 01010102 timer_an matches 20 run setblock 7 18 20 minecraft:stripped_oak_wood
execute if score 01010102 timer_an matches 20 run execute positioned 11 17 17 run playsound minecraft:entity.item.pickup block @a[distance=..15] 11 17 17 1111 1

execute if score 01010102 timer_an matches 40 run setblock 11 17 17 minecraft:stripped_oak_wood
execute if score 01010102 timer_an matches 40 run execute positioned 11 17 17 run playsound minecraft:entity.item.pickup block @a[distance=..15] 11 17 17 1111 1

execute if score 01010102 timer_an matches 60 run setblock 15 15 18 minecraft:stripped_oak_wood
execute if score 01010102 timer_an matches 60 run execute positioned 11 17 17 run playsound minecraft:entity.item.pickup block @a[distance=..15] 11 17 17 1111 1

execute if score 01010102 timer_an matches 61 run scoreboard players set 01010101 timer_an 2

execute if score 01010101 timer_an matches 2 run execute positioned 9 18 18 unless entity @a[distance=..10] run scoreboard players set 01010103 timer_an 1

execute if score 01010103 timer_an matches 1.. run scoreboard players add 01010104 timer_an 1

execute if score 01010104 timer_an matches 20 run setblock 15 15 18 minecraft:air
execute if score 01010104 timer_an matches 20 run execute positioned 11 17 17 run playsound minecraft:entity.item.pickup block @a[distance=..15] 11 17 17 1111 1

execute if score 01010104 timer_an matches 20 run setblock 11 17 17 minecraft:air
execute if score 01010104 timer_an matches 20 run execute positioned 11 17 17 run playsound minecraft:entity.item.pickup block @a[distance=..15] 11 17 17 1111 1

execute if score 01010104 timer_an matches 20 run setblock 7 18 20 minecraft:air
execute if score 01010104 timer_an matches 20 run execute positioned 11 17 17 run playsound minecraft:entity.item.pickup block @a[distance=..15] 11 17 17 1111 1

execute if score 01010104 timer_an matches 70 run scoreboard players reset 01010101 timer_an
execute if score 01010104 timer_an matches 70 run scoreboard players reset 01010102 timer_an
execute if score 01010104 timer_an matches 70 run scoreboard players reset 01010103 timer_an
execute if score 01010104 timer_an matches 70 run scoreboard players reset 01010104 timer_an









#5 6 7 8

execute as @a at @s positioned 38 33 25 if entity @s[distance=..2] run tag @s remove levl1_anim1

execute as @a at @s positioned 27 31 20 if entity @s[distance=..2] run tag @s add levl1_anim1

execute positioned 27 31 20 if entity @a[distance=..1] unless score 5 timer_an6 matches 2 run scoreboard players set 5 timer_an6 1
execute if score 5 timer_an6 matches 1 run scoreboard players add 6 timer_an6 1

execute if score 6 timer_an6 matches 1 run function koncept:level/1/1/build

execute if score 6 timer_an6 matches 70 run function koncept:level/1/1/setblock
execute if score 6 timer_an6 matches 70 run kill @e[type=minecraft:block_display,tag=Houselevl2]

execute if score 6 timer_an6 matches 72 run scoreboard players set 5 timer_an6 2


execute if score 5 timer_an6 matches 2 run execute unless entity @a[tag=levl1_anim1] run scoreboard players set 7 timer_an6 1

execute if score 7 timer_an6 matches 1.. run scoreboard players add 8 timer_an6 1

execute if score 8 timer_an6 matches 5 run function koncept:level/1/1/summon
execute if score 8 timer_an6 matches 6 run function koncept:level/1/1/build1
execute if score 8 timer_an6 matches 5 run function koncept:level/1/1/setblock_air

execute if score 8 timer_an6 matches 70 run scoreboard players reset 5 timer_an6
execute if score 8 timer_an6 matches 70 run scoreboard players reset 6 timer_an6
execute if score 8 timer_an6 matches 70 run scoreboard players reset 7 timer_an6
execute if score 8 timer_an6 matches 70 run scoreboard players reset 8 timer_an6

execute unless entity @e[type=minecraft:block_display,tag=Houselevl1] run function koncept:level/1/summon

#1 2 3 4

execute as @a[scores={checkpoint=1}] at @s positioned 31 21 25 if entity @s[distance=..2] run tag @s remove levl1_anim

execute as @a[scores={checkpoint=1}] at @s positioned 37 31 16 if entity @s[distance=..1] run tag @s add levl1_anim

execute positioned 37 31 16 if entity @a[distance=..1] unless score 1 timer_an6 matches 2 run scoreboard players set 1 timer_an6 1
execute if score 1 timer_an6 matches 1 run scoreboard players add 2 timer_an6 1

execute if score 2 timer_an6 matches 5 run function koncept:level/1/merge

execute if score 2 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime1_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 2 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime2_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 2 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime3_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 2 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime4_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 2 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime1_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 2 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime2_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 2 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime3_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 2 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime4_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 2 timer_an6 matches 6 run effect give @e[type=minecraft:slime,tag=slime_levl1] minecraft:invisibility infinite 10 true
execute if score 2 timer_an6 matches 6 run execute as @e[type=minecraft:slime,tag=slime_levl1] at @s run data merge entity @s {Size:6b}
execute if score 2 timer_an6 matches 6 run execute as @e[type=minecraft:slime,tag=slime_levl1,tag=slime1_levl1] at @s run tp @s 32 29 26
execute if score 2 timer_an6 matches 6 run execute as @e[type=minecraft:slime,tag=slime_levl1,tag=slime2_levl1] at @s run tp @s 30 29 26
execute if score 2 timer_an6 matches 6 run execute as @e[type=minecraft:slime,tag=slime_levl1,tag=slime3_levl1] at @s run tp @s 30 29 24
execute if score 2 timer_an6 matches 6 run execute as @e[type=minecraft:slime,tag=slime_levl1,tag=slime4_levl1] at @s run tp @s 32 29 24

execute if score 2 timer_an6 matches 110 run tp @e[type=minecraft:slime,tag=slime_levl1] 53 -200 11
execute if score 2 timer_an6 matches 110 run setblock 31 28 26 air
execute if score 2 timer_an6 matches 110 run setblock 30 28 24 air
execute if score 2 timer_an6 matches 110 run setblock 32 28 24 air
execute if score 2 timer_an6 matches 110 run function koncept:level/1/setblock
execute if score 2 timer_an6 matches 110 run kill @e[type=minecraft:block_display,tag=Houselevl1]
execute if score 2 timer_an6 matches 110 run function koncept:level/1/setblock
execute if score 2 timer_an6 matches 110 run fill 33 27 23 29 27 27 minecraft:white_terracotta
execute if score 2 timer_an6 matches 110 run fill 32 27 24 30 27 26 minecraft:air
execute if score 2 timer_an6 matches 110 run setblock 32 27 27 minecraft:chest[facing=north,type=single,waterlogged=false]{Items:[]}
execute if score 2 timer_an6 matches 110 run setblock 29 27 25 minecraft:furnace[facing=east,lit=false]{BurnTime:0s,CookTime:0s,CookTimeTotal:0s,Items:[],RecipesUsed:{}}

execute if score 2 timer_an6 matches 111 run scoreboard players set 1 timer_an6 2

execute if score 1 timer_an6 matches 2 run execute unless entity @a[tag=levl1_anim] run scoreboard players set 3 timer_an6 1

execute if score 3 timer_an6 matches 1.. run scoreboard players add 4 timer_an6 1

execute if score 4 timer_an6 matches 5 run function koncept:level/1/setblock_air
execute if score 4 timer_an6 matches 5 run kill @e[type=minecraft:block_display,tag=Houselevl1]
execute if score 4 timer_an6 matches 5 run setblock 31 30 22 air
execute if score 4 timer_an6 matches 5 run fill 33 27 23 29 27 27 minecraft:grass_block
execute if score 4 timer_an6 matches 5 run setblock 31 28 26 minecraft:short_grass
execute if score 4 timer_an6 matches 5 run setblock 30 28 24 minecraft:short_grass
execute if score 4 timer_an6 matches 5 run setblock 32 28 24 minecraft:short_grass
execute if score 4 timer_an6 matches 5 run function koncept:level/1/summon1
execute if score 4 timer_an6 matches 6 run function koncept:level/1/merge1
execute if score 4 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime1_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 4 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime2_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 4 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime3_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 4 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime4_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 4 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime1_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 4 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime2_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 4 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime3_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 4 timer_an6 matches 6 run summon minecraft:slime 29 16 36 {Tags:["slime_levl1","slime4_levl1"],NoAI:1b,Size:1b,Silent:1b}
execute if score 4 timer_an6 matches 6 run effect give @e[type=minecraft:slime,tag=slime_levl1] minecraft:invisibility infinite 10 true
execute if score 4 timer_an6 matches 6 run execute as @e[type=minecraft:slime,tag=slime_levl1] at @s run tp @s 29 116 36

execute if score 4 timer_an6 matches 6 run effect give @e[type=minecraft:slime,tag=slime_levl1] minecraft:invisibility infinite 10 true
execute if score 4 timer_an6 matches 6 run execute as @e[type=minecraft:slime,tag=slime_levl1] at @s run data merge entity @s {Size:6b}
execute if score 4 timer_an6 matches 6 run execute as @e[type=minecraft:slime,tag=slime_levl1,tag=slime1_levl1] at @s run tp @s 32 29 26
execute if score 4 timer_an6 matches 6 run execute as @e[type=minecraft:slime,tag=slime_levl1,tag=slime2_levl1] at @s run tp @s 30 29 26
execute if score 4 timer_an6 matches 6 run execute as @e[type=minecraft:slime,tag=slime_levl1,tag=slime3_levl1] at @s run tp @s 30 29 24
execute if score 4 timer_an6 matches 6 run execute as @e[type=minecraft:slime,tag=slime_levl1,tag=slime4_levl1] at @s run tp @s 32 29 24

execute if score 4 timer_an6 matches 105 run tp @e[type=minecraft:slime,tag=slime_levl1] 53 -200 11
execute if score 4 timer_an6 matches 105 run scoreboard players reset 1 timer_an6
execute if score 4 timer_an6 matches 105 run scoreboard players reset 2 timer_an6
execute if score 4 timer_an6 matches 105 run scoreboard players reset 3 timer_an6
execute if score 4 timer_an6 matches 105 run scoreboard players reset 4 timer_an6


###
execute positioned 31 23 25 if entity @a[distance=..2] run scoreboard players set 11 timer 1

execute if score 11 timer matches 1 run execute positioned 31 24 25 unless entity @a[distance=..4.5] run scoreboard players set 11 timer 0
execute if score 11 timer matches 1 run scoreboard players add 12 timer 1

execute if score 12 timer matches 1.. run fill 30 21 26 32 21 24 minecraft:air
execute if score 12 timer matches 1 run execute positioned 31 22 25 run playsound minecraft:block.lava.extinguish block @a[distance=..10] 31 22 25 1111 1
execute if score 12 timer matches 1 run particle minecraft:smoke 31 22 25 0.1 0.1 0.1 0.2 40
execute if score 12 timer matches 5.. run setblock 30 21 23 minecraft:air
execute if score 12 timer matches 5 run execute positioned 31 21 23 run playsound minecraft:block.stone.place block @a[distance=..5] 31 21 23 1111 1
execute if score 12 timer matches 10.. run setblock 31 21 23 minecraft:air
execute if score 12 timer matches 10 run execute positioned 31 21 23 run playsound minecraft:block.stone.place block @a[distance=..5] 31 21 23 1111 1
execute if score 12 timer matches 20.. run setblock 32 21 23 minecraft:air
execute if score 12 timer matches 20 run execute positioned 31 21 23 run playsound minecraft:block.stone.place block @a[distance=..5] 31 21 23 1111 1
execute if score 12 timer matches 25.. run setblock 30 22 23 minecraft:air
execute if score 12 timer matches 25 run execute positioned 31 21 23 run playsound minecraft:block.stone.place block @a[distance=..5] 31 21 23 1111 1
execute if score 12 timer matches 30.. run setblock 31 22 23 minecraft:air
execute if score 12 timer matches 30 run execute positioned 31 21 23 run playsound minecraft:block.stone.place block @a[distance=..5] 31 21 23 1111 1
execute if score 12 timer matches 35.. run setblock 32 22 23 minecraft:air
execute if score 12 timer matches 35 run execute positioned 31 21 23 run playsound minecraft:block.stone.place block @a[distance=..5] 31 21 23 1111 1
execute if score 12 timer matches 40.. run setblock 31 23 23 minecraft:air
execute if score 12 timer matches 40 run execute positioned 31 21 23 run playsound minecraft:block.stone.place block @a[distance=..5] 31 21 23 1111 1

execute if score 11 timer matches 0 run scoreboard players reset 12 timer
execute if score 11 timer matches 0 run fill 30 21 26 32 21 24 minecraft:lava
execute if score 11 timer matches 0 run fill 32 21 23 30 23 23 minecraft:cobblestone

###
execute positioned 31 35 25 if entity @a[distance=..1] run scoreboard players set 9 timer 1
execute if score 9 timer matches 1 run scoreboard players add 10 timer 1

execute if score 10 timer matches 1..20 run setblock 31 34 25 air
execute if score 10 timer matches 1 run particle block{block_state:{Name:jungle_planks}} 31 34.5 25 0.1 0.1 0.1 1 60
execute if score 10 timer matches 1 run execute positioned 31 34 25 if entity @a[distance=..5] run execute as @a at @s run playsound minecraft:block.wood.break block @a 31 34 25 1111 1
execute if score 10 timer matches 25.. run setblock 31 34 25 minecraft:jungle_planks
execute if score 10 timer matches 25.. run scoreboard players reset 9 timer
execute if score 10 timer matches 25.. run scoreboard players reset 10 timer