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

Certain entities whose superclass isn't LivingEntity don't appear on the debug screen when pointed at

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.4, 20w49a, 20w51a, 21w03a, 21w05a, 21w05b, 21w06a, 21w07a, 21w08b, 21w10a, 21w11a, 21w13a, 21w15a, 21w16a, 21w18a, 21w19a, 21w20a, 1.17, 1.17.1, 21w40a, 21w41a, 21w42a, 21w43a, 21w44a, 1.18 Pre-release 1, 1.18 Pre-release 4, 1.18 Pre-release 5, 1.18 Pre-release 6, 1.18 Pre-release 7, 1.18 Release Candidate 2, 1.18, 1.18.1, 22w06a, 22w07a, 1.18.2 Pre-release 1, 1.18.2 Pre-release 3, 1.18.2, 22w11a, 22w12a, 1.19, 1.19.1 Pre-release 5, 1.19.2, 1.19.3, 1.19.4, 23w16a, 1.20, 1.20.1, 1.20.2, 23w41a, 1.20.3, 1.20.5, 1.21, 1.21.3
    • None
    • Confirmed
    • Debug

      The bug

      Entities such as paintings, boats, primed tnt, falling blocks, all projectiles except fireball (normal variant), dropped items, experience orbs, etc., don't appear on the debug screen when pointed at. This does not affect armor stands or mobs.

      How to reproduce

      1. Place, for example, a boat. Drop an item to the ground.
      2. Open the F3 debug screen and point at it
         The boat doesn't appear on the debug screen

      Code analysis

      This is caused by code at net.minecraft.client.renderer.GameRenderer.pick which says that "only if the 'picked' entity is an instance of net.minecraft.world.entity.LivingEntity" will be assigned to the field crosshairPickEntity of net.minecraft.client.Minecraft.

      This also causes that these entities, if named, will not show their name tag when hovered.

      Note: I also analyzed why items, fishing bobbers, snowballs, eggs and arrows don't appear after fixing, and I've seen that entities which are not 'pickable' (the ones I said) don't appear, but that is intentional and is said as a predicate at the ProjectileUtil.getEntityHitResult call.

        1. what should appear-1.png
          401 kB
          Ismael Rosillo
        2. Screenshot 2022-09-13 162854.png
          984 kB
          KingEnderCat
        3. Minecart does not show up in f3.png
          899 kB
          KingEnderCat
        4. 2020-12-13_19.55.17.png
          207 kB
          Ismael Rosillo

            Unassigned Unassigned
            ISRosillo14 Ismael Rosillo
            Votes:
            17 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: