I need help with this Minecraft Tellraw command, Issue at column 89
This command is still a work in progress, but I am having issues. It gives me an error message when I click "Check Balance" and the error message says:
Invalid json: Unterminated string at line 1 column 89. I don't know what this means. Here is my command:
/tellraw @p ["",{"text":"Welcome, ","color":"green"},{"selector":"@p","color":"dark_blue","bold":"true"},{"text":". How may I help you? -","color":"green","bold":"false"},{"text":" Check Balance","clickEvent":{"action":"run_command","value":"/tellraw @p [{\"text\":\"You currently have: \",\"color\":\"green\"},{\"score\":{\"name\":\"@p\",\"objective\":\"Money\"},\"color\":\"dark_blue\",\"bold\":\"true\",\"underlined\":\"true\"},{\"text\":\" funds in your account.\",\"color\":\"green\"}]"},"color":"none"}]
Can someone explain why this is so?
Best Answer
run_command has a 100 character limit
After double and triple-checking your quotation marks and brackets, I played around with the run_command itself, and I found that it is subject to the same 100 character limit that chat commands are. The reason for this is that the player is treated as actually having run this command himself (including all permission checks).
This means, that starting with the JSON opening square bracket, only 89 characters are processed, seeing that /tellraw.@p. is 11 characters.
For example
/tellraw @p [{"text":"Check Balance","clickEvent":{"action":"run_command","value":"/tellraw @p [\"........10........20........30.......39.\",{\"score\":{\"name\":\"@p\",\"objective\":\"Money\"}}]"}}]
works. After unescaping the ", the nested command is exactly 100 characters long. On the other hand,
/tellraw @p [{"text":"Check Balance","clickEvent":{"action":"run_command","value":"/tellraw @p [\"........10........20........30........40.\",{\"score\":{\"name\":\"@p\",\"objective\":\"Money\"}}]"}}]
breaks with "End of Input at line 1 column 89", which makes sense considering the closing square bracket is cut off.
Note that the length of the exterior command does not matter at all.
Pictures about "I need help with this Minecraft Tellraw command, Issue at column 89"



How do you use the Tellraw command in Minecraft?
How to Enter the CommandHow do I use the bedrock version of Tellraw?
While typing a /tellraw command, once you want the line to be skipped there, use \\n (backslash+n).Minecraft Tellraw Command [1.19] Tutorial
More answers regarding i need help with this Minecraft Tellraw command, Issue at column 89
Answer 2
It most likely means that you have a string that you haven't ended. So for example, you may have a string that, instead of saying "test", it says "test
When you forgot to close the string it most likely messed up the rest of the code. You have a lot of quotations in there, so it only makes sense that you might make that mistake.
Also, make sure all your brackets and square brackets or properly opened and closed.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: SHVETS production, Alex Green, Alex Green, SHVETS production
