mojira.dev
MC-50169

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

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!

Comments 1

Im sorry, I figured out how to do this after I reported this, sorry for the trouble 😞

ps, if any 1 has had this same problem, this is how to fix it, just don't put the parenthesis after Command: ex.

Command:(insert command here)

Jimmy LeBaron

(Unassigned)

Unconfirmed

Minecraft 14w08a

Retrieved