The bug
The hitbox for the lectern extends above the top of its 1x1x1 cube, meaning that raycasting never collides with it, even though it should.
See screenshots.
19.19.38 shows my cursor pointing at the lectern visual model and the lectern not being selected.
19.19.42 shows my cursor pointing low enough to hit the lectern and the raycast volume being shown to extend to the top of the visual model (i.e. above the point my cursor was pointing at in 19.19.38).
This is likely due to optimizations made in the raycasting method that assume all voxel shapes are contained within the 1x1x1 cube, even if those shapes extend beyond (in any direction).
This also affects extended shulker boxes and piston heads (see MC-124459), as stated by @unknown in this comment.
Linked issues
is duplicated by 1
relates to 3
Attachments
Comments 11
Affects 1.18.2-pre3; I've opened MC-248786 to cover the core issue responsible for this problem.
Wouldn't a better title be "Raycasting for block hitbox only checks in 1x1x1 block space, missing some blocks whose hitbox is bigger"?
EDIT: nvm, that's the above linked report.
Confirmed for 1.15.1.
Also affects shulker boxes and piston heads.