Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-25534

Issue when teleporting with relative coordinates and decimals with Command Blocks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 1.2.0.22, 1.2.0.25, 1.2.0.31
    • Confirmed
    • Windows
    • 82368

      Update by Mega_Spud:
      Summary:
      When trying to move a player by teleporting them by small amounts (Less than 1, eg 0.5 blocks), they do not move incrementally as they should.

      Steps to Reproduce:

      1. Use this command several times (or in a repeating command block) /execute @p ~ ~ ~ tp @s ~.1 ~ ~

      Observed Results:
      The player teleports to one location only, even if the command is run repeatedly.

      Expected Results:
      The player should get moved by 0.1 several times, incrementally moving the player along.

      (For an example of how it should work, use whole numbers in the command, like this: /execute @p ~ ~ ~ tp @s ~2 ~ ~

      Screenshots/Videos attached: Yes

      Notes:
      Test world attached Relative Coord TP.mcworld


      Original Description:
      If you teleport with relative coordinates with decimals like this (/tp ~.2 ~ ~), it works fine in chat, but if you do it with a repeating command block, it will just teleport you in the same location over and over again. This works when doing the command in chat, so I assume this is a bug with command blocks.

      P.S, I did use /execute and /tp and neither fixed the issue.

        1. MegaSpud 227.JPG
          190 kB
          [Mojang] Mega_Spud (Jay Wells)
        2. Relative Coord TP.mcworld
          185 kB
          [Mojang] Mega_Spud (Jay Wells)

            TheRealBMan TheRealBMan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: