-
Bug
-
Resolution: Duplicate
-
None
-
24w36a
-
None
-
Unconfirmed
-
(Unassigned)
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.
- duplicates
-
MC-276315 Teleport command runs at the entity's position and ignores location from execution context
- Resolved