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

tp or teleport does not function as expected in a command block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.13, Minecraft 18w31a, Minecraft 18w32a
    • None
    • Unconfirmed

      I performed a search for tp, teleport, command block, etc... and did not get any results in the java edition bug-tracker.

      So as an example:
      teleport @p[dx=28,dy=67,dz=2] 28.5 67.5 17.5 0 10 (also tried with tp)
      will function inconsistently. One time, it works. The next time it doesn't.

      Oddly enough, running this same command from the console line works every time, but also it works from wherever you are in the world, ignoring the dx,dy,dz parameters, so it seems that maybe the issue is with the dx,dy,dz parameters? Or maybe I am using them wrong, but I've looked all over the internet and haven't found anything to contradict what I'm using for this version of MC.

      If I remove the dx,dy,dz parameters, it works every time. Of course, this is a problem because I only want it to work when a player is standing in the dx,dy,dz coordinates so that mobs cannot set the thing off whenever they step on it and then the nearest player 1000 blocks away gets teleported to the destination and is left wondering what on earth just happened? (It is essential for this map that I use a pressure plate as the trigger for this one.)

      I also experimented with the distance= parameter using 1, 2, 3, etc... as the radius, but this does not work at all.

      The issue does not seem to occur in other parts of the world and the particular problematic command block is very near the center of the world. I wonder if there is something to this. I have tested in other areas and the problem may occur now and then, but is not nearly as bad.

      So, for instance:
      teleport @e[dx=28,dy=67,dz=16] 28.5 67.00000 1.5 180 0
      almost never fails, but does in rare instances.

      The only difference between this line and the one at the top is that the dz= parameter is double digits (16) in this one and only single digits (2) in the first.

      I do wish that there was a concise reference for each version of MC commands somewhere. The MC Wiki and MC Forums are just all over the place for the most part.

      I hope I'm not wasting anyone's time with this one.

      Thanks,

      • Jim D.

            Unassigned Unassigned
            DensonJ James Denson
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: