Basically im trying to make it so a certain piece of armor spawns a cool looking effect around the player but in a singular particle pattern.
this is what I got and it spawns particles 1 at a time but at the players feet but I cant seem to make it spawn the particles randomly around the player.
Code:
on player armor change:
wait 1 tick
if player's chestplate is leather chestplate:
set {cp1.%player's uuid%} to true
wait 1 tick
loop blocks in radius 3 around player:
add loop-blocks to {_b::*}
set {coords} to random element of {_b::*}
wait 1 tick
if {coords} is set:
play 1 dust using dustOption(blue, 2) at location {coords}
this is what I got and it spawns particles 1 at a time but at the players feet but I cant seem to make it spawn the particles randomly around the player.