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!

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

Solved Rotating ArmorStand

Discussion in 'Requests' started by glowgrew, Jun 10, 2017.

  1. glowgrew

    glowgrew Active Member

    Joined:
    Jan 26, 2017
    Messages:
    99
    Likes Received:
    7
    Suggested name: RotatingArmorStand (idk, lol)

    What I want:
    I want a Hypixel's rotating armorstand which is using in their games (like bedwars).

    Ideas for commands: <none>

    Ideas for permissions: <none>

    When I'd like it by: < 2 weeks

    P. S. It' isnt works, but I tried.
    Code (Skript):
    1.  
    2. command /z <text>: # block type, maybe
    3.     trigger:
    4.         spawn an armor stand at player
    5.         set {_} to 0
    6.         loop 100 times:
    7.             add "{Invisible:1b,Invulnerable:1b,NoBasePlate:1b,NoGravity:1b,ArmorItems:[{},{},{},{id:""%arg-1%"",Count:1b}],Pose:{Head:[0f,%{_}%f,0f]}}" to nbt of spawned entity
    8.             add 1 to {_}
    9.             wait 4 ticks
    --- Double Post Merged, Jun 22, 2017, Original Post Date: Jun 10, 2017 ---
    UP, some one, please.
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Untested, but here ya go.

    Code (Skript):
    1. every 1 second:
    2.     if {num} doesn't exist:
    3.         set {num} to 90
    4.         execute console command "/tp @e[type=Armorstand] ~ ~ ~ %{num}% ~"
    5.     else if {num} isn't 360:
    6.         if {reverse} isn't true:
    7.             add 5 to {num}
    8.             execute console command "/tp @e[type=Armorstand] ~ ~ ~ %{num}% ~"
    9.         else if {reverse} is true:
    10.             add -5 to {num}
    11.             execute console command "/tp @e[type=Armorstand] ~ ~ ~ %{num}% ~"
    12.     else if {num} is 360:
    13.         set {reverse} to true
    14.         execute console command "/tp @e[type=Armorstand] ~ ~ ~ %{num}% ~"
    15.     else if {num} is -360:
    16.         set {reverse} to false
    17.         execute console command "/tp @e[type=Armorstand] ~ ~ ~ %{num}% ~"
    18.        
    Feel free to change 5 and -5 to how fast you want to rotate.

    I would probably use 10, and -10 or 20, and -20.
     
    #2 ShaneBee, Jun 24, 2017
    Last edited by a moderator: Jun 24, 2017
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    lol, {num} is always 90.
    --- Double Post Merged, Jun 25, 2017, Original Post Date: Jun 25, 2017 ---
    @Pikachu, maybe can u?
    --- Double Post Merged, Jun 25, 2017 ---
    Closed, and moved to private project.
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    My bad, I didn't test it in game, but I hope you get the idea.
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    I'm using NBT. But, ty for ur replying.
     

Share This Page

Loading...