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

'/execute anchored' applies positional offset for relative (~) coordinates


    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Preview, Preview, Preview, Preview, Preview, 1.19.50, 1.19.51, 1.20.15 Hotfix, Preview
    • None
    • Confirmed
    • Windows
    • 908002

      The bug

      When using /execute anchored to change the anchoring context of a command, a positional offset is applied to local coordinates (the ones denoted by carets ^ ^ ^). This offset is also applied to relative coordinates (the ones denoted by tildes ~ ~ ~), which does not match behavior in Java Edition. Attached to this ticket is the same command in both editions.

      Steps to reproduce

      • Run the following command in chat:
        /execute anchored eyes run setblock ~ ~ ~ command_block

      Block is placed at eye height, not at the feet.

        1. bedrock.mp4
          8.04 MB
        2. java.mp4
          9.15 MB
        3. java's design intended, bedrock's wrong.jpg
          java's design intended, bedrock's wrong.jpg
          236 kB

            Sprunkles Sprunkles
            8 Vote for this issue
            4 Start watching this issue