scoreboard players set .firework temp 0

execute store result storage pctf:random input.x int 1 run random value -50..50
execute store result storage pctf:random input.y int 1 run random value -20..20
execute store result storage pctf:random input.z int 1 run random value -50..50

function pctf:logic/game/end/fireworks/fire with storage pctf:random input