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

Executing a teleport for entity on a mount creates false 'success' value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 19w09a, 20w16a
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Win10, lots of RAM, 64-bit Java
    • Confirmation Status:
      Community Consensus
    • Category:
      (Unassigned)

      Description

      What's happening:

      Executing a teleport command for an entity that is riding something will return a 'success' even though the entity being teleported didn't go anywhere.

       

      How to replicate bug:

      In a creative flat world with no villages on it, spawn a villager and a boat, and push the villager into the boat.  Next, create a dummy scoreboard objective called eVillagerTP, and give it an initial value of '0' for the dummy player 'pTest'.  Now, run this command:

      execute positioned ~ ~1 ~ store success score pTest eVillagerTP run tp @e[type=minecraft:villager] ~ ~ ~

       

      Result I expected:

      I was expecting the score eVillagerTP for the dummy player pTest to be zero, since the villager did not get teleported from the boat.

       

      Result I got:

      The villager did not teleport anywhere, but the score eVillagerTP for the dummy player pTest was '1', indicating that the teleport was successful even though it had actually failed.  I also got a console message indicating that the villager had teleported to my coordinates even though the villager never left the boat.

      I only tested this on Minecraft 19w09a, but this bug may be present in previous versions of Minecraft down to the version where entities were no longer allowed to be teleported off of a mount.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            puppetpal clem Jay Eff
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: