mojira.dev
MC-280300

Json error throwing in console(not crashing game) by clicking on my /tellraw output

/tellraw @a {"text": "Command", "color": "green", "bold": true, "italic": true, "clickEvent": {"action": "run_command", "value": "/tellraw @a HI"}, "hoverEvent": {"action": "show_item", "value": "{\"id\":\"minecraft:mycelium\",\"Count\":1}"}

This command is printing Command with green foreground, bold,italic, on click forces player to send command “/tellraw @a HI“. but clicking on “Command” makes Minecraft print error about JSON parsing.

Bug on client side.

Environment

My localhost server.

Attachments

Comments 3

[System] [CHAT] Invalid chat component: Use JsonReader.setStrictness(Strictness.LENIENT) to accept malformed JSON at line 1 column 1 path $\nSee https://github.com/google/gson/blob/main/Troubleshooting.md#malformed-json

From log

HI is not a valid text component. You need to use something like this for the command to be parsed correctly:

{"text":"HI"}

This is not a bug.

Alexander

(Unassigned)

Unconfirmed

(Unassigned)

1.21.4

Retrieved