Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-96927

Selector C= Targeting Inaccurate Entity Position

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 16w06a, Minecraft 16w07a, Minecraft 16w07b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9
    • None
    • Community Consensus

      There seems to be some inaccuracies with selecting entities at coordinates at the center of blocks due to some issue with positioning.

      Test:

      0. Teleport to a coordinate with no decimals at the center of a block such as by /tp 0 0 0 or /tp 18 32 12.

      1. /summon Pig ~ ~ ~

      {NoAI:1b}

      2. /tp ~1 ~ ~

      3. /summon ArmorStand

      4. /say @e[type=!Player,c=1]

      5. Notice the result is the pig, rather than the armor stand which is clearly closer and you are standing inside it directly at its location.

      6. /say @e[type=!Player,r=5]

      7. Notice that the first result is the pig rather than the armor stand which if it was selecting correctly, should be displaying the armor stand first in the list of results due to it being closer. see MC-97316

      8. Repeat test with various entities to see the same results.

        1. 2016-02-26_21.03.19.png
          565 kB
          Meri Diana
        2. 2016-02-26_21.06.14.png
          750 kB
          Meri Diana
        3. c-selector_directional-bias.png
          127 kB
          Meri Diana

            Unassigned Unassigned
            onnowhere Onnowhere
            Votes:
            26 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: