scoreboard players add @a[tag=FireworkPot] FireworkTimer 1
execute unless entity @a[scores={FireworkTimer=1..}] run data merge block ~ ~ ~ {auto:0b}
execute at @a[tag=FireworkPot,scores={FireworkTimer=1}] run playsound minecraft:entity.firework_rocket.launch ambient @a[distance=..50] ~ ~ ~ 5 1.25 1
execute at @a[tag=FireworkPot,scores={FireworkTimer=40}] run summon minecraft:firework_rocket ~ ~ ~ {Life:0,LifeTime:0,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Flicker:1b,Colors:[I;16711680],FadeColors:[I;8192000]}]}}}}
execute as @a[tag=FireworkPot,scores={FireworkTimer=40}] run scoreboard players remove @s KyuDeath 1
effect clear @a[tag=FireworkPot,scores={FireworkTimer=20..}] levitation
kill @a[tag=FireworkPot,scores={FireworkTimer=40..}]
tag @a[tag=FireworkPot,scores={FireworkTimer=40..}] remove FireworkPot
scoreboard players set @a[scores={FireworkTimer=40..}] FireworkTimer 0


#aaaaaaaaaaaaaa