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

execute store result storage pctf:pos input.s1 int 1 run random value 0..2
execute store result storage pctf:pos input.s2 int 1 run random value 1..9

execute if score #wind_direction temp matches 1 run function pctf:logic/items/lucky_block/outcomes/global/wind_storm/fx/n with storage pctf:pos input
execute if score #wind_direction temp matches 2 run function pctf:logic/items/lucky_block/outcomes/global/wind_storm/fx/e with storage pctf:pos input
execute if score #wind_direction temp matches 3 run function pctf:logic/items/lucky_block/outcomes/global/wind_storm/fx/s with storage pctf:pos input
execute if score #wind_direction temp matches 4 run function pctf:logic/items/lucky_block/outcomes/global/wind_storm/fx/w with storage pctf:pos input

scoreboard players remove #count temp 1
execute if score #count temp matches 1.. run function pctf:logic/items/lucky_block/outcomes/global/wind_storm/fx/play