#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
#    This function has been created by Skilendarz Group.
#             https://skilendarz.com
#
#      GIVE MAP MAKERS THE CREDIT THEY DESERVE!
#             COPYING IS PROHIBITED!
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

scoreboard players add @s time 1
tp @s[scores={time=2..21}] ~ ~0.2 ~ ~20 ~
execute if entity @s[scores={time=21}] run playsound minecraft:entity.firework_rocket.blast master @a[distance=..10] ~ ~ ~ 300 1.2
execute if entity @s[scores={time=21}] run particle minecraft:end_rod ~ ~1 ~ 0.1 0.1 0.1 0.1 30
tp @s[scores={time=21..}] ~ ~-200 ~
kill @s[scores={time=23..}]