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

Entities will only use the last teleportation command if there are multiple in one tick

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 17w50a
    • None
    • Windows 7 64-Bit
      Java Version 8 Update 66 (build 1.8.0_66-b18)
    • Unconfirmed
    • Creative

      If you use a function to run two teleportation commands on an entity at once, the entity will only be moved by the final command. Without looking into the code, I'd warrant a guess that each teleportation command is overwritten by the next one (i.e. it applies the transformation to the entities coordinates at the beginning of the tick, not accounting for any previous teleportations), so only the last one actually updates the entities position.

      I believe that while it is a separate issue from MC-122118, it is caused by the same underlying problem.

      Steps to Recreate

      1. Create a function that has 2 commands: "/tp @s ~ ~5 ~" and "/tp @s ~1 ~ ~"

      2. Run that function from the chat

      3. Notice how the player will only move to the side one block, but will not move up 5 blocks.

      EDIT: After reading the resolution for MC-122726 I now believe that this is working as intended. Unfortunately, I cannot seem to delete this post... So, yeah.

            Unassigned Unassigned
            johnnyhotshotmc@gmail.com Johnny Puskar
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: