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

"run_command" clickEvent doesn't work in written books if chat is hidden

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.15.2, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 5, 1.16 Pre-release 6, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w27a, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Pre-release 3, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Commands, Input, Text, UI

      Description

      The bug

      The "run_command" clickEvent does not work in written books if the chat is set to "Hidden" in chat settings. Signs are unaffected. The issue does not persist after dying and respawning (possibly due to MC-72721).

      How to reproduce

      1. Run the following command:
        /give @s written_book{author:j_p_smith,title:MC-187850,pages:['{"clickEvent":{"action":"run_command","value":"/give @p dirt"},"text":"Test"}']}
      2. Open the written book and click on the word "Test"
        You are given a block of dirt
      3. Set chat to "Hidden" in chat settings
      4. Open the written book and click on the word "Test" again
        You are not given a block of dirt

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Darth Cobby [Helper] j_p_smith
              Votes:
              4 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: