mojira.dev
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).

Linked issues

Comments 6

16w06a! WTF IT'S STILL IN THE GAME SINCE 1.8-Pre3!? Plz Fix!

This is not fixed. It remains a problem as of the 1.10 full release. Try the steps provided in the description.

Resolution: Works As Intended

Well, that's severely disappointing.

it seems indeed Works As Intended after all. however when report its marked has Works As Intended it should had reason Comment by @unknown detail however its intended to work for written_book instead of confusing.

Sven

Erik Broes

Community Consensus

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

Retrieved