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

Suggest command does not work in books

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Works As Intended
    • Affects Version/s: Minecraft 1.8-pre3, Minecraft 1.8, Minecraft 1.8.9, Minecraft 16w06a, Minecraft 1.9.1, Minecraft 1.9.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      OS X 10.9.4, Java 1.8.0
    • Confirmation Status:
      Community Consensus

      Description

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: