mojira.dev
MC-298013

click_event text in books no longer closes book screen

When clicking on a run_command-enabled click_event text in a book, versions prior to 25w20a would close the book screen. The book screen no longer closes when such an event has occurred.

Steps to reproduce the issue:

  1. Download example datapack and create a new world with commands enabled; load this datapack in whatever fashion works best for you.

  2. Run the command /function akoimeexx:template/give_book

  3. Open the book and click on the text “/trigger command”; this runs the command /trigger score set 1

Expected result:

  • Book screen should close

  • “Triggered [Trigger Score] (set value to 1) should show in chat

  • ticked.mcfunction function should detect the score change and run tellraw @a [{selector: "@s"}, " triggered a score by the book!"] then reset/re-enable the trigger score

Actual result:

  • Book screen stays open

  • “Triggered [Trigger Score] (set value to 1) shows in chat behind book screen

  • ticked.mcfunction function does not run until book closure, or if Open to LAN is enabled.

Environment

Windows 10, Java 21, Vanilla

Attachments

Comments 1

Confirmed fixed in 25w21a

akoimeexx

(Unassigned)

Unconfirmed

(Unassigned)

25w20a

25w21a

Retrieved