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

Lectern and shulker box hitbox extends beyond 1x1x1 cube

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.14.4, 1.15.1, 1.16.3, 1.16.4, 20w49a, 21w03a, 21w06a, 1.17, 1.17.1, 1.18.1, 1.18.2, 22w16b, 1.19, 1.19.2, 1.19.3, 23w05a, 1.20.1, 1.20.4, 1.21
    • Confirmed
    • Hitboxes
    • Low
    • Gameplay

      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 Misoloo in this comment.

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

            Unassigned Unassigned
            draco18s Draco Silverwing
            Votes:
            16 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: