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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    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.

wtf is this jittering on armour stands

Discussion in 'Skript' started by Jay_2004, Jun 29, 2019.

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

    Jay_2004 Member

    Joined:
    Feb 21, 2017
    Messages:
    13
    Likes Received:
    1
    Does anyone know how to fix this weird jittering motion on armour stands when it goes through blocks? Trying to make an animation for my treasure boxes (ik its a copy of hypixel). Video under code of the bug
    Code (Text):
    1.  
    2. set {boxused.%{boxusedloc.%arg-2%}%} to "true"
    3.             add -1 to {box.%arg-1%.%arg-2%}
    4.             set {_loc} to {boxlocation.%arg-2%}
    5.             set {_test} to {_loc}
    6.             add -1.5 to y-coord of {_test}
    7.             spawn an armour stand at {_test}
    8.             set {_box} to last spawned entity
    9.             set noclip state of {_box} to true
    10.             set gravity of {_box} to false
    11.             set visible of {_box} to false
    12.             set base plate of {_box} to false
    13.             equip {_box} with ender chest
    14.             wait 1 tick
    15.             make console execute command "jingle %arg-2%"
    16.             loop 72 times:
    17.                 wait 1 tick
    18.                 add 5 to yaw of {_test}
    19.                 add 0.05 to y-coord of {_test}
    20.                 teleport {_box} to {_test}
    21.                 set {_lox2} to location at {_box}'s head
    22.                 drawDot count 3, particle "critmagic", speed 0, XYZ 0.2, 0.2, 0.2, center {_lox2}, rainbowMode false, visibleRange 320, pulseDelay 0, keepFor 1 ticks
    23.                 drawDot count 1, particle "fireworkspark", RGB 0, 0, 0, center {_lox2}, rainbowMode false, visibleRange 320, pulseDelay 0, keepFor 1 ticks
    24.             set {_lox2} to location at {_box}'s head
    25.             add 0.7 to y-coord of {_lox2}
    26.             drawDot count 100, particle "enchantmenttable", speed 3, XYZ 0, 0, 0, center {_lox2}, rainbowMode false, visibleRange 320, pulseDelay 0, keepFor 1 ticks
    27.             loop 6 times:
    28.                 wait 3 ticks
    29.                 play raw sound "fireworks.twinkle" at location of {_lox2} with pitch 1 volume 1.1
    30.             wait 1.1 seconds
    31.             add -0.7 to y-coord of {_lox2}
    32.             play raw sound "random.explode" at location of {_lox2} with pitch 1 volume 1.1
    33.             drawDot count 100, particle "flame", speed 0.7, XYZ 0, 0, 0, center {_lox2}, rainbowMode false, visibleRange 320, pulseDelay 0, keepFor 1 ticks
    34.             drawDot count 20, particle "lava", speed 1, XYZ 0, 0, 0, center {_lox2}, rainbowMode false, visibleRange 320, pulseDelay 0, keepFor 1 ticks
    35.             wait 2 seconds
    36.             make console execute command "getprize %arg-1% %arg-2%"
    37.             wait 1 tick
    38.             if {particlerarity.%player%} is "&4Mythical":
    39.                 drawComplexCircle particle "redstone", speed 1, RGB 255, 0, 0, center {_lox2}, id "trboxpart-%player%", rainbowMode false, randomRotation false, radius 0.5, density 45, start 60, visibleRange 360, disX 0, disY -1.2, disZ 0
    40.             if {particlerarity.%player%} is "&6Legendary":
    41.                 drawComplexCircle particle "redstone", speed 1, RGB 255, 165, 0, center {_lox2}, id "trboxpart-%player%", rainbowMode false, randomRotation false, radius 0.5, density 45, start 60, visibleRange 360, disX 0, disY -1.2, disZ 0
    42.             if {particlerarity.%player%} is "&5Epic":
    43.                 drawComplexCircle particle "redstone", speed 1, RGB 255, 0, 255, center {_lox2}, id "trboxpart-%player%", rainbowMode false, randomRotation false, radius 0.5, density 45, start 60, visibleRange 360, disX 0, disY -1.2, disZ 0
    44.             if {particlerarity.%player%} is "&9Rare":
    45.                 drawComplexCircle particle "redstone", speed 1, RGB 92, 73, 255, center {_lox2}, id "trboxpart-%player%", rainbowMode false, randomRotation false, radius 0.5, density 45, start 60, visibleRange 360, disX 0, disY -1.2, disZ 0
    46.             if {particlerarity.%player%} is "&2Uncommon":
    47.                 drawComplexCircle particle "redstone", speed 1, RGB 0, 142, 2, center {_lox2}, id "trboxpart-%player%", rainbowMode false, randomRotation false, radius 0.5, density 45, start 60, visibleRange 360, disX 0, disY -1.2, disZ 0
    48.             if {particlerarity.%player%} is "&aCommon":
    49.                 drawComplexCircle particle "redstone", speed 1, RGB 0, 255, 0, center {_lox2}, id "trboxpart-%player%", rainbowMode false, randomRotation false, radius 0.5, density 45, start 60, visibleRange 360, disX 0, disY -1.2, disZ 0
    50.             loop 60 times:
    51.                 wait 2 ticks
    52.                 drawDot count 1, particle "cloud", speed 0, XYZ 0.2, 0.2, 0.2, center {_lox2}, rainbowMode false, visibleRange 320, pulseDelay 0, keepFor 1 ticks
    53.             set {boxused.%{boxusedloc.%arg-2%}%} to "false"
    54.             stopEffect id "trboxpart-%player%"
    55.             add -1000 to y-coord of {_lox2}
    56.             teleport {_box} to {_lox2}
    57.             set gravity of {_box} to true
    58.             set visible of {_box} to true
    59.             set base plate of {_box} to true
    60.  
     
    #1 Jay_2004, Jun 29, 2019
    Last edited: Jun 29, 2019
Thread Status:
Not open for further replies.

Share This Page

Loading...