Minecraft Tellraw Generator
Write a chat message in parts, give each part its own colour and style, and add click actions (open a link, run a command) or hover text. The generator writes the /tellraw command for your version.
Message
Split your message into parts to give each part its own colour, style, click action or hover text.
Settings
How to use the tellraw generator
- Type the first part of your message and pick its colour and style.
- Click Add another part whenever the colour or style should change, or when only part of the message should be clickable.
- Open Click and hover actions on a part to make it open a link, run a command, suggest a command or copy text, and to add hover text.
- Choose your version, copy the command and run it in chat or a command block.
Tellraw syntax changed in Java 1.21.5
From Java 1.21.5 onwards, including 26.3, text in commands is written in SNBT rather than JSON, and the event fields were renamed. Old commands with clickEvent or hoverEvent now fail with an error.
| Java 1.21.5 and newer | Java 1.13 – 1.21.4 | |
|---|---|---|
| Plain text | {text:"Hi",color:"gold"} | {"text":"Hi","color":"gold"} |
| Open a link | click_event:{action:"open_url",url:"https://…"} | "clickEvent":{"action":"open_url","value":"https://…"} |
| Run a command | click_event:{action:"run_command",command:"/spawn"} | "clickEvent":{"action":"run_command","value":"/spawn"} |
| Hover text | hover_event:{action:"show_text",value:"Hi"} | "hoverEvent":{"action":"show_text","contents":"Hi"} |
The generator writes several parts as a list that starts with an empty part, like [{text:""},{…},{…}]. That way the style of the first part doesn't spread to the rest, which is a common surprise when writing tellraw by hand.
Click actions
- Open a website: shows a "Do you want to open this link?" screen first. Only http and https links work.
- Run a command: runs as the player who clicks, so they need permission for that command. Great for
/triggermenus that everyone can use. - Put a command in chat: fills the chat box so the player can edit it before sending.
- Copy text: copies text to the player's clipboard, such as a Discord invite or server address.
Tellraw on Bedrock
Bedrock uses /tellraw @a {"rawtext":[{"text":"…"}]} with § colour codes inside the text. Click and hover actions don't exist on Bedrock, so the generator leaves them out. For the big text in the middle of the screen, use the title generator; for colour codes on their own, the colour text generator.