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

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.2.0.22, 1.2.0.25, 1.2.0.31
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Platform:
      Windows 10 - PC
    • ADO:
      82368

      Description

      Update by [Mojang] Mega_Spud (Jay Wells):
      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              CHK: