How to make armor stands follow you when in a specific vehicle in 1.17.1

How to make armor stands follow you when in a specific vehicle in 1.17.1 - A Military Man Standing Besides a Tank

I have tried to make an artillery cannon data pack. I want it so that when sitting in a minecart with tag "gun" multiple armor stands with blocks on their heads make the cannon body move where the player does.

I tried to do this:

/execute as @e[type=minecraft:minecart, tag=gun] at @p[distance=..1] run tp @e[type=armor_stand, tag= gunmain, distance=..2] ^ ^ ^3 ~ ~

It does not seem to work reliably but when it does work the armor stand gets teleported only once. Does anyone have a solution for this?

Thanks in advance :)






Pictures about "How to make armor stands follow you when in a specific vehicle in 1.17.1"

How to make armor stands follow you when in a specific vehicle in 1.17.1 - Tan Military Artillery Vehicle Toy on Wood Stump
How to make armor stands follow you when in a specific vehicle in 1.17.1 - Unrecognizable soldiers near tank during military training
How to make armor stands follow you when in a specific vehicle in 1.17.1 - A Military Vehicle on the Street



How do you get armor stands to stare at you?

Armor Stands can be pushed by Pistons. Armor Stands can also be moved by running water.

How do I make my armor stand move?

Steps to Use an Armor Stand
  • Place the Armor Stand. Before you can use an armor stand, you will to put it somewhere in your world, for example, in your shelter. ...
  • Move Items to Armor Stand. Next, you will want to move items from your hot bar to the armor stand. ...
  • Remove Items from Armor Stand.




  • Minecraft 1.18.1: How To Make Armor Stands Attack You, Protect You, or Walk Around




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Art Guzman, Pixabay, Plato Terentev, Ivan Hassib