The player can try to interact with newer entities further away under some circumstances. This creates inconsistent interaction behavior.
- Place two armor stands a few blocks away from each other
- Place any kind of block(s) between them
- Stand in both armor stands and try to mine/open/otherwise interact with the block(s) while looking at the other armor stand
→ You are only able to interact with the block(s) while standing in the older armor stand
Use the setup described above and equip a tool / weapon and turn on Crosshair Attack Indicator.
As long as the younger entity is within a maximum radius of about 6 from you and too far to be within attack range (or there's a block in the way), the indicator will vanish to show that you're currently triggering the bug due to aiming at a nearby younger entity's hitbox (a.k.a. no longer targeting the entity you're standing in). F3+B is also handy for seeing the hitboxes.
Based on Based on 1.11.2 decompiled using MCP 9.37
The method net.minecraft.client.renderer.EntityRenderer.getMouseOver(float) does not consistently define which entity should preferred. Expected would be probably:
- Closest entity intersecting with player's eye level
- If no entity intersecting with player's eye level exists closest entity in ray from player's eyes