mojira.dev
MC-187850

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

The bug

run_command click_events don't work in written books if chat is set to "Hidden" in chat settings. Signs are not affected.

How to reproduce

  1. Give yourself a written book with a run_command click_event:

    /give @s written_book[written_book_content={title:MC-187850,author:j_p_smith,pages:[{text:"Give stone",click_event:{action:run_command,command:"give @s stone"}}]}]
  2. Open the written book and click on the text

  3. Click “Yes” to confirm command execution
    → ✔ You are given a block of stone

  4. Set chat to "Hidden" in chat settings

  5. Repeat steps 2–3
    → ❌ You are not given a block of stone

Linked issues

Comments 0

No comments.

j_p_smith

boq

Confirmed

Commands, Input, Text, UI

1.15.2, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 5, 1.16 Pre-release 6, ..., 1.21.3, 1.21.5, 1.21.6, 1.21.7, 1.21.8

25w33a

Retrieved