Armor stand

  • 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.

BriianConner

Member
Jul 7, 2017
1
0
0
25
Hi, i have a problem in my code

Code:
on place of tnt:
    if difference between {delay.%player%} and now is less than 1 second:
        send "&cESPERA 5 SEGUNDOS"
        stop
    if name of player's tool = "&6Bomba Mágica":
        set {delay.%player%} to now
#        cancel event
        set {_loc} to location of event-block
        spawn an armor stand at {_loc}
        set {_as} to last spawned armor stand
        set armor stand helmet of {_as} to tnt
        add "{NoGravity:1,Invisible:1}" to nbt of {_as}
        wait 10 ticks
        add "{NoGravity:0}" to nbt of {_as}
        wait 10 ticks
        set {_headx} to 20
        invoke "changenames" from {_as}
        loop 100 times:
            if {_loopkill} = true:
                stop
            add "{Pose:{Body:[0f,0f,0f],LeftArm:[0f,0f,0f],RightArm:[0f,0f,0f],LeftLeg:[0f,0f,0f],RightLeg:[0f,0f,0f],Head:[0f,%{_headx}%f,0f]}}" to nbt of {_as}
           
            add 20 to  {_headx}
            wait 1 tick
           

        create an explosion of force 100 at {_as}
        add "{Invisible:0}" to nbt of {_as}
        set {_loc} to location of {_as}
        set y-coordinate of {_loc} to -5
        teleport {_as} to {_loc}


Can someone help me?
 
Hi, i have a problem in my code

Code:
on place of tnt:
    if difference between {delay.%player%} and now is less than 1 second:
        send "&cESPERA 5 SEGUNDOS"
        stop
    if name of player's tool = "&6Bomba Mágica":
        set {delay.%player%} to now
#        cancel event
        set {_loc} to location of event-block
        spawn an armor stand at {_loc}
        set {_as} to last spawned armor stand
        set armor stand helmet of {_as} to tnt
        add "{NoGravity:1,Invisible:1}" to nbt of {_as}
        wait 10 ticks
        add "{NoGravity:0}" to nbt of {_as}
        wait 10 ticks
        set {_headx} to 20
        invoke "changenames" from {_as}
        loop 100 times:
            if {_loopkill} = true:
                stop
            add "{Pose:{Body:[0f,0f,0f],LeftArm:[0f,0f,0f],RightArm:[0f,0f,0f],LeftLeg:[0f,0f,0f],RightLeg:[0f,0f,0f],Head:[0f,%{_headx}%f,0f]}}" to nbt of {_as}
          
            add 20 to  {_headx}
            wait 1 tick
          

        create an explosion of force 100 at {_as}
        add "{Invisible:0}" to nbt of {_as}
        set {_loc} to location of {_as}
        set y-coordinate of {_loc} to -5
        teleport {_as} to {_loc}


Can someone help me?
contrary to popular belief we're not psychic...you cant just slap 30 lines of code on the forums and expect us to know what the problem is
 
Status
Not open for further replies.