/tellraw generator
The /tellraw command sends a formatted message to one or more players. The message is a JSON text component: besides the text, it accepts color, formatting and click and hover events.
This tool builds the full command from the fields. Quotation marks and backslashes in the text are escaped automatically, so the JSON stays valid. For example, the text Ola "x" \o/ becomes \"x\" and \\o.
The field names follow the Minecraft Wiki reference for Java Edition (click_event, hover_event, value). Names from earlier versions, such as clickEvent, are not used.
Tool
How to use
- Choose the target: @a (all online players), @p (the nearest player), @r (a random player) or @s (whoever runs the command).
- Type the text. Quotation marks and backslashes can be typed normally.
- Choose the color and the formats you want. Only the marked formats go into the command.
- If you want, choose a click action (open address, run or suggest command) and a hover text.
- Copy the command and paste it into the chat or a command block.
Frequently asked questions
Why do \" and \\ appear in the command?
Because the text is inside a JSON string. The quotation marks in your text become \" and the backslashes become \\, so the JSON stays valid.
What is the difference between @a and @p?
According to the Minecraft Wiki, @a selects all online players, and @p selects the player nearest to whoever runs the command.
Does the click command need the slash at the start?
No. The wiki says the command does not need to start with /. The tool removes the slash if you type one.
Why must the address start with http:// or https://?
Because the open address click only accepts complete web links. An address without the protocol is refused with a message.