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

clickEvent for suggest_command in Written Book

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.19.4
    • Unconfirmed
    • Creative
    • (Unassigned)

      Bug Description
      suggest_command When clicked the command is placed in the chat bar but not executed. Players may edit the command before running it.

      Steps to Reproduce
      1. Paste this into a command block and activate it

      /give @p written_book{title:"testing suggest_command",author:"blublu_owns123",pages:['[{"text":"\'run_command\' give netherite Helmet\\n\\n","color":"dark_gray","hoverEvent":{"action":"show_text","contents":[{"text":"run_command Has command entered in chat as though the player executed it themselves. This can be used to run commands, but the command will fail if the player does not have the required permissions to use it or it is too long for the chat bar.","color":"white"}]},"clickEvent":{"action":"run_command","value":"/give @p netherite_helmet 1"}},{"text":"\'suggest_command\' give netherite ","color":"dark_gray","hoverEvent":{"action":"show_text","contents":[{"text":"suggest_command When clicked the command is placed in the chat bar but not executed. Players may edit the command before running it.","color":"white"}]},"clickEvent":{"action":"suggest_command","value":"/give @p netherite_helmet 1"}}]']} 1 

      2. Open the book and click on the First line ('run_command' give netherite Helmet) it should 'Run' this command (/give @p netherite_helmet 1)
      3. Open the book and click on the Second line ('suggest_command' give netherite) it should 'Suggest' this command (/give @p netherite_helmet 1)
      3. the Second line (it does nothing)

      Actual Behavior
      Nothing happens when clicked the command on the second line.

      Expected Behavior
      When clicked the command is placed in the chat bar but not executed. Players may edit the command before running it.

      gameplay video of testing testing suggest_command https://youtu.be/Tjz17-CUvaI also backup of flat world with command blocks testing

            Unassigned Unassigned
            blublu_owns_123 blublu_owns123
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: