Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-276516

Teleport command ignores execution position

XMLWordPrintable

    • Icon: Bug 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.

            Unassigned Unassigned
            system_update99 SystemUpdate
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: