Solved crate animation

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Mattllama987

Active Member
Aug 5, 2018
225
7
18
24
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


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}
 
  • Like
Reactions: FrostPVP™️
Status
Not open for further replies.