mojira.dev
MC-66873

tp command in execute command

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

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

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

There's not way to really teleport a player to an entity with the player's direction... You can ask that as a feature in the reddit site but I don't think they're going to add anything like that so close to the 1.8 release...

Luca Staus

(Unassigned)

Unconfirmed

Minecraft 14w32d

Retrieved