The bug
My friend discovered a turtle in a boat and wanted it released, so I decided to try and teleport it to me using:
/tp @e[type=minecraft:turtle,distance=..10] @p
This resulted in the game confirming that the entity got teleported while in fact nothing had happened, see the attachment.
The reason why I suspect this to be a bug is because I can easily teleport other players this way. Even if I explicitly address them as an entity:
/tp @e[type=player,distance=..10] @p
This will teleport the player to me, even if they're in a boat.
Linked issues
Attachments
Comments 9
Ticket given to @unknown on request (https://discordapp.com/channels/647810384031645728/648555618994618378/711292676196008025)
This is likely fixed per MC-275505
What tryashtar said is indeed correct. It's up to the mods to keep this ticket open or not, I'll leave this not updated until a decision is taken.
I'll add on to the issue, the entity that you teleport will also rotate to match the player's rotation (keep in mind that they can only rotate so much to either side in a boat, so nothing appears to happen under some circumstances), but remains in the boat. /execute also has no effect.