/tellraw
Sends a JSON-formatted message to players. Supports clickable text, hover events, colors, formatting, and score/selector insertion.
Syntax
/tellraw <targets> <message>Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| targets | entity | Required | The player(s) to send the message to. |
| message | component | Required | A JSON text component defining the message, formatting, and interactive elements. |
Examples
/tellraw @a {"text":"Click here!","color":"green","clickEvent":{"action":"run_command","value":"/spawn"},"hoverEvent":{"action":"show_text","contents":"Click to teleport to spawn"}}Sends a green clickable message that runs /spawn when clicked and shows hover text.
/tellraw @a [{"text":"Score: ","color":"white"},{"score":{"name":"@s","objective":"kills"},"color":"gold"}]Displays a message showing each player's kill score.
/tellraw @a {"text":"Hello World","bold":true,"color":"red"}Sends "Hello World" in bold red text to all players.
Common Mistakes
- Using plain text instead of JSON format, /tellraw requires valid JSON text component syntax.
- Forgetting that clickEvent run_command requires the player to have permission to run the command.
Notes
Text components support: text, color, bold, italic, underlined, strikethrough, obfuscated, clickEvent, hoverEvent, insertion, selector, score, nbt, translate, and keybind.
Related Commands
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting