if you use, for example, this command:
/execute @e[name=1] ~ ~ ~ tp @a ~ ~ ~
The coordinates refer to the player (@a) and not to the entity (@e)
Comments 4
It's not that bug...
It's works as intended...
The relative coords in the /tp command are referring to the player/entity in the /tp command and they're ignoring the /execute...
In your example the solution is: "/tp @a @e[name=1]"... You don't even need an execute command for that!
But when you use this command: /tp @a @e[name=1] the player is looking in the same direction as the entity
I'm not entirely certain what the problem is since you're not explaining what you expect to happen.
From I can gather, I think I understand your issue.
Currently execute is bugged. This is likely a duplicate of MC-66835