I made a Skript that will spawn particles in a circle around the player:
I'm almost certain the math is correct when I look at the consul output but the particles aren't rendering
Code:
command /circleparticles:
trigger:
set {_radius} to 5 # Adjust the radius of the circle as needed
set {_angle} to 0
loop 36 times:
wait 2 ticks # Add a delay between particle spawns
set {_angle} to {_angle} + 10
set {_radians} to {_angle} * (3.1415926535 / 180) # Convert degrees to radians
set {_x} to x-position of player + {_radius} * cos({_radians})
set {_z} to z-position of player + {_radius} * sin({_radians})
set {_y} to y-position of player # Keep the y-coordinate of the particles the same as the player's y-coordinate
set {_v} to vector({_x}, {_y}, {_z}) # Create the vector using the x, y, and z coordinates
# Debugging: Log the particle spawn location
send "&aParticle spawn location: %{_x}%, %{_y}%, %{_z}%" to console
send "&aVecotor length: %{_v}%"
# Draw particle with skBee
draw 1 dust_color_transition using dustTransition(red, orange, 20) at {_v}
wait 2 ticks # Add a 5-tick delay between particle spawns
I'm almost certain the math is correct when I look at the consul output but the particles aren't rendering