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>
- 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.
- Specifies the player(s) to send the message to.
JE: <message>: component
BE: raw json message: json: Json::Value
- Must be a raw JSON text.
- Specifies the message to send.
Result
| Command | Trigger | Java Edition | Bedrock Edition |
|---|---|---|---|
| any | the arguments are not specified correctly | Unparseable | Failed |
if <targets> or player: target fails to resolve to one or more online players | Failed | ||
| Otherwise | Displays message to the targeted player(s). | ||
Output
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| any | Java Edition | On fail | 0 | 0 | 0 |
| On success | 1 | 1 | the number of targeted players | ||
| Bedrock Edition | On fail | 0 | N/A | N/A | |
| On success | 1 | N/A | N/A |
History
For changes to the raw JSON text used by this command, see Raw JSON text format § History.
| Java Edition | |||||
|---|---|---|---|---|---|
| 1.7.2 | 13w37a | Added /tellraw. | |||
| Bedrock Edition | |||||
| 1.9.0 | beta 1.9.0.0 | Added /tellraw. | |||