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

/teleport command on Command Blocks is no longer relative to the command block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 24w36a
    • None
    • Unconfirmed
    • (Unassigned)

      This is my first submitted issue, so I apologise if there is any incorrect formatting.

      On 24w36a, when using the /teleport command on a Command Block, it seems that the command is instead relative to whichever entity is specified. Thus, when entering a command (i.e. /tp @e[type=pig,limit=1] ~ ~1 ~) into a command block, it will teleport a pig upwards by one block relative to its own position instead of the command block's.

      Notably, the command output seems to output the expected coordinates.

      I have not seen this on any changelog, so I'm assuming this somehow relates to the teleportation bug currently present with ender pearls.

      How to reproduce

      1. Enter a world with commands enabled on Creative.
      2. Place a command block of any type (preferably Repeating so the effect is noticeable).
      3. Type a command such as "/tp @e[type=pig] ~ ~1 ~" into the command block, and enable it. Notice how any pigs nearby immediately begin to 'levitate' into the air.

        Expected behaviour

        The pigs are teleported one block above the command block.

        Actual behaviour

        The pigs are teleported one block above theirselves individually.

            Unassigned Unassigned
            CathodeRay CathodeRay
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: