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

Can interact with other things in the world through entity hitboxes under certain circumstances



    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.12, Minecraft 17w50a, Minecraft 18w20c, Minecraft 1.13.1
    • Fix Version/s: None
    • Confirmation Status:
    • Category:


      The bug

      The player can try to interact with newer entities further away under some circumstances. This creates inconsistent interaction behavior.

      How to reproduce

      1. Place two armor stands a few blocks away from each other
      2. Place any kind of block(s) between them
      3. 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

      How to reproduce (attack indicator)

      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.

      Code analysis

      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:

      1. Closest entity intersecting with player's eye level
      2. If no entity intersecting with player's eye level exists closest entity in ray from player's eyes




            • Assignee:
              Remin Remin
            • Votes:
              2 Vote for this issue
              3 Start watching this issue


              • Created: