mojira.dev
MC-160267

Suggest command click event doesn't work in books.

Description

The "suggest_command" click event does not work in written books. When clicking on the text nothing happens.

What should've happened

When clicking on the text with the click event it should have opened chat with the specific text specified in chat.

What actually happened

Nothing.

How to recreate

Give yourself a book like this one here:

/give @p written_book{pages:["[\"\",{\"text\":\"click here\",\"clickEvent\":{\"action\":\"suggest_command\",\"value\":\"/team join <PlayerName> <TeamName>\"}}]"],title:CustomBook,author:Player}

When clicked on chat should open and "/team join <PlayerName> <TeamName>" should appear in chat.

By running the following command you can see how this function should work by doing this through a tellraw command:

/tellraw @p ["",{"text":"click here","clickEvent":{"action":"suggest_command","value":"/team join <PlayerName> <TeamName>"}}]

Linked issues

Comments 0

No comments.

Rover

(Unassigned)

Unconfirmed

(Unassigned)

1.14.4

Retrieved