mojira.dev
MC-102598

/tping entities results in teleportation relative to the player

If you use the command

/tp @e[type=Witch,c=1] ~ ~1 ~

in versions before 16w21a (Not sure about 16w20a), it will, as expected, teleport the nearest witch up by one block.

However, if you use the same command in 16w21a, the result will be different;
The nearest witch will be teleported one block above the player. The witch will also teleport to the same rotation the player is looking.
This effect does not occur with command blocks.

Fix for now

Use the /tp command after an execute command directed to the entity you want teleported.

This feature was wanted for quite a while, but I'm very certain not in this form, as it breaks things completely.

Linked issues

Comments 14

This was the change made to relative coordinates in 16w20a, use /execute.

Aw, come on! I was so ready for it to be fixed... That's really weird though, and annoying. I mean, what if you have a long name for the entity, then the entire command won't fit into the chat.

Then you target it in a different way, for example, tag it with scoreboard.

That still makes the process longer. Much longer. You used to be able to easily position entities, now you have to write a much longer command.

That the command has to be made much longer, and that you want it implemented differently doesn't make it a bug.

Sorry, but this is definitely intended behaviour as of now.

4 more comments

As I said, yes, that's a feature a big part of the community has been wanting for a lot of time, but we didn't want it to always happen. Just something like "/tp @e[type=Witch] @p ~ ~1 ~". Also, you're the only one who said this is intended and you have yet to send any proof.

The old behavior of /tp being relative to the entity that's teleported was incorrect, relative coordinates are always relative to the command executing entity (or block), so this is now working as intended. Teleporting entities relative to their current position can be achieved using the /execute command.

This issue still exist in 16w21b

@unknown, it's still there because it's not a bug, it's an intended change, a feature. See Searge's comment above.

Spake Miner

michael

Unconfirmed

Minecraft 16w21a

Minecraft 1.10 Pre-Release 1

Retrieved