Hello, im working on a crate animation, and its not doing what i want it to do. Im tying to get random items to float around my head. The items will spin around my head, and the items will change. Im having 2 issues with this. The items spin around my head too slow, and the items changing are too fast. How can i make this code do what i want? I tried a few different things, but they all act the same.
Thanks!
~Matt
Thanks!
~Matt
Code:
function eternalanimation5(P: player):
loop 360 times:
set {_v} to spherical vector radius 2, yaw loop-value, pitch 10
set {_l} to {_P} ~ {_v}
spawn armor stand at {_l} with nbt "{Invisible:1}"
set {_randomitem::*} to ender chest, glowing paper, armor stand and netherite pickaxe of fortune 1
set {_ranitem} to random item out of {_randomitem::*}
set {_arm} to last spawned armor stand
apply levitation to {_arm} for 2 seconds
set helmet of last spawned armor stand to {_ranitem}
wait 1 ticks
kill {_arm}