Teleport a mob to an armor stand when it gets too far from it
//ads -- adsterra.com -- native banner
?>
I have an armor stand called 'Slime' and I need to teleport a slime called 'KingSlime' to it when it gets 5 blocks away. I tried this with the command:
/execute @e[type=ArmorStand,name=Slime] ~ ~ ~ /execute @e[type=Slime,name=KingSlime,rm=5] ~ ~ ~ /tp 62 5 18
Pictures about "Teleport a mob to an armor stand when it gets too far from it"



How do you teleport an armor stand with a name?
/tp \\@e[type=armor_stand,name=custom_name] destination.How do you teleport forward in Minecraft?
You can use the /teleport command to teleport a player or entity to a set of coordinates in the game (see also /tp command).Can you move armor stands in Java?
In Java Edition, it is possible to create an armor stand with arms using the /summon command. It is also possible to change an armor stand without arms into a stand with arms by using the /data command.How do I make my armor stand move?
Armor Stands can be pushed by Pistons. Armor Stands can also be moved by running water.Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Budgeron Bach, Usman Aliman, Andrea Piacquadio, Chokniti Khongchum
