This code is supposed to have a particle move in a circle when the boots are put on but it the particle stays in place, but if you take off the boots it moves in a circle again.
code_language.skript:
function speed(p:player):
set {particles::rgbcircle::%{_p}%} to true if ({particles::rgbcircle::%{_p}%} ? false) is false else false
set {_yaw} to 0
set {_angle} to 0
while {particles::rgbcircle::%{_p}%} is true:
add 10 to {_angle}
# ↓ CIRCLE + PARTICLES
set {_v} to spherical vector radius 2, yaw {_yaw}, pitch 0
draw 1 of dust using dustOption(purple, 2) at location of {_p} ~ vector(0, 0.2, 0) ~ {_v}
set {_yaw} to 0 if {_yaw} > 360
add 8 to {_yaw}
wait 1 tick
every 1 tick:
loop all players:
if loop-player is wearing netherite boots of protection 4 and unbreaking 3 and mending and feather falling 4 named "&3&lSpeed Boots":
apply swiftness 3 to loop-player for 2 seconds replacing the existing effect
apply dolphins grace 3 to loop-player for 2 seconds replacing the existing effect
speed(loop-player)