How to Use the TellRaw Command – Wiki Guide
This Minecraft tutorial explains how to use the /tellraw command with screenshots and step-by-step instructions.
You can use the /tellraw command to send a private JSON message to a player or group of players in Minecraft. This function allows you to format color, bold and italics for the message. Let’s explore how to use this cheat (game command).
Requirements
To run game commands in Minecraft, you have to turn cheats on in your world.
TellRaw Command
TellRaw Command in Minecraft Java Edition (PC/Mac)
In Minecraft Java Edition (PC/Mac), the syntax to send a private JSON message to a player is:
/tellraw <targets> <message>
Definitions
- targets is the name of a player (or a target selector) to send the private message to.
- message is the private message to send. It is formatted as raw JSON and most values (except
true
orfalse
) must be enclosed in double quotes. It can have values such as:- text – message that appears in title screen (ie:
"text":"The End is Near"
). - bold – true or false value to indicate whether the text is bolded (ie:
"bold":true
). - italic – true or false value to indicate whether the text is italicized (ie:
"italic":true
). - color – the color of the text that will appear (ie:
"color":"red"
).
The color can be one of the following: red, dark_red, yellow, gold, green, dark_green, blue, dark_blue, aqua, dark_aqua, light_purple, dark_purple, gray, dark_gray, white, black
- text – message that appears in title screen (ie:
Examples
Example in Java Edition (PC/Mac)
To send the private message “Herobrine joined the game” in yellow text to the player called 9Minecraft in Minecraft Java Edition (PC/Mac):
/tellraw 9Minecraft {"text":"Herobrine joined the game","color":"yellow"}
To send the private message “Let’s Begin!” to a random player:
/tellraw @r {"text":"Let's Begin!","color":"light_purple","bold":true}
How to Enter the Command
1. Open the Chat Window
The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:
- For Java Edition (PC/Mac), press the T key to open the chat window.
- For Pocket Edition (PE), tap on the chat button at the top of the screen.
- For Xbox One, press the D-Pad (right) on the controller.
- For PS4, press the D-Pad (right) on the controller.
- For Nintendo Switch, press the right arrow button on the controller.
- For Windows 10 Edition, press the T key to open the chat window.
- For Education Edition, press the T key to open the chat window.
2. Type the Command
In this example, we will send a private message to the player called 9Minecraft with the following command:
/tellraw 9Minecraft {"text":"Herobrine joined the game","color":"yellow"}
Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.
Once the cheat has been entered, the message will be displayed to the targeted players.
In this example, the message “Herobrine joined the game” will be displayed in the Chat window of the player named 9Minecraft.
Congratulations, you just learned how to use the /tellraw command in Minecraft!