
# First cycle
execute if score @s mt.plot matches 6 run function mt:particles/mythical/armor/frames/f6
execute if score @s mt.plot matches 7 run function mt:particles/mythical/armor/frames/f7
execute if score @s mt.plot matches 8 run function mt:particles/mythical/armor/frames/f8
execute if score @s mt.plot matches 9 run function mt:particles/mythical/armor/frames/f9
execute if score @s mt.plot matches 10 run function mt:particles/mythical/armor/frames/f10
execute if score @s mt.plot matches 11 run function mt:particles/mythical/armor/frames/f11
execute if score @s mt.plot matches 12 run function mt:particles/mythical/armor/frames/f12
execute if score @s mt.plot matches 13 run function mt:particles/mythical/armor/frames/f13
execute if score @s mt.plot matches 14 run function mt:particles/mythical/armor/frames/f14
execute if score @s mt.plot matches 15 run function mt:particles/mythical/armor/frames/f15
execute if score @s mt.plot matches 16 run function mt:particles/mythical/armor/frames/f16
execute if score @s mt.plot matches 17 run function mt:particles/mythical/armor/frames/f17
execute if score @s mt.plot matches 18 run function mt:particles/mythical/armor/frames/f18
execute if score @s mt.plot matches 19 run function mt:particles/mythical/armor/frames/f19
execute if score @s mt.plot matches 20 run function mt:particles/mythical/armor/frames/f20
execute if score @s mt.plot matches 21 run function mt:particles/mythical/armor/frames/f21

# Second cycle
execute if score @s mt.plot matches 22 run function mt:particles/mythical/armor/frames/f6
execute if score @s mt.plot matches 23 run function mt:particles/mythical/armor/frames/f7
execute if score @s mt.plot matches 24 run function mt:particles/mythical/armor/frames/f8
execute if score @s mt.plot matches 25 run function mt:particles/mythical/armor/frames/f9
execute if score @s mt.plot matches 26 run function mt:particles/mythical/armor/frames/f10
execute if score @s mt.plot matches 27 run function mt:particles/mythical/armor/frames/f11
execute if score @s mt.plot matches 28 run function mt:particles/mythical/armor/frames/f12
execute if score @s mt.plot matches 29 run function mt:particles/mythical/armor/frames/f13
execute if score @s mt.plot matches 30 run function mt:particles/mythical/armor/frames/f14
execute if score @s mt.plot matches 31 run function mt:particles/mythical/armor/frames/f15
execute if score @s mt.plot matches 32 run function mt:particles/mythical/armor/frames/f16
execute if score @s mt.plot matches 33 run function mt:particles/mythical/armor/frames/f17
execute if score @s mt.plot matches 34 run function mt:particles/mythical/armor/frames/f18
execute if score @s mt.plot matches 35 run function mt:particles/mythical/armor/frames/f19
execute if score @s mt.plot matches 36 run function mt:particles/mythical/armor/frames/f20
execute if score @s mt.plot matches 37 run function mt:particles/mythical/armor/frames/f21

# Third cycle
execute if score @s mt.plot matches 38 run function mt:particles/mythical/armor/frames/f6
execute if score @s mt.plot matches 39 run function mt:particles/mythical/armor/frames/f7
execute if score @s mt.plot matches 40 run function mt:particles/mythical/armor/frames/f8
execute if score @s mt.plot matches 41 run function mt:particles/mythical/armor/frames/f9
execute if score @s mt.plot matches 42 run function mt:particles/mythical/armor/frames/f10
execute if score @s mt.plot matches 43 run function mt:particles/mythical/armor/frames/f11
execute if score @s mt.plot matches 44 run function mt:particles/mythical/armor/frames/f12
execute if score @s mt.plot matches 45 run function mt:particles/mythical/armor/frames/f13
execute if score @s mt.plot matches 46 run function mt:particles/mythical/armor/frames/f14
execute if score @s mt.plot matches 47 run function mt:particles/mythical/armor/frames/f15
execute if score @s mt.plot matches 48 run function mt:particles/mythical/armor/frames/f16
execute if score @s mt.plot matches 49 run function mt:particles/mythical/armor/frames/f17
execute if score @s mt.plot matches 50 run function mt:particles/mythical/armor/frames/f18
execute if score @s mt.plot matches 51 run function mt:particles/mythical/armor/frames/f19
execute if score @s mt.plot matches 52 run function mt:particles/mythical/armor/frames/f20
execute if score @s mt.plot matches 53 run function mt:particles/mythical/armor/frames/f21

execute if score @s mt.plot matches 42 run particle minecraft:enchant ~ ~1 ~ 0 0 0 20 2000 force

execute if score @s mt.plot matches 2 run particle end_rod ^0.000 ^0.000 ^0.000 0 0 0 1 5000 force @a
execute if score @s mt.plot matches 2 run particle minecraft:campfire_cosy_smoke ~ ~ ~ 0 0 0 0.01 20 force
execute if score @s mt.plot matches 0 run function mt:particles/mythical/cube/f0
execute if score @s mt.plot matches 1 run function mt:particles/mythical/cube/f1
execute if score @s mt.plot matches 2 run function mt:particles/mythical/cube/f2
execute if score @s mt.plot matches 3 run function mt:particles/mythical/cube/f3
execute if score @s mt.plot matches 4 run function mt:particles/mythical/cube/f4
execute if score @s mt.plot matches 5 run function mt:particles/mythical/cube/f5
execute if score @s mt.plot matches 6 run function mt:particles/mythical/cube/f6
execute if score @s mt.plot matches 7 run function mt:particles/mythical/cube/f7
execute if score @s mt.plot matches 8 run function mt:particles/mythical/cube/f8
execute if score @s mt.plot matches 9 run function mt:particles/mythical/cube/f9
execute if score @s mt.plot matches 10 run function mt:particles/mythical/cube/f10
execute if score @s mt.plot matches 11 run function mt:particles/mythical/cube/f11
execute if score @s mt.plot matches 12 run function mt:particles/mythical/cube/f12
execute if score @s mt.plot matches 13 run function mt:particles/mythical/cube/f13
execute if score @s mt.plot matches 14 run function mt:particles/mythical/cube/f14
execute if score @s mt.plot matches 15 run function mt:particles/mythical/cube/f15
execute if score @s mt.plot matches 16 run function mt:particles/mythical/cube/f16
execute if score @s mt.plot matches 17 run function mt:particles/mythical/cube/f17
execute if score @s mt.plot matches 18 run function mt:particles/mythical/cube/f18

execute if score @s mt.plot matches 50 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 0.1 0 1
execute if score @s mt.plot matches 48 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 0.2 0.05 1
execute if score @s mt.plot matches 46 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 0.3 0.1 1
execute if score @s mt.plot matches 44 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 0.4 0.15 1
execute if score @s mt.plot matches 42 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 0.5 0.2 1
execute if score @s mt.plot matches 40 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 0.6 0.25 1
execute if score @s mt.plot matches 38 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 0.7 0.3 1
execute if score @s mt.plot matches 36 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 0.8 0.35 1
execute if score @s mt.plot matches 34 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 0.9 0.4 1
execute if score @s mt.plot matches 32 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 0.45 1
execute if score @s mt.plot matches 30 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 0.5 1
execute if score @s mt.plot matches 28 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 0.55 1
execute if score @s mt.plot matches 26 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 0.6 1
execute if score @s mt.plot matches 24 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 0.65 1
execute if score @s mt.plot matches 22 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 0.7 1
execute if score @s mt.plot matches 20 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 0.75 1
execute if score @s mt.plot matches 18 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 0.8 1
execute if score @s mt.plot matches 16 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 0.85 1
execute if score @s mt.plot matches 14 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 0.9 1
execute if score @s mt.plot matches 12 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 0.95 1
execute if score @s mt.plot matches 10 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 1.0 1
execute if score @s mt.plot matches 8 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 1.05 1
execute if score @s mt.plot matches 6 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 1.1 1
execute if score @s mt.plot matches 4 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 1.15 1
execute if score @s mt.plot matches 2 run playsound minecraft:entity.breeze.death block @a[distance=..50] ~ ~ ~ 1.0 1.2 1

execute if score @s mt.plot matches 53 run particle flash{color:[1.000,1.000,1.000,1.00]} ~ ~ ~ 0 0 0 0 1 force
execute if score @s mt.plot matches 26 run particle flash{color:[1.000,1.000,1.000,1.00]} ~ ~ ~ 0 0 0 0 1 force
execute if score @s mt.plot matches 1 run particle flash{color:[1.000,1.000,1.000,1.00]} ~ ~ ~ 0 0 0 0 1 force
execute if score @s mt.plot matches 29 run playsound minecraft:block.beacon.activate block @a[distance=..50] ~ ~ ~ 1.2 1.75 1
execute if score @s mt.plot matches 53 run playsound minecraft:ui.toast.challenge_complete block @a[distance=..50] ~ ~ ~ 1 0.1 1

execute if score @s mt.plot matches 1 run function mt:treasure/mythical/armor/set with entity @s equipment.feet.components."minecraft:custom_data"

scoreboard players remove @s mt.plot 1