mojira.dev
MC-97513

Player-controlled entity fails to teleport more than 10 blocks away

If a command block teleports an entity (pigs, boats, and horses) when a player is riding it, and the destination is less then 10 blocks away from the entity, it will move there for a moment and then it will return back to the original place. Client-side the player and the entity aren't moved at all, so it appears that the command doesn't work.
The player moves with the entity. If the entity is teleported too fast (using repeating command block), the player will even stay on the destination coordinates. But because client-side the player is not teleported, the server and client desync, which can be seen when you try to throw items or to break/place blocks.

Possibly the same issue as MC-102608.

Related issues

Attachments

Comments

migrated
[media][media]
onnowhere

Confirmed 1.9.4 NOOOOOOOOOOOOOOOOOOOOOOoooooooooooooooooooooooooooooooooooooooooooooooooooo

This happens whenever the command is run and does not rely on fill/repeat clock. Additionally, you can no longer edit the motion tag of entities like this. The only exception is the MinecartRideable which still functions normally when teleported/motion edited.

This breaks things like invisible seats for flying transport made from command systems (like a flying carpet that you ride) because of reliance on horses or pigs.

migrated

Confirmed for 16w20a

violine1101

Summary:

Player-controlled entity fails to teleport more than 10 blocks away

Description:

and the destination is less then 10 blocks away from the entity

Which is it?

migrated

i have try it with 5,10,20 blocks --> nothing works

migrated

confirmed in 18w05a. There is another issue that involves getting in a boat, moving to a new location, then leaving the boat. Upon dismounting, the boat isn't there and shortly comes flying in from where it was mounted. A fix to this ticket might fix that issue as well.

migrated

@@unknown Please create a new ticket for the issue you described if there isn't one yet.

migrated

Confirmed for 1.13.1.

migrated

Confirmed for 20w14a, neither teleportation nor Motion NBT editing function.

migrated

I Found a way around this.
I will use my example of how did I do it.
Imagine an ice road for the boats to go on. At the end of the road there are command blocks with the command:
execute as @e[limit=2,sort=nearest] at @s run execute unless entity @s[type=minecraft:armor_stand] run tp @s Insert coordinates here
A little bit before the command blocks there is a wall of armor stands. 2 stands in each block. As soon as the boat crosses the armor stands both the boat and the player get transported

Note: Even though the command teleports all entities that are closer to it than the armor stand wall, if you are inside the boat you will not get teleported unless you are between the armor stands and the command blocks

the version is 1.16.1

[media]
Sniper1.1

Can confirm in 1.18.2. I was looking into making a boat racing thing, and encountered this. I can probably work around it, but this may be an issue for some cases.

Shawn82

This issue was fixed in 24w33a.

[media]

migrated

(Unassigned)

Confirmed

Platform

Low

Commands, Player

/tp, riding, teleport

Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, ..., Minecraft 1.13.1, 1.15.2, 20w07a, 20w45a, 1.18.2

Retrieved