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

Command execution position within a function not updated by tp command

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Works As Intended
    • Affects Version/s: Minecraft 17w48a
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Linux Mint 17.3, Oracle Java 1.8.0_151, Nvidia GeForce GT 730, video driver version 384.90
    • Confirmation Status:
      Unconfirmed

      Description

      When the entity executing a command function is moved by a tp command within that function, subsequent commands within the same function will still be executed at the original position of the entity. For example, a function containing the following commands

      tp @s ~ 250 ~
      summon minecraft:armor_stand ~ ~ ~

      when executed by the player will move the player to y=250 but will summon the armour stand at the player's original position.

      I can work around this by prefixing the summon command with execute at @s run but this would mean potentially making this change to every command that might possibly follow a tp of the executing entity.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              phssthpok Phssthpok Pak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: