Minecraft Wiki
Advertisement

Not to be confused with Commands/tell or Commands/say.
This article is about the command that sends JSON messages. For the command to whisper, see Commands/msg.

Sends a JSON message to players.

Syntax[]

  • Java Edition
tellraw <targets> <message>
  • Bedrock Edition
tellraw <target: target> <raw json message: json>

Arguments[]

JE<targets>: entity
BE: target: target: CommandSelector<Player>

Specifies the player(s) to send the message to.
Must be a player name, a target selector or a UUIDβ€Œ[Java Edition only]. And the target selector mustβ€Œ[JE only]/shouldβ€Œ[BE only] be of player type.

JE<message>: component
BE: raw json message: json: Json::Value

Specifies the message to send.
Must be a raw JSON text.

Result[]

CommandTriggerJava EditionBedrock Edition
anythe arguments are not specified correctly Unparseable Unparseable
player: target is not in player type N/A Failed
<targets> or player: target fails to resolve to one or more online players Failed
OtherwiseSuccessful

Output[]

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
anyJava EditionOn fail000
On success11the number of targeted players
Bedrock EditionOn fail0N/AN/A
On success1N/AN/A

Examples[]

  • To send the message "Hello" in chat:
  • To send the message "I am blue" colored blue in chat:
    • /tellraw @a {"text":"I am blue","color":"blue"}β€Œ[Java Edition only]
    • /tellraw @a {"rawtext":[{"text":"Β§bI am blue"}]}β€Œ[Bedrock Edition only]
  • To send the message "Hover me!" in chat, which displays the text "Hi!" when hovered over:
    • /tellraw @a {"text":"Hover me!","hoverEvent":{"action":"show_text","value":"Hi!"}}β€Œ[Java Edition only]
  • Use '\n' to insert a new line:
  • Display a message in the Enchantment Table's glyphs:
    • /tellraw @a {"text":"Hello World","font":"alt"}β€Œ[Java Edition only]
  • Display a message in the illager runes:
    • /tellraw @a {"text":"Hello World","font":"illageralt"}β€Œ[Java Edition only]

History[]

For changes to the raw JSON text used by this command, see Raw JSON text format Β§ History.
Java Edition
1.7.213w37aAdded /tellraw.
1.1821w37aAdded illageralt.
Bedrock Edition
1.9.0beta 1.9.0.0Added /tellraw.

See also[]

  • /say β€” send a plain text message to all players
  • /tell β€” send a plain private text message to specific players
Advertisement