execute if score #count temp < #count_max temp run scoreboard players add #count temp 1
$function pctf:fx/rainbow_dust/start {x: "$(x)", y: "$(y)", z: "$(z)", spread_x: $(spread_x), spread_y: $(spread_y), spread_z: $(spread_z), scale: $(scale), f_or_n: "$(f_or_n)", viewer: "$(viewer)"}
$execute if score #count temp < #count_max temp run function pctf:fx/rainbow_dust/summon_loop {x: "$(x)", y: "$(y)", z: "$(z)", spread_x: $(spread_x), spread_y: $(spread_y), spread_z: $(spread_z), scale: $(scale), f_or_n: "$(f_or_n)", viewer: "$(viewer)"}