3
COMMAND BLOCK HELP
How do I make text appear in chat like numerous adventure maps I have seen?
I don't have much experience with Command Blocks, I generally only use them for doing /spawnpoint and /tp commands. Thanks!
I don't have much experience with Command Blocks, I generally only use them for doing /spawnpoint and /tp commands. Thanks!
Create an account or sign in to comment.
6
1
The tellraw is What I would suggest, You can change the color make it bold or whatever.
you can do underlined and more, You can also change the color, of the text.
tellraw @a {"text":"","extra":[{"text":"Cats","color":"blue","bold":"true"}]}
to change the text, change Cats
to change the color, change blue
to change the bold change bold to underline or italic
if you don't want any bold or anything like that just do this command
tellraw @a ["",{"text":"Cats","color":"blue"}]
if you only want this to go to a certain player change the @a (all players) to @p (nearest player), @r (random player) or the player's Username.
If you need any more information, plz message me https://www.planetminecraft.com/member/agentshield233/
Also plz Subscribe to my YouTube Channel
https://www.youtube.com/channel/UCzGlXpInjjHEhC1tnHkzxVw
you can do underlined and more, You can also change the color, of the text.
tellraw @a {"text":"","extra":[{"text":"Cats","color":"blue","bold":"true"}]}
to change the text, change Cats
to change the color, change blue
to change the bold change bold to underline or italic
if you don't want any bold or anything like that just do this command
tellraw @a ["",{"text":"Cats","color":"blue"}]
if you only want this to go to a certain player change the @a (all players) to @p (nearest player), @r (random player) or the player's Username.
If you need any more information, plz message me https://www.planetminecraft.com/member/agentshield233/
Also plz Subscribe to my YouTube Channel
https://www.youtube.com/channel/UCzGlXpInjjHEhC1tnHkzxVw
3
It is done with the /tellraw command. If you just want to display text without any additional colors/etc, then the following command is all you need.
If you want to add colors/italics/etc, you must use strict JSON syntax. What that basically means is that you need to put "" around the key parts. Here's a few links to help explain JSON: Link1, Link2.
For example the following will not work because it isn't strict JSON.
The following will work because it is strict JSON.
Here's an example command you can use that will work.
To add more info, you can separate the key parts with commas.
I recommend reading this link as it will tell you about all the extra things you can add to your tellraw command. I also recommend using a JSON checker if you aren't sure about whether your JSON is valid.
I hope this helps! :)
~SUPERIONtheKnight
/tellraw <selector> "Put text here and keep the quotes"
If you want to add colors/italics/etc, you must use strict JSON syntax. What that basically means is that you need to put "" around the key parts. Here's a few links to help explain JSON: Link1, Link2.
For example the following will not work because it isn't strict JSON.
text:hi there
The following will work because it is strict JSON.
"text":"hi there"
Here's an example command you can use that will work.
/tellraw @s [{"text":"hi there!"}]
To add more info, you can separate the key parts with commas.
/tellraw @s [{"text":"The Blood Moon Rises Once Again...","color":"red"}]
I recommend reading this link as it will tell you about all the extra things you can add to your tellraw command. I also recommend using a JSON checker if you aren't sure about whether your JSON is valid.
I hope this helps! :)
~SUPERIONtheKnight
1
I stopped using command blocks after finding the Denizen plugin. With the fully featured scripting language it adds I found no further use for them!
Definitely worth a look if you want to go down an adventure map path.
Definitely worth a look if you want to go down an adventure map path.
1
Thanks, but that doesn't help that much, as I don't plan on downloading plugins/mods soon. So you know the command?
2
The chat command is /say isn't it?
1
Hmm.. Okay. I will try this. Thank you!