Mojira Archive
MC-70317

Suggest command does not work in books

Bug Description
I was playing with a command book sort of thing and noticed that suggest_command does not work in books. run_command however functions correctly.

Steps to Reproduce
1. Paste this into a command block and activate it

/give @p written_book 1 0 {title:"test",author:"2called_chaos",pages:["{\"text\":\"\",\"extra\":[{text:\"Give all creative\n\", color:\"dark_green\", clickEvent:{action: \"run_command\", value: \"/gamemode 1 @a\"}},{text:\"Give creative\n\", color:\"dark_green\", clickEvent:{action: \"suggest_command\", value: \"/gamemode 1 @p\"}}]}"]}

2. Open the book and click on the first line (it sets everybody into creative)
3. Click on the second line (it does nothing)

Actual Behavior
Nothing happens when clicking on the second line.

Expected Behavior
The book closes (as with run_command) and opens the chat, etc. (what suggest_command does).

Works As Intended

Sven

[Mojang] Grum (Erik Broes)

2014-09-02, 04:56 AM

2023-04-23, 04:04 PM

2016-05-25, 11:42 AM

10

13

Community Consensus

Minecraft 1.8-pre3 - Minecraft 1.9.2Minecraft 1.8-pre3, Minecraft 1.8, Minecraft 1.8.9, Minecraft 16w06a, Minecraft 1.9.1, Minecraft 1.9.2

-