mojira.dev
MC-117316

Giving color item not working

Giving player an item with color name is not working anymore

Steps to Reproduce:
First run this command with command block and active it

/setblock ~-1 ~ ~ wall_sign 4 replace {Text2:"{\"text\":\"\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/blockdata ~1 ~ ~ {auto:0,Command:\\\"give @p apple 1 0 {display:{Name:\\u00a79Blue\\u00a7r}}\\\"}\"}}",Text3:"{\"text\":\"\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/blockdata ~1 ~ ~ {auto:1}\"}}",Text4:"{\"text\":\"\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/setblock ~ ~ ~ air\"}}"}

Then an error will come out

You can see an error at the second picture

First picture is from 1.11.2
Second picture is from 1.12 pre-2

Attachments

Comments 1

You have to put quotation marks around the Name value since the § character may no longer be in an unquoted string.

AriesStar1337

(Unassigned)

Unconfirmed

Minecraft 1.12 Pre-Release 2

Retrieved