execute store result storage pctf:dust input.r int 1 run random value 10..99
execute store result storage pctf:dust input.g int 1 run random value 10..99
execute store result storage pctf:dust input.b int 1 run random value 10..99

$data modify storage pctf:dust input.scale set value $(scale)

$data modify storage pctf:dust input.x set value "$(x)"
$data modify storage pctf:dust input.y set value "$(y)"
$data modify storage pctf:dust input.z set value "$(z)"

$data modify storage pctf:dust input.spread_x set value $(spread_x)
$data modify storage pctf:dust input.spread_y set value $(spread_y)
$data modify storage pctf:dust input.spread_z set value $(spread_z)

$data modify storage pctf:dust input.f_or_n set value "$(f_or_n)"

$data modify storage pctf:dust input.viewer set value "$(viewer)"

execute at @s run function pctf:fx/rainbow_dust/display with storage pctf:dust input