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

Teleporting entities in the same tick they are spawned may cause desync

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.8.8, Minecraft 15w42a
    • None
    • Windows 8.1, Java 8
    • Unconfirmed

      Under certain circumstances, summoning an entity and teleporting it in the same tick causes the entity to visually remain where it was spawned. Having liquid at the teleport destination seems to guarantee the bug, though the duration is variable. Observed durations until the bug corrects itself range from 1 to 10 seconds.

      The entity can be interacted with by the player at its visual location, and by the rest of the world at its actual location. Sounds will come from the entity's actual location. If the entity moves while bugged, the movement will appear relative to the entity's visual location. Death of the entity seems to guarantee correction. Delaying the teleportation by any amount of ticks prevents the bug.

      To reproduce:

      1. Place two regular impulse command blocks next to each other.
      2. Set the first's command to

      /summon Villager

      3. Set the second's command to

      /tp @e[type=Villager] ~ ~ ~4

      (you can change the destination)
      4. Place liquid at the /tp command's destination.
      5. Place a button on the first command block.
      6. Press the button.
      The bug has a semi-random duration, so you may need to repeat step 6 to get a good look at it.

      Note that this affects every version from 1.8 (when the entity selector was added) forwards, but the bug tracker accepts only the versions listed.

        1. 2015-10-15_09.24.07.png
          2015-10-15_09.24.07.png
          138 kB
        2. 2015-10-15_09.24.20.png
          2015-10-15_09.24.20.png
          138 kB
        3. 2015-10-15_09.24.48.png
          2015-10-15_09.24.48.png
          160 kB
        4. 2015-10-15_09.27.36.png
          2015-10-15_09.27.36.png
          162 kB
        5. 2015-10-15_09.27.38.png
          2015-10-15_09.27.38.png
          162 kB
        6. 2015-10-15_09.29.42.png
          2015-10-15_09.29.42.png
          145 kB
        7. 2015-10-15_10.03.56.png
          2015-10-15_10.03.56.png
          76 kB

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

              Created:
              Updated:
              Resolved: