Make An armor stand follow a player?

  • 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 community!

    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.

Elsmok

Member
Jul 3, 2017
25
1
0
hey guys i was wondering if there is a way i can make an armor stand follow someone or move somewhere, i know armor stands are entities but i cant find a way to make follow someone or even move.
 
I know you could make it ride the player after spawning it in, so it'd be on their head. I'm not sure if that's precisely what you want, however.
 
  • Like
Reactions: Elsmok
potentially something like
on move:
loop entities in radius 10 of player:
if loop-entity is armor stand:
push loop-entity at player at speed 1

I'm not sure if it will work properly
Edit** that probably would have to be "on move on any block:" just looking at the skript examples here
 
Last edited by a moderator:
  • Like
Reactions: Elsmok
potentially something like
on move:
loop entities in radius 10 of player:
if loop-entity is armor stand:
push loop-entity at player at speed 1

I'm not sure if it will work properly
the event "on move" doesnt exist for some reason. i am using bensku's fork for MC 1.12
 
the event "on move" doesnt exist for some reason. i am using bensku's fork for MC 1.12
x3 edited my post just too late haha
that probably would have to be "on move on any block:" or something like that
fd864566b0.png
 
  • Like
Reactions: Elsmok
x3 edited my post just too late haha
that probably would have to be "on move on any block:" or something like that
fd864566b0.png
yeh i just saw that xD. sorry i should have taken a look before posting
[doublepost=1501262787,1501262608][/doublepost]
potentially something like
on move:
loop entities in radius 10 of player:
if loop-entity is armor stand:
push loop-entity at player at speed 1

I'm not sure if it will work properly
Edit** that probably would have to be "on move on any block:" just looking at the skript examples here
it sort of works but ends up being too slow and one point and the next second it flies away. is there anything i can do about this
 
yeh i just saw that xD. sorry i should have taken a look before posting
[doublepost=1501262787,1501262608][/doublepost]
it sort of works but ends up being too slow and one point and the next second it flies away. is there anything i can do about this
hmm.... you could change the speed at which it pushes it maybe, though if its rubber banding around the event may be causeing a bit too much lag. I'm going to try it on my end
 
  • Like
Reactions: Elsmok
hmm.... you could change the speed at which it pushes it maybe, though if its rubber banding around the event may be causeing a bit too much lag. I'm going to try it on my end
ok thanks :emoji_grinning:
 
.3 seems to be a really good speed for it. It even keeps up while running
[doublepost=1501263969,1501263897][/doublepost]The only trouble I have with my test is it pushes the direction the player is looking, so if you walk towards it moves away from you. not far enough that you can't walk right up to it still though.
 
  • Like
Reactions: Elsmok
.3 seems to be a really good speed for it. It even keeps up while running
[doublepost=1501263969,1501263897][/doublepost]The only trouble I have with my test is it pushes the direction the player is looking, so if you walk towards it moves away from you. not far enough that you can't walk right up to it still though.
if u make it -0.3 it works but when they are behind you they go the wrong way
 
if u make it -0.3 it works but when they are behind you they go the wrong way
mine work fine if they're behind me. it's only if I face them and back up that they go the wrong way.
I'm thinking though if you can loop just the blocks behind the player then you could make it move only when the player is facing away
 
mine work fine if they're behind me. it's only if I face them and back up that they go the wrong way.
I'm thinking though if you can loop just the blocks behind the player then you could make it move only when the player is facing away
is it possible to make it ride a flying entity and make the entity pathfind to the player?
 
is it possible to make it ride a flying entity and make the entity pathfind to the player?
Yes, defs possible, though this one should be fixed if you still want it:emoji_slight_smile:
code_language.skript:
on step on grass:
    loop entities in radius 10 of player:
        if loop-entity is armor stand:
            set {_test} to player's horizontal facing
            set {_other} to loop-entity's horizontal facing
            if {_other} = {_test}:
                push loop-entity in direction of player at speed .3
 
  • Like
Reactions: Elsmok
Yes, defs possible, though this one should be fixed if you still want it:emoji_slight_smile:
code_language.skript:
on step on grass:
    loop entities in radius 10 of player:
        if loop-entity is armor stand:
            set {_test} to player's horizontal facing
            set {_other} to loop-entity's horizontal facing
            if {_other} = {_test}:
                push loop-entity in direction of player at speed .3
it only works if both entities are facing the same way :/ how can i make it ride a flying entity?
 
Status
Not open for further replies.