Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-160267

Suggest command click event doesn't work in books.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.14.4
    • None
    • Unconfirmed
    • (Unassigned)

      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>"}}]
      

            Unassigned Unassigned
            Rover Rover
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: