Commands/tellraw

Sends a JSON message to players.

Syntax

 * Java Edition


 * Bedrock Edition

Arguments
(BE: )
 * Specifies the player(s) to send the message to. Must be a player name or target selector.
 * Entities other than players are not allowed.

(BE: )
 * Specifies the message to send. Must be valid raw JSON text (for example, ).

Result
Fails if the arguments are not specified correctly, or if  fails to evaluate to one or more online players.

On success, the targeted players receive the JSON message in their chat.

Examples

 * To send the message "Hello" in chat:
 * To send the message "I am red" colored red in chat:
 * To send a message containing the text "Red" in red and "Blue" in blue:
 * To send the message "Hover me!" in chat, which displays the text "Hi!" when hovered over:
 * To send the magenta message "Hover me again!" in chat, which displays the red text "Red Title" when hovered over:
 * To send the message "Diamond Axe" in chat, colored turqouise, with an unbreakable diamond axe showing when the text is hovered over:
 * To send the message "Your Score is: " with the score for the object "object_name" of the player or entity who executed the command.
 * To send the magenta message "Hover me again!" in chat, which displays the red text "Red Title" when hovered over:
 * To send the message "Diamond Axe" in chat, colored turqouise, with an unbreakable diamond axe showing when the text is hovered over:
 * To send the message "Your Score is: " with the score for the object "object_name" of the player or entity who executed the command.
 * To send the message "Diamond Axe" in chat, colored turqouise, with an unbreakable diamond axe showing when the text is hovered over:
 * To send the message "Your Score is: " with the score for the object "object_name" of the player or entity who executed the command.
 * To send the message "Your Score is: " with the score for the object "object_name" of the player or entity who executed the command.