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

NBT setblock with command_block data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 17w17a
    • None
    • Unconfirmed

      Since the new NBT data was changed I could use:
      setblock ~ ~1 ~ command_block 0 replace {Command:"/say hi"}

      But not when using it in a sign like this:
      setblock ~ ~1 ~ standing_sign 12 replace {"Text1":"[{\"text\":\"test\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/setblock ~ ~1 ~ command_block 0 replace {Command:"/say hi"}\"}}]"}

      It will see that there is a " and stop the command. Changing it to \" does not change this.

      And I can't think of any fix for it. Someone else having problems with this?

            Unassigned Unassigned
            HeroChris Christian Prater
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: