Minecraft Blogs / Article

Extreme /tellraw Tutorial

  • 37,053 views, 4 today
  • 24
  • 17
  • 20
KingJake's Avatar KingJake
Level 36 : Artisan Vampire
20
Hi there.
This tutorial will take you through tellraw, which is a very complicated command. It is a raw JSON command, and we will probably get confused at some point. BUT, lets get on. Stick with me even when it is tough.

1) Using /tellraw

Tellraw is a command for command blocks. Do /give <Name> 137 or /give <name> Minecraft:Command_Block as the item id numbers will stop working in 1.8. Note that /tellraw will normally only work on singleplayer (or it doesn't work on my server anyways...).

2) The Simple Command (Base Command)

Well, you kinda already know /tellraw is your base command. But, this is the simple start (ALL /tellraw commands require this at the beginning):
/tellraw @a

3) Lets add some text...

Time to add text! Here is our work:
/tellraw @a {text:"Notch joined the game"}
Yes, you guessed it. We will be making a realistic Notch join message. Feel free to change this text to whatever you like, but all of my examples shall stem from this.



4) That realistic colour!

So, we will have to edit our code so far for this...
tellraw @a {"text":"","extra":[{"text":"Notch joined the game","color":"yellow"}]}
Yes, this is alot more complicated. I understand if you feel like copy and pasting this, so go for it! But, now, I will explain:
tellraw: Command
@a: Everyone online
"text": The Text Variable
"Notch joined the game": The Text
"color": The Color Variable
"yellow": The Color




5) Ok, now we have finished the simple stuff, lets underline it.

Now, we need to make the text underlined so it looks... cool.
We will need to, inside or brackets but at the end, add a comma and then "underlined". This is a boolean variable: It only can return true or false. We will set it to true, so we will add a colon and then, in speech marks, enter true. Ok, lets see if you have got it right:
tellraw @a {"text":"","extra":[{"text":"Notch joined the game","color":"yellow","underlined":"true"}]}




6) Bored. Lets make this... awesome:

Lets add a hover effect, or, in better terms: event. Take note on what we do here, as it will matter for the next part. I will give you our syntax and you can copy it and then I will show you what it does:
tellraw @a {"text":"","extra":[{"text":"Notch joined the game","color":"yellow","underlined":"true","hoverEvent":{"action":"show_text","value":"Is this fake or true!?"}}]}
Ok, lets explain:
"hoverEvent": The Variable. It is always in 'Camel Case'; the first word is lowercase and then all words start with a cap.
{"action":"show_text": What we will be doing.
,"value": Setting it's variable
"Is this fake or true!?: The hoverEvent text.




7) I'm still... alive. Now, lets make this amazing!

Our current syntax is above. We will now add a clickEvent to this. We will put the clickevent before the hoverevent. We will use the same rules. Try to figure it out!
Ok, here's the syntax:
tellraw @a {"text":"","extra":[{"text":"Notch joined the game","color":"yellow","underlined":"true","clickEvent":{"action":"run_command","value":"/say Yep, fake."},"hoverEvent":{"action":"show_text","value":"Is this fake or true!?"}}]}

Yes, we have to use a command in the clickEvent. Therefore, we can do many commands: We could use /tellraw or even /toggledownfall. Awesome, eh.




8) Congratulations!

Well done, you are now a /tellraw master. Feel free to take this further and ask me questions if needed. Feel free to subscribe to me if this helped you lots.
Tags

1 Update Logs

General Updates : by KingJake 12/21/2016 11:39:15 amDec 21st, 2016

  • Updated cover
  • Improved clarity
  • Fixed some grammatical errors

Create an account or sign in to comment.

1
08/25/2018 8:27 pm
Level 2 : Apprentice Miner
Droplet_Wolf
Droplet_Wolf's Avatar
this is the only /tellraw site i use, because its the best!! lmao, good job
1
08/23/2017 3:59 am
Level 2 : Apprentice Miner
Mishik2
Mishik2's Avatar
is there any way to do this? tellraw @a {"text":"","extra":[{"text":"click this text","color":"aqua","underlined":"true","clickEvent":{"action":"run_command","value":"/say trolololo"},"extra""clickEvent":{"action":"run_command","value":"/kill @a"}"hoverEvent":{"action":"show_text","value":"PRESS THISS"}}]}
1
11/03/2016 4:32 pm
Level 1 : New Crafter
demonic human
demonic human's Avatar
thank you, this is the only page that makes sense as to how to make tellraw in minecraft without confusing me.
thank you yet again.
1
07/14/2016 9:30 pm
Level 45 : Master Magical Girl
Lunachuu
Lunachuu's Avatar
So helpful! Thank you! Diamond to you .3.
1
02/04/2016 2:10 pm
Level 1 : New Miner
jelleesed
jelleesed's Avatar
tellraw @a {text:"[",color:dark_red,extra:{text:"Owner",color:red,extra:[{text:"]",color:dark_red,extra:[{text:"",color:dark_aqua,extra:[{text:"Level9999",color:aqua,extra:{text:"]",color:dark_aqua,extra:[{text:"",color:dark_blue,extra:[{text:"Server",color:blue,extra:{text:"]",color:dark_blue,extra:[{text:"HACKER102:",color:dark_red,bold:true,extra:{text:" well well well this server is not to bad...",color:red,underlined:false,bolf:true}]}]}]}]}]}]}]}]}]}]}

that is a nice command i made with my own mind :D
1
07/14/2017 11:13 am
Level 36 : Artisan Cake
ThisIzDifficult
ThisIzDifficult's Avatar
Your command does not work. :(
1
01/27/2016 8:45 am
Level 1 : New Miner
explodinglink12
explodinglink12's Avatar
nice! now i made a tellraw that sends you to a minigame in a server. tnx!
1
05/19/2015 11:44 pm
Level 1 : New Miner
FDX3
FDX3's Avatar
Awesome! 1 Question though, in a map called Planetary Confinement, if you look at the crafting guide in-game, there are block IMAGES up hovering on an item recipe. Where can i get the images and how?
1
04/13/2014 8:54 pm
Level 30 : Artisan Engineer
Nusrachel
Nusrachel's Avatar
Great tutorial! It's very useful :)

I also found this 'Tellraw Generator': http://ezekielelin.com/minecraft/tellraw/  
for those who might not master /tellraw yet, including me... :\
1
04/14/2015 7:22 pm
Level 2 : Apprentice Explorer
SuperFunnyStuff
SuperFunnyStuff's Avatar
I was bored and I entered the code for a website into it, then it totally ruined it and I can't use it anymore :( Nothing will work and I can't even report an issue. Help!!!!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome