How would I be able to keep a mob a certain distance away in a specific direction from the player?

//ads -- adsterra.com -- native banner
?>
I am trying to teleport a villager exactly 6 blocks west of the player repeatedly. I have tried everything I can think of. How can I do this?
Pictures about "How would I be able to keep a mob a certain distance away in a specific direction from the player?"



How do you keep a mob in place in Minecraft?
2. Type the CommandLost Ark: Important Settings and Features You Need to Know About!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Baihaki Hine, Nathan J Hilton, Julia Volk, John Diez