1

Armour/armor Stand command trouble.

-ronan's Avatar -ronan8/11/18 5:47 am
1 emeralds 598 2
8/11/2018 7:36 am
-ronan's Avatar -ronan

I'm trying to make an armour stand follow me around, and so far I'm successful, but I would like it to stop a couple of blocks away from the player. I'm currently using this command in a repeat, always-active command block:

/execute as NyssaAndThing run tp @ename=pet,type=armor_stand] @p


I've tried multiple times to try and figure out how to get it to pause a few blocks away, but nothing has worked. I was wondering if anybody had any tips/suggestions/ideas to help.



Thanks! :3













i think i made this thread right, eh whatever. yolo.


Posted by -ronan's Avatar
-ronan
Level 37 : Artisan Blockhead
143

Create an account or sign in to comment.

2

CGBrothers
08/11/2018 6:19 am
Level 53 : Grandmaster Lego Builder
CGBrothers's Avatar
Instead run a few command blocks that gradually moves the armorstand towards the player as long as the armor stand is outside of a radius.

Start a repeating chain

first command have a execute at @p run tp @e facing entity @p

then give a execute at @p[distance=2..] run execute at @e(if you give the armor stand a tag this will be easier) run tp @e ^ ^ ^1(Change this to change the speed of movement).

And actually I think thats all you would need.
1
-ronan
08/11/2018 7:36 am
Level 37 : Artisan Blockhead
-ronan's Avatar
Thanks a bunch!! :)
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome