Minecraft – How to teleport 2 blocks in front of an armor stand with a custom name

minecraft-commandsminecraft-java-edition

As you can see the question is in the title. I've tried:

/tp @p @e[type=ArmorStand,name=the armor stand name] ~ ~ ~2

But it doesn't work.

Best Answer

I recommend doing two commands.

  1. /tp @p @e[type=armor_stand,name=Name]

  2. /tp @p ~ ~ ~-2