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

/tp <target> <destination> uses context dimension rather than destination entity's dimension

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 18w15a, Minecraft 18w16a, Minecraft 18w20c, Minecraft 18w22c, Minecraft 1.13-pre1, Minecraft 1.13-pre6, Minecraft 1.13, Minecraft 18w31a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w04b, Minecraft 19w05a, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, Minecraft 1.14
    • Confirmed
    • Commands

      The bug

      /teleport <targets> <destination> should do the following:

      • Move each of targets to match destination's coordinates.
      • Send each of targets to the dimension in which destination resides.

      Here's what it actually does:

      •  Move each of targets to match destination's coordinates.
      •  Send each of targets to the dimension of the current command's context.

      How to reproduce

      1. Spawn a marker entity in the spawn chunks: /summon armor_stand
      2. Enter the nether
      3. Run /tp @s @e[type=armor_stand,limit=1]
         You remain in the nether, but your coordinates change.
      4. Run /execute in overworld run tp @s @e[type=armor_stand,limit=1]
         You are transferred to the overworld and end up near the armor stand. The first command should have done this as well.

      Dimension context should be overridden in this case, always using the dimension of the destination entity. For the /teleport overload that uses coordinates, the dimension context should be used (this works now correctly).

            cojomax99 [Mojang] Cory Scheviak
            RedstoneExplorer Aaron Rhodes
            Votes:
            19 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: