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

Lectern hitbox extends beyond 1x1x1 cube

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.14.4
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Hitboxes
    • Mojang Priority:
      Trivial

      Description

      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).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              draco18s Draco Silverwing
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: