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

setblock and blockdata cannot set a command block containing a command also including ""

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 14w08a
    • None
    • Unconfirmed

      so I tried to use the snapshot server window for 14w08a and change what command was in a command block so I could use the color symbole (§) because you cannot input it directly in minecraft. this is the command I tried to type into the window: setblock -98 9 486 command_block 0 replace {Command:"give @a filled_map 1 3 {display:{Name:"§6§lQuest Map",Lore:["§dLook for the §4§l[§f§l!§4§l]"]}}"}

      In the server window, it said that there was a syntax error, and I know why, its because the nbt data tag that is Command:"(insert command here)" looks for the end of the command with an " but, in the command I put in there, it has those ". because of this, the server thinks I am ending the command early. I think it would be usefull to add/change the syntaxing for this tag to something like Command:[(insert command here)] without the ()

      thank you so much for the help!

            Unassigned Unassigned
            avfreak Jimmy LeBaron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: