Mojira Archive
MC-276516

Teleport command ignores execution position

Command:

/execute as @s at @n[type=pig] run teleport ~ ~ ~

 

Expected behaviour:

The entity running the command would teleport to the nearest pig.

 

Actual behaviour:

The entity is teleported to its own relative coordinates.

 

Other notes:

  • This seems to apply to both teleport and tp commands.
  • The behaviour is the same when attempting to use execute positioned, regardless of if the position is another entity or a constant value. (edit: if the positioned value is set to a specific coordinate, it will print in chat the correct coordinates)
  • This bug prevents being able to teleport to an entity, and keeping the original rotation.

Duplicate

SystemUpdate

2024-09-08, 02:15 PM

2024-09-08, 04:48 PM

2024-09-08, 04:43 PM

0

1

Unconfirmed

(Unassigned)

24w36a

-