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

Improper coordinate rounding in portal of negative coordinates

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • 1.14.60 Hotfix
    • None
    • Unconfirmed
    • Windows

      When transitioning to the neather, positive overworld coordinates are rounded down and negative overworld coordinates are rounded up. 

      However when transitioning to the overworld, coordinates are strictly multiplied by 8

      This leads to a doubly wide section section of the overworld portal that translates to coordinate 0 in the neather, and un-aligns coordinates in the negative direction.

       

      It is my belief that overworld coordinates should be strictly rounded down after the division by 8 when calculating the associated neather coordinates for the portal (i.e. a floor function after the division).

      Attached are screenshots with color coordinated blocks to indicate where each is linked, and a world download. In the screenshots, the top layer indicates the transition from overworld -> neather, and the lower layer indicates the transition neather -> overworld and shows that the colors become un-aligned in the negative direction.

       

        1. block associations.png
          block associations.png
          43 kB
        2. Neather side.png
          Neather side.png
          738 kB
        3. Portal Play.mcworld
          230 kB
        4. Sending-Recieving corrilation.png
          Sending-Recieving corrilation.png
          370 kB

            9superswords 9superswords
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: