mojira.dev
MC-83460

JSON requires quotes around the keys in the "/title" and "/tellraw" commands and NBT tags "pages", "Text1" .. "Text4"

Confirmed to happen with:

  • /tellraw

  • /title

  • Books and signs

tellraw and title doesn't work like it used to in 1.8

tellraw @a {text:"this is a text"}
title @a title {text:"this is a title"}

this works fine in 1.8, but in the 1.9 snapshots it doesn't.
it the 1.9 snapshots you require

tellraw @a {"text":"this is a text"}
title @a title {"text":"this is a title"}

to make it work.

in case of title, 1 worded titles would also work with

title @a title hello

but now needs to be

title @a title {"text":"hello"}

this will break a lot of maps made in 1.8, and also gives inconsistency among commands as, for example:

/give @p minecraft:written_book 1 0 {title:"",author:"",pages:["{text:lenient,color:blue}"]}

and

/setblock ~ ~1 ~ minecraft:standing_sign 0 replace {Text1:"{text:lenient,color:blue}"}

work fine, so why should tellraw and title have quotes around the keys too?

Linked issues

Comments 58

migrated

This ticket is incomplete. Please review the guidelines before reporting issues.
For technical support please use the Mojang Support Center.

--- This action was performed automatically. If you believe this was done erroneously, please :light_bulb_on: raise an issue.

kumasasa
migrated

confirmed for 15w31b when using

tellraw @a {text:"Hi"}

which mostly gets used already

it works fine when using

tellraw @a {"text":"Hi"}

trough

migrated

can this be reopened? this isn't fully fixed yet

Ezekiel

But isn't the first not not valid JSON?

48 more comments
migrated

I'll have to check later because I'm not at my computer ATM. My commands are all valid lenient JSON as they work in 1.8. Of course the commands without JSON aren't valid, but I think the filter ignores those. Some of my worlds also have JSON signs with /blockdata commands in lenient JSON which I don't know if the filter fixes. If we could find a way to PM that would be great.

migrated

I'm /u/anonymu on Reddit, if you want to talk there.

migrated

Perfect. I have to do some testing though.

migrated

It said on the fix version, 15w31b, still not fixed. :<

migrated

It was fixed, but is now intended behavior.

migrated

michael

Confirmed

/tell, /tellraw, error-message, inconsistent, json

Minecraft 15w31a, Minecraft 15w31c, Minecraft 15w32a, Minecraft 15w32c

Minecraft 15w31b

Retrieved