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

Hover/click events in books are vertically misaligned by about a third of a row of text

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 18w47a, Minecraft 18w48a
    • Fix Version/s: Minecraft 19w03a
    • Labels:
      None
    • Environment:
      Windows 10, Minecraft Java Edition, running Java 10.0.2
    • Confirmation Status:
      Confirmed

      Description

      The bug

      As of 18w43a, the first 1.14 snapshot, the "hitbox" for the cursor is incorrectly aligned for book click/hover events, meaning you can sometimes click the line above accidentally instead of what your cursor was hovering over.

      How to reproduce

      /give @p minecraft:written_book{pages:["{\"text\":\"Link to PAGE 2\",\"color\":\"blue\",\"clickEvent\":{\"action\":\"change_page\",\"value\":\"2\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"Hover text\"}}}]","[\"\",{\"text\":\"This is PAGE 2\"}]"],title:"Test Book",author:"?"} 

       Hover your mouse over the top half of the line.

      Here is a video demonstration: https://youtu.be/0GVYpVo99Jk

        Attachments

          Activity

            People

            • Assignee:
              boq [Mojang] Bartosz Bok
              Reporter:
              TheRedstoneBlaze Ethan Maness
            • Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: