I am really sorry if this is a duplicate.
So made a report some time ago about another bug with " and the mod responsed that you can use ' everytime and don't have to escape it.
This worked also a long time fine until I found this bug:
/give @a sign 1 0 {BlockEntityTag:{Text1:"{translate:'item.skull.name',color:'dark_red',clickEvent:{action:run_command,value:'/tellraw @a {text:'HI'}'}}",id:"Sign"}}
The part which is causing the error is {text:'HI'} and there especially the ' .
When you use instead \" it works fine...
So please Mojang(Microsoft ... ) developers could you please make it possible that you don't need to escape there anything with \ until you want to write " ?
Comments 10
But normally the ' doesn't need to be escaped, only the "
Hmm you are right, when you escape the ' it works, but I am not sure if this is intended because
a Mod commented here MC-59504 with the first comment that you don't have to escape the ' maybe this has changed?
No, you got it wrong.
You must not have nested quotes of any kind.
All of those combinations are valid:
"outer:'inner'"
'outer:"inner"'
"outer:\"inner\""
'outer:\'inner\''
But why is Minecraft reading the input of commands so strange then I mean (I am not an expert, sorry if this is too stupid) why can't it count the " and then analyse the command and just ignore the \" and \' so they can later be displayed as " and ' in the chat?
Because
"first:"second:"third:fourth"""
will be read as
"first:" second: "third:fourth" ""
But if you use
"first:'second:\"third:fourth\"'"
it will still be
"first:'second:\"third:fourth\"'"
I don't really get what you want to do with this
"first:"second:"third:fourth"""
Should this be a text or are some of these tags?
I mean couldn't you do something like this:
Example: /tellraw @p {text:"",clickEvent:{action:"runCommand",value:'/say HI\"'}}
Get first tag (here text)
Look for either two " or two '
If a string-tag is inside the text tag, then do the 2. step again for this
And/or look for tags with bracke
Look at clickEvent for { and }
Look at action tag for two " or ' and then interpret it as a action to do (comparing to a list with possibilities)
Look at the value tag and search for two " or ' (ignore \" because the \ escapes it)
Run everything inside the value tag
Thank you for an answer... this bug tracker is really great, Mods don't response, Developers close reports for "no reason", they don't write a comment, and also close bugs, which they don't want to fix now instead of setting them as "Minor bug" or something like this, that they can maybe fix it later!
Thank you for an answer... this bug tracker is really great, Mods don't response
This issue is not a bug, thus nothing more to say about it.
BTW: Nice attitude.
*plonk*
I meant my "suggestion", I just wanted to know if this would maybe work 🙂
This attitude has a reason, I commented on more than 2 reports multiple times, but no one responsed!
MCL-1905
Works as intended. Nested quotes must be escaped.