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

Open written book doesn't update text or close gui if book is changed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17.1, 1.18.1, 22w18a, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 23w43b
    • None
    • Confirmed
    • Networking

      This can only be tested on multiplayer or if you open singleplayer to LAN, because the game pauses when opening a book in non-LAN singleplayer.

      When you open a written book, and the book is then modified, or the book deleted, the gui isn't updated nor closed.

      Steps to reproduce:

      1. Make a small command block setup as shown in the image
        First command block (with button) has the command
        item replace entity @p hotbar.0 with minecraft:written_book{title:"Test Book",author:"You",pages:['{"text":"Test","clickEvent":{"action":"run_command","value":"/say hi"}}']}

        The second command block has

        item replace entity @p hotbar.0 with minecraft:written_book{title:"Test Book",author:"You",pages:['{"text":"Changed book"}']}
      2. Press the button
      3. Open the book in your hotbar before the second command block is powered
      4. Wait for the second command block to run
      5. Observe how the hand indicated the item changed, but the gui didn't update.
      6. Click the text
      7. Observe how the say command runs, while the player should no longer having access to it.

      Replace the second command with

      clear @p minecraft:written_book

      And repeat steps 2 and after; notice the same result, even with the book gone that the gui doesn't disappear.

        1. 2021-08-31_18.12.12.png
          660 kB
          user-f2760
        2. 2021-08-31_18.12.16.png
          985 kB
          user-f2760
        3. 2021-08-31_18.14.32.png
          698 kB
          user-f2760
        4. 2021-08-31_18.14.44.png
          730 kB
          user-f2760

            Unassigned Unassigned
            jirauser71590 user-f2760 (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: