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

Suggest command does not work in books

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 1.8-pre3, Minecraft 1.8, Minecraft 1.8.9, Minecraft 16w06a, Minecraft 1.9.1, Minecraft 1.9.2
    • None
    • OS X 10.9.4, Java 1.8.0
    • Community Consensus

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

            grum [Mojang] Grum (Erik Broes)
            2called-chaos Sven
            Votes:
            10 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: