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:
Download example datapack and create a new world with commands enabled; load this datapack in whatever fashion works best for you.
Run the command
/function akoimeexx:template/give_book
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 runtellraw @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
Confirmed fixed in 25w21a