Minecraft /tellraw Generator
Send a colored message to your players. Write it the easy way with color codes, and get back the command and the JSON, both ready to paste.
Your message
38 letters, without the codes. Chat has no length limit for a command, so a long message is fine.
How it appears in chat
[Server] The event starts in 5 minutes
The command
/tellraw @a [{"text":""},{"text":"[Server] ","color":"gold"},{"text":"The event starts in ","color":"white"},{"text":"5 ","color":"red"},{"text":"minutes","color":"white"}]Paste it into chat or a command block. A command block does not take the leading slash, so drop it there.
Just the JSON
[{"text":""},{"text":"[Server] ","color":"gold"},{"text":"The event starts in ","color":"white"},{"text":"5 ","color":"red"},{"text":"minutes","color":"white"}]For a plugin, a datapack, or any other place that wants a text component on its own.
How it works
- Write your message and click a color to put its code where the cursor is.
- Pick who should see it. @a is everyone on the server.
- Read the preview. It draws the message the way chat will.
- Copy the command for chat, or the JSON on its own for a plugin or a datapack.
- For big text across the middle of the screen instead, use the title generator.
Nothing is sent anywhere. The message stays in your browser.
Questions
- What is /tellraw for?
- It sends one message to the players you choose, with colors and styles. Ordinary chat cannot be colored, so this is how a server announces something in more than plain white.
- Do I need to be an operator?
- Yes. It is a command, so you need cheats turned on in a single player world or operator rights on a server. Any player can be sent the message; only the person running the command needs the rights.
- How do I put it in a command block?
- Paste it without the slash at the start. Everything after that is the same.
- What do the selectors mean?
- @a is every player, @p is the closest one, @s is whoever runs the command, and @r is a random player. For a server announcement you almost always want @a.
- Why is the JSON shown separately?
- Because plugins, datapacks and other commands take a text component on its own, without the /tellraw around it. If you need the message somewhere else, copy that box instead.
- Why does the JSON start with an empty piece?
- Because the first piece of a list is treated as the parent, and everything after it takes on its styling. An empty first piece keeps each of your pieces independent, so a color on one word does not leak into the rest.