execute if score .disclaimer hud matches 210 as @a run function main:tutorial/part/1/1
execute if score .disclaimer hud matches 1.. as @a run function main:tutorial/part/1/0_tick

execute as @a at @s if block ~ ~-1 ~ #main:purple at @n[type=marker,tag=tutorial_respawn] run tp @a ~ ~ ~
execute as @e[type=iron_golem,scores={health=..0}] run function main:game/mobs/ai/death

execute positioned -38 12 129 positioned ~-1 ~-1 ~-1 if entity @a[dx=1,dy=1,dz=1,tag=tutorial_item_1] run function main:tutorial/part/1/3

execute if entity @a[tag=tutorial_item_2] if items entity @a container.* heart_of_the_sea run function main:tutorial/part/1/4

execute positioned -56 12 133 positioned ~-1 ~-1 ~-2.5 if entity @a[dx=3,dy=20,dz=20,tag=tutorial_jump] run function main:tutorial/part/1/5

execute positioned -79 12 130 positioned ~-1 ~-1 ~-2.5 if entity @a[dx=1,dy=5,dz=5,tag=tutorial_double_jump] run function main:tutorial/part/1/7

execute positioned -95 20 113 positioned ~-1 ~-1 ~-2.5 if entity @a[dx=1,dy=5,dz=5,tag=tutorial_long_jump] run function main:tutorial/part/1/6_1

execute positioned -102 12 124 positioned ~-1 ~-1 ~-2.5 if entity @a[dx=1,dy=5,dz=5,tag=tutorial_long_jump] run function main:tutorial/part/1/6

execute positioned -90 23 84 positioned ~-5.5 ~-1 ~-5.5 if entity @a[dx=10,dy=5,dz=10,tag=tutorial_combat_1] run function main:tutorial/part/1/8

execute positioned -66 23 77 positioned ~-5.5 ~-1 ~-5.5 if entity @a[dx=10,dy=30,dz=10,tag=tutorial_combat_2] run function main:tutorial/part/1/9

execute as @e[type=iron_golem,tag=golem] at @s run function main:game/mobs/ai/attack/tick {"cooldown":20,"positioned_1":"~-10 ~-10 ~-10","positioned_2":"dx=19,dy=19,dz=19]","positioned_3":"~-2 ~-2 ~-2","positioned_4":"dx=3,dy=3,dz=3]","id":1}
function main:game/mobs/ai/scores/tick

execute if entity @a[tag=tutorial_combat_3,scores={health=..0}] run function main:tutorial/part/1/10

execute if entity @a[tag=tutorial_combat_3] unless entity @e[type=iron_golem,tag=golem] run function main:tutorial/part/1/11

execute if entity @a[tag=tutorial_combat_4,scores={shift_cooldown_s=1..}] run function main:tutorial/part/1/12

execute if entity @a[tag=tutorial_combat_4] unless entity @e[type=iron_golem,tag=golem] run function main:tutorial/part/1/12

execute if entity @a[tag=tutorial_combat_5] unless entity @e[type=iron_golem,tag=golem] run function main:tutorial/part/1/13

execute at @e[type=text_display,tag=tutorial] positioned ~-1 ~-1 ~-1 if entity @a[tag=tutorial_text,dx=1,dy=1,dz=1] run function main:tutorial/part/1/14

execute at @e[type=text_display,tag=workshop] positioned ~-2 ~-2 ~-2 if entity @a[tag=tutorial_workshop,dx=3,dy=3,dz=3] run function main:tutorial/part/1/17
execute at @e[type=text_display,tag=memory_loader] positioned ~-2 ~-2 ~-2 if entity @a[tag=tutorial_memory_loader,dx=3,dy=3,dz=3] run function main:tutorial/part/1/18

execute as @a[tag=tutorial_hub,tag=!tutorial_memory_loader,tag=!tutorial_workshop] run tag @s add tutorial_teleport

execute at @e[type=text_display,tag=teleport_text] positioned ~-2 ~-2 ~-2 if entity @a[tag=tutorial_teleport,dx=3,dy=3,dz=3] run function main:tutorial/part/1/19