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

Caret notation (local coords) does not work with /execute & detect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: 1.11.0.7 Beta, 1.10.0
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Platform:
      Windows 10 - PC

      Description

      The bug

      Caret notation (^ ^ ^) can be used in all commands to move the effect relative to the direction an entity is facing. For example, /summon cow ^ ^ ^3 creates the mob three blocks in the direction the player is viewing, starting at their feet. This works as intended.

      However, when used in execute or detect, the view direction is not used and the coordinates function exactly the same as if they were ~.

      How to reproduce

      Face a diagonal direction and run this command:

      /execute @p ^ ^ ^5 summon cow
      

       The cow was summoned five blocks south instead of five blocks forward.

        Attachments

          Issue Links

            Activity

              People

              Reporter:
              tryashtar [Mod] tryashtar
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: