1. 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!


    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved crate animation

Discussion in 'Skript' started by Mattllama987, Feb 12, 2021.

Thread Status:
Not open for further replies.
  1. Mattllama987

    Mattllama987 Active Member

    Aug 5, 2018
    Likes Received:
    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.


    Code (Text):
    1. function eternalanimation5(P: player):
    2.     loop 360 times:
    3.         set {_v} to spherical vector radius 2, yaw loop-value, pitch 10
    4.         set {_l} to {_P} ~ {_v}
    5.         spawn armor stand at {_l} with nbt "{Invisible:1}"
    6.         set {_randomitem::*} to ender chest, glowing paper, armor stand and netherite pickaxe of fortune 1
    7.         set {_ranitem} to random item out of {_randomitem::*}
    8.         set {_arm} to last spawned armor stand
    9.         apply levitation to {_arm} for 2 seconds
    10.         set helmet of last spawned armor stand to {_ranitem}
    11.         wait 1 ticks
    12.         kill {_arm}
    • Like Like x 1
Thread Status:
Not open for further replies.

Share This Page