mojira.dev

Ryan Luckhardt

Assigned

No issues.

Reported

No issues.

Comments

That's only the tip of the iceberg, Ferenc.
The number of backslashes needed for each quotation mark increases exponentially for each quote within a quote.
It starts with the initial quotation marks. It then, within that, needs 1 backslash per quotation mark, then 3, then 7, then 15, and then 31.
The number of backslashes you need for each quotation mark is double and one more than the number needed previously.
Observe the following command, which gives you a sign that when placed and right-clicked gives you a different sign that, when also placed and right-clicked, gives you yet another sign.
I predict that, following the pattern, if I where to add another sign, I would need 63 backslashes per quotation mark for the Text2: tag of the new sign. I would then need 127 backslashes per quotation mark to format the text on the new sign. Then consider the number of quotation marks I need to do this. That's a lot of backslashes.
I would like to understand why it's like this.

/give nozpqg sign 1 0 
{BlockEntityTag:
{Text2:
"
	{\"text\":\"Backslash Hell\",
	\"color\":\"blue\",
	\"clickEvent\":{
	\"action\":\"run_command\",
	\"value\":
	\"
	/give @p sign 1 0 
	{BlockEntityTag:
	{Text2:
		\\\"
			{\\\\\\\"text\\\\\\\":\\\\\\\"Backslash Hell\\\\\\\",
			\\\\\\\"color\\\\\\\":\\\\\\\"light_purple\\\\\\\",
			\\\\\\\"clickEvent\\\\\\\":{
			\\\\\\\"action\\\\\\\":\\\\\\\"run_command\\\\\\\",
			\\\\\\\"value\\\\\\\":
			\\\\\\\"/give @p sign 1 0 
			{BlockEntityTag:
			{Text2:
				\\\\\\\\\\\\\\\"
					{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"text\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Backslash Hell\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",
					\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"color\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"yellow\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}
				\\\\\\\\\\\\\\\"}}
			\\\\\\\"}}
		\\\"}}
	\"}}
"}}