2

Command Tutorials: Tellraw

Collectable

Get Embed Code

Forum:
HTML:
Link:
avatar
Bob_In_Soup
Level 35 : Artisan Geek
Hey, guys! This is Bob here and today I want to bring you a tutorial on the tellraw command. This command is very useful, yet hard to understand.

[EDIT: ON ALL THE LINKS THAT ARE FOR COLOR, SCROLL DOWN ON THE LEFT SIDE AND CLICK CHAT COLOR]

There are a few things you must understand before we start. Realize you are learning JSON. Pretty much everything you type goes in quotation marks. Here is an example command:

/tellraw @p {"text":"Yo, Planet Minecraft","color":"dark_red"}

This will output: Yo, Planet Minecraft

Lets start with the tutorial. EVERYTIME you start to type this command, it will go "/tellraw @[selector] {}". The [selector]'s, if you didn't know, are @a for all players, @r for a random player, @p for the nearest player to the command block or player(yourself).

Now, inside of the curly brackets, we can put all the information. The first thing you put is this exactly:

"text":" [text here] ","color":" [color] "

So this is what it does. The "text" tells the client that its going to output something into the chat. The " [text here] " is just where you put the text you want it to output. Anytime you want to add quotation marks inside of the quotation marks(if that makes sense), you just add a back slash( ). The "color" part tells the client that it's going to output something in color. The " [color] "[/color] is where you add your color.

Now, you're probably wondering what the commas and colons do. Colons are pretty much equal signs. So in our line of text above, we have "text":" [text here] " This is pretty much saying, that the "text" will be " [text here] ". The one comma we see is before the "color" part. The comma says that the text will have color(describing it, " [text here] ","color").

This next part is a little complicated. We have our regular line of text, but say we want some more that have a different color:

"text":" [text here] ","color":"color",extra:[{"text":" more text here] ","color":"another color"}]

So we have the same thing as the first part, but we added the extra:[] part. Extra is pretty much everything after the first part of text. Inside of extra:[], you go back to the first part of the text. Just make sure you put them inside of curly brackets. Everytime you go to make another color of text, you close the curly bracket you started and you put a comma, start another curly bracket, and continue. This is what it looks like, in visual terms:

"text":"Hey, friends!","color":"yellow",extra:[{"text":" What do you want to do?","color":"green"},{"text":" I want to play Minecraft.","color":"red"}]}

Looks like this: Hey, friends! What do you want to do? I want to play Minecraft.

To make bold, type this after the color tag:

{"text":"Hey PMC","color":"red","bold":"true"}

This will output this:

Hey PMC(That's suppose to be bolded :O)

That will work with everything (italic,bold,strikethrough)
Well, this is the tutorial! I would always love to add more if you'd like, it's a little hard to do, but I try! Thanks for reading all the way through if you have made it this far, and be sure to:

DIAMOND
Image

FAVORITE
Image

SUBSCRIBE
Image
Tags:Tutorial, CommandBlock, Command, Block, JSON, Tellraw, Tell, Raw, BOB, Lol, Tutorials

Bold, Italics, Etc. : 01/13/2014 5:57:35 pm1/13/14

I didn't include the fact that you could make bold, italics, etc. So here it is:

To make bold, type this after the color tag:

{"text":"Hey PMC","color":"red","bold":"true"}

This will output this:

Hey PMC(That's suppose to be bolded :O)

Comments : 6

Join us to post comments.

Show Comments

1 - 6 of 6

  • PyroPolarMC
  • Level 3
  • Apprentice Explorer
  • April 23, 2014, 7:54 pm
Do you need to have the quotation marks with "text" ?????
Edit Reply Delete
  • Bob_In_Soup
  • Level 35
  • Artisan Geek
  • April 24, 2014, 2:00 pm
When this tutorial was written yes, but as of now I do not think it is required. And, the quotations do not need to go around everything.... PyroPolarMC
Edit Reply Delete
  • PyroPolarMC
  • Level 3
  • Apprentice Explorer
  • April 24, 2014, 11:04 pm
Why thank-you good sir!
Edit Reply Delete
  • Bob_In_Soup
  • Level 35
  • Artisan Geek
  • April 26, 2014, 6:28 pm
No problem!
Edit Reply Delete
  • Derekholio
  • Level 1
  • New Network
  • January 13, 2014, 5:11 am
Alternatively, you can use this link to take you directly to the colors. http://jd.bukkit.org/rb/apidocs/org/bukkit/ChatColor.html

The colors are from CraftBukkit's API, so I don't know if they all work, but it is probably a safe assumption that they do. I'm unsure how to do formatting. IE: Bold, Italic, etc.
Edit Reply Delete
  • Bob_In_Soup
  • Level 35
  • Artisan Geek
  • January 13, 2014, 12:35 pm
To do Bold, Ialic, etc, you must type after the color tag, ,"bold":"true", or any other one. The only one that I am unsure of is the "underline" tag.
Edit Reply Delete

1 - 6 of 6

Show Comments