mojira.dev
MC-102608

Player can't teleport its ridden entity sometimes

The bug

When the player teleports an entity they ride (boats, horses, or pigs with a carrot on a stick), it won't move unless it's teleported more than 0.25 horizontally.

How to reproduce

  1. Ride on of the affected entities (for example, a boat)

  2. Use /tp @e[type=boat] ~ ~5 ~0.25
    → ❌ This doesn't work

  3. Use /tp @e[type=boat] ~ ~5 ~0.26
    → ✔ This does work

Related issues

Attachments

Comments

migrated
[media]
migrated

I also noticed that when a player is in a boat, a command block can not teleport the boat.

Command: /execute @e[ry=22,rym=-22,type=Player,tag=InBoat] ~ ~ ~ /tp @e[type=boat,c=1] ~ ~ ~1

Output: Teleported Boat to -1023.5002065873173, 56.0, 196.80990742076614

While the output says it teleported the boat, the boat did not move, nor did the player.

Changing the motion entity data tag does also not move the boat while the player is in the boat.

migrated

This is happening for me as well, on horses specifically. I'm in 1.13 pre-8 and using this command:

/execute at @a[x_rotation=42..,scores={ridetime=1..}] as @e[type=horse,distance=..3] run teleport @s ~ ~1 ~

The horse is teleported only sometimes while being ridden, usually not at all, even though it always says it teleported when the selectors are met.

Until this is fixed I'm going to be forced to do a messy work around

wobst.michael

@unknown, ticket is yours now. Please update as needed.

migrated

@unknown, aye aye sir

migrated

As of MC 1.13, the teleport command does not work at all on ridden entities when riding Horses, Donkeys, or Mules. However it does work while riding pigs.

Makzevu

Confirmed for 1.13.1-pre1.

Makzevu

Confirmed for 1.13.2-pre1.

Makzevu

Confirmed for 1.13.2-pre2.

Makzevu

Confirmed for 18w44a.

Makzevu

Confirmed for 19w09a.

Makzevu

Confirmed for 19w11b.

Makzevu

Confirmed for 19w12a.

Makzevu

Confirmed for 19w13b.

Makzevu

Confirmed for 1.14 Pre-Release 4.

Makzevu

Confirmed for 1.14.2 Pre-Release 3.

Makzevu

Confirmed for 1.14.2 Pre-Release 4.

Makzevu

Confirmed for 1.14.2.

Makzevu

Confirmed for 1.14.3 Pre-Release 1.

Makzevu

Confirmed for 1.14.3 Pre-Release 2.

Makzevu

Confirmed for 1.14.3 Pre-Release 3.

Makzevu

Confirmed for 1.14.3 Pre-Release 4.

Makzevu

Confirmed for 1.14.3.

Makzevu

Confirmed for 1.14.4 Pre-Release 1.

Makzevu

Confirmed for 1.14.4 Pre-Release 2.

Makzevu

Confirmed for 1.14.4 Pre-Release 3.

Makzevu

Confirmed for 1.14.4 Pre-Release 4.

Makzevu

Confirmed for 1.14.4 Pre-Release 5.

Makzevu

Confirmed for 1.14.4 Pre-Release 6.

Makzevu

Confirmed for 1.14.4 Pre-Release 7.

migrated

well for me in 1.14.4

/tp @e[type=boat] ~ ~5 ~.38541288150295824433

does not work

but

/tp @e[type=boat] ~ ~5 ~.38541288150295824434

does

onnowhere

Confirmed 1.15 pre-4.

Avoma

Can confirm in 21w05b.

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.

skztr

Confirmed in 1.19.4.

Also note that this bug also occurs when following the procedure:

 - dismount the entity (eg, using `ride @s dismount`)

 - teleport the entity

 - re-mount the entity (eg, using `ride @s mount @e[tag=vehicle,limit=1]`)

 

within the same tick. That is to say: even if the vehicle is not mounted at the exact moment of teleportation

 

Shawn82

This issue was fixed in 24w40a.

[media]

Makzevu

(Unassigned)

Confirmed

Platform

Normal

Commands

Minecraft 16w21b, Minecraft 1.10.2, Minecraft 16w42a, Minecraft 16w43a, Minecraft 1.11.2, ..., 1.18.2, 1.19 Pre-release 2, 1.19.4 Pre-release 3, 1.19.4, 1.20.1

Retrieved