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

Lectern and shulker box hitbox extends beyond 1x1x1 cube

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.14.4, 1.15.1
    • 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).

      This also affects extended shulker boxes and piston heads (see MC-124459), as stated by [Helper] Misode in this comment.

        Attachments

        1. 2019-08-11_19.19.38.png
          2019-08-11_19.19.38.png
          117 kB
        2. 2019-08-11_19.19.42.png
          2019-08-11_19.19.42.png
          119 kB
        3. javaw_CLdomv13FQ.png
          javaw_CLdomv13FQ.png
          148 kB
        4. unknown.png
          unknown.png
          50 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  CHK:

                  Potential Duplicates