function parkour_pyramid:levels/level74/irondoor

clear @a[x=57,y=28,z=171,distance=..3] minecart

execute as @a[x=76.5,y=55,z=150.5,dx=-14,dy=2,dz=9] at @s if block ~ ~ ~ #parkour_pyramid:water run function parkour_pyramid:levels/level74/tp
particle minecraft:end_rod 55 60 134 0.1 6 0.1 0 5 normal
effect give @a[x=55.5,y=60,z=134.5,dx=0,dy=17,dz=0] minecraft:levitation 1 10 true
effect clear @a[x=55.5,y=79,z=134.5,dx=0,dy=0,dz=0] minecraft:levitation

execute unless entity @a[scores={level=74}] run scoreboard players reset @e[type=minecraft:armor_stand,name=console] lvl74Timer

execute if entity @a[scores={level=74}] run scoreboard players add @e[type=minecraft:armor_stand,name=console] lvl74Timer 1
execute if entity @e[type=minecraft:armor_stand,name=console,scores={lvl74Timer=60}] run summon minecraft:minecart 58 87 169 {Motion:[0.5d,0.0d,0.0d],Tags:["lvl74"]}
scoreboard players reset @e[type=minecraft:armor_stand,name=console,scores={lvl74Timer=100..}] lvl74Timer

execute as @e[type=minecart,x=62,y=83,z=169,dx=0,dy=0,dz=-2] run data merge entity @s {Motion:[0.0,0.0,-0.5]}
execute as @e[type=minecart,x=61,y=83,z=166,dx=0,dy=0,dz=0] run data merge entity @s {Motion:[-0.5,0.0,0.0]}
execute as @e[type=minecart,x=59,y=82,z=166,dx=-1,dy=0,dz=0] run data merge entity @s {Motion:[-0.5,0.0,0.0]}
execute as @e[type=minecart,x=59,y=77,z=163,dx=3,dy=0,dz=0] run data merge entity @s {Motion:[0.5,0.0,0.0]}
execute as @e[type=minecart,x=63,y=77,z=162,dx=0,dy=0,dz=-15] run data merge entity @s {Motion:[0.0,0.0,-0.5]}
execute as @e[type=minecart,x=64,y=76,z=144,dx=0,dy=0,dz=0] run data merge entity @s {Motion:[0.0,0.0,-0.5]}
execute as @e[type=minecart,x=64,y=75,z=142,dx=0,dy=0,dz=0] run data merge entity @s {Motion:[0.0,0.0,-0.5]}
execute as @e[type=minecart,x=65,y=74,z=140,dx=9,dy=0,dz=0] run data merge entity @s {Motion:[0.5,0.0,0.0]}
execute as @e[type=minecart,x=75,y=74,z=141,dx=0,dy=0,dz=0] run data merge entity @s {Motion:[0.0,0.0,0.5]}
execute at @e[type=minecart,tag=lvl74] if block ~ ~1.6 ~ lava run particle smoke ~ ~2 ~ 0.1 0.1 0.1 0.04 20 normal
execute as @e[type=minecart,tag=lvl74] at @s if block ~ ~1.6 ~ lava run kill @s

kill @e[type=minecart,x=63,y=37,z=166,dx=0,dy=0,dz=0]

data merge block 64 29 172 {Items:[{Slot:0b,id:"minecraft:minecart",Count:1b,tag:{HideFlags:16,CanPlaceOn:["minecraft:rail","minecraft:powered_rail","minecraft:detector_rail","minecraft:activator_rail"]}},{Slot:1b,id:"minecraft:minecart",Count:1b,tag:{HideFlags:16,CanPlaceOn:["minecraft:rail","minecraft:powered_rail","minecraft:detector_rail","minecraft:activator_rail"]}},{Slot:2b,id:"minecraft:minecart",Count:1b,tag:{HideFlags:16,CanPlaceOn:["minecraft:rail","minecraft:powered_rail","minecraft:detector_rail","minecraft:activator_rail"]}},{Slot:3b,id:"minecraft:minecart",Count:1b,tag:{HideFlags:16,CanPlaceOn:["minecraft:rail","minecraft:powered_rail","minecraft:detector_rail","minecraft:activator_rail"]}},{Slot:4b,id:"minecraft:minecart",Count:1b,tag:{HideFlags:16,CanPlaceOn:["minecraft:rail","minecraft:powered_rail","minecraft:detector_rail","minecraft:activator_rail"]}},{Slot:5b,id:"minecraft:minecart",Count:1b,tag:{HideFlags:16,CanPlaceOn:["minecraft:rail","minecraft:powered_rail","minecraft:detector_rail","minecraft:activator_rail"]}},{Slot:6b,id:"minecraft:minecart",Count:1b,tag:{HideFlags:16,CanPlaceOn:["minecraft:rail","minecraft:powered_rail","minecraft:detector_rail","minecraft:activator_rail"]}},{Slot:7b,id:"minecraft:minecart",Count:1b,tag:{HideFlags:16,CanPlaceOn:["minecraft:rail","minecraft:powered_rail","minecraft:detector_rail","minecraft:activator_rail"]}},{Slot:8b,id:"minecraft:minecart",Count:1b,tag:{HideFlags:16,CanPlaceOn:["minecraft:rail","minecraft:powered_rail","minecraft:detector_rail","minecraft:activator_rail"]}}],Lock:"true"}
tag @e[type=item,x=64.5,y=29,z=171.8,distance=..1] add stay
data merge entity @e[type=item_frame,tag=lvl74Item,limit=1] {Facing: 2b, Invulnerable: 1b, Rotation: [180.0f, 0.0f], Item: {id: "minecraft:minecart", Count: 1b},ItemRotation:0b,Silent:1b}