Mojira Archive
MC-31233

Command blocks will not be spawned with the set block command if the written command is in json format

I was playing around with the new tell raw command and I wrote in a command block:

tellraw @p {"bold":"false","color":"blue","italic":"false","text":"Fish Monger>","extra":[{"bold":"false","italic":"true","color":"white","text":" Hey Bro!"}]}  

which effectively worked when I activated it. (the Fish Monger did say "Hey Bro" to me! )
Then, I tried to spawn that command block in a certain location with another command block. I wrote this in the command block:

/setblock ~-2 ~ ~2 137 0 destroy {Command:"tellraw @p {"bold":"false","color":"blue","text":"Fish Monger>","extra":[{"bold":"false","color":"white","text":" Hey Bro!"}]}"} 

Then I activated it

What I expected to happen was...:
The command block would spawn and when i activated it it would work like in my first esperience.

What actually happened was...:
The command block didn't spawn (I tried it with a give command and it worked)

Steps to Reproduce:
1. Make a tellraw command with specifications in colors, italic,... in a command block
2. Make a command block spawning the previous block with the setblock command
3. Test it

Invalid

JocaPinto

2013-09-15, 12:10 PM

2013-09-15, 12:17 PM

2013-09-15, 12:17 PM

0

2

Unconfirmed

Minecraft 13w37b

-