TransWikia.com

Why does pasting a command into the chat return an error?

Arqade Asked by Vizion on April 25, 2021

I am running a server on version 1.16.1 and I’m trying to run the following command which I copied and pasted from a command generator:

/tellraw @a ["",{"text":"Co-op >","color":"aqua"},{"text":" [PIG","color":"light_purple"},{"text":"+++","color":"aqua"},{"text":"]","color":"light_purple"},{"text":" Technoblade","color":"light_purple"},{"text":": I have come down from the land of potato gods."}]

Every time I run it it says:

Invalid chat component: Unterminated string at line 1 column 245 path $[6].text

I don’t know what any of this means.

One Answer

Your command is too long to fit in the chat. The chat only supports up to 255 characters per command.

Pasting it into the chat, only the first 255 characters are recorded. This is what is pasted in:

/tellraw @a ["",{"text":"Co-op >","color":"aqua"},{"text":" [PIG","color":"light_purple"},{"text":"+++","color":"aqua"},{"text":"]","color":"light_purple"},{"text":" Technoblade","color":"light_purple"},{"text":": I have come down from the land of potato g

As you can see, it stops at the "g" at the very end. The g is the 255th character, and everything else doesn't make it in, including the closing brackets to finish the JSON text, resulting in an error when the system reaches the end of text when it expected closing quotes.

If you put the command into a command block, it runs just fine: Screenshot

Answered by ExpertCoder14 on April 25, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP