Minecraft / Blogs

Extreme /tellraw Tutorial

  • 24
  • 18
  • comment20
  • playlist_add
  • share
  • more_horiz
avatar KingJake
Level 34 : 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 : 12/21/2016 11:39:15 amDec 21st, 2016

  • Updated cover
  • Improved clarity
  • Fixed some grammatical errors

Comments : 20

star Login or register to post a comment.

Show Comments

1 - 20 of 20

this is the only /tellraw site i use, because its the best!! lmao, good job
  • Mishik2
  • Level 1
  • New Miner
  • August 22, 2017, 11:59 pm
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"}}]}
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.
  • Lunachuu
  • Level 37
  • Artisan Magical Girl
  • July 14, 2016, 5:30 pm
So helpful! Thank you! Diamond to you .3.
  • jelleesed
  • Level 1
  • New Miner
  • February 4, 2016, 9:10 am
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
  • LegoGuy789
  • Level 26
  • Expert Cake
  • July 14, 2017, 7:13 am
Your command does not work. :(
nice! now i made a tellraw that sends you to a minigame in a server. tnx!
  • FDX3
  • Level 1
  • New Miner
  • May 19, 2015, 7:44 pm
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?
  • Nusrachel
  • Level 1
  • New Crafter
  • April 13, 2014, 4:54 pm
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... :\
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!!!!
  • KingJake
  • Level 34
  • Artisan Vampire
  • April 14, 2014, 1:09 am
Thanks got sharing this,
it looks like an interesting site.
  • Tintin134
  • Level 19
  • Journeyman Zombie
  • April 13, 2014, 11:19 am
  • KingJake
  • Level 34
  • Artisan Vampire
  • April 13, 2014, 2:12 pm
Nope, all my own words. Had to find out some of the info, but got it and wrote it myself.
  • Tintin134
  • Level 19
  • Journeyman Zombie
  • April 14, 2014, 9:57 am
Wow, it has the exact same Notch command xD
  • KingJake
  • Level 34
  • Artisan Vampire
  • April 14, 2014, 10:02 am
I just noticed that, lol. It is a simple way to start, and is fun.
  • Nathsem
  • Level 28
  • Expert Blockhead
  • April 13, 2014, 6:07 am
It's annoying how /tellraw doesn't work with Bukkit. Maybe someone could make a plugin for that?
  • KingJake
  • Level 34
  • Artisan Vampire
  • April 13, 2014, 7:46 am
That would just be amazing.
This was very helpful, thought of putting pictures?
  • KingJake
  • Level 34
  • Artisan Vampire
  • April 13, 2014, 1:08 am
I'm sure I could work on that, if you think it could help.
[deleted]

1 - 20 of 20

Show Comments

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome