Mojira Archive
MC-96927

Selector C= Targeting Inaccurate Entity Position

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.

Fixed

Onnowhere

2016-02-11, 11:55 PM

2016-03-10, 10:12 AM

2016-03-10, 10:12 AM

26

11

Community Consensus

Minecraft 16w06a - Minecraft 1.9Minecraft 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

Minecraft 1.9.1 Pre-Release 1