OGTOOLS

Minecraft /tellraw command

Prints a message with color, bold text, click and hover actions using a JSON text component.

🧍 Player commands Operator (level 2) Needs cheats enabled Java Edition 26.3

Syntax

/tellraw <targets> <message>

Parts in square brackets are optional, parts in angle brackets are required. You do not type the brackets: Put your own value in their place.

Arguments

ArgumentWhat it does
<message> A text component. Give it an array and the parts are joined.

Examples

/tellraw @a {"text":"Warning!","color":"red","bold":true}

Sends everyone a red bold warning.

/tellraw @a [{"text":"Your score: "},{"score":{"name":"@s","objective":"points"}}]

Writes the player's score into the message.

Good to know

  • say and msg are plain text; you need tellraw to show color, click actions and scores.
  • Since 1.21.5, text components also accept the SNBT format.

How do I run this command?

Press T in game to open chat (or press / directly), type the command and press Enter. While typing, Tab completes the options. This command counts as a cheat: It needs cheats enabled in a singleplayer world, and operator permission on a server (operator (level 2)).

Related commands

🧍 More Player commands

Another tool Minecraft crafting recipes Would rather make the item than give it with a command? See the recipe on the 3x3 grid.

Minecraft is a product of Mojang Studios. This tool is an independent helper made for players and is not affiliated with Mojang or Microsoft.