-
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, 1.21.4
-
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
Place, for example, a boat. Drop an item to the ground.- 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.
- is duplicated by
-
MC-255895 When in F3, Boats and Minecarts will not appear in the "Targeted Entity" section
- Resolved