3

COMMAND BLOCK HELP

Mr Meep 6/5/18 5:05 pm
371
6/5/2018 11:07 pm
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!
Posted by
Mr Meep
Level 1 : New Crafter
0

  Have something to say?

JoinSign in

6

AgentShieldjj
06/05/2018 11:07 pm
Level 35 : Artisan Creeper Hugger
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
1
SUPERIONtheKnight
06/05/2018 7:15 pm
Level 30 : Artisan System
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.
/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
3
luigi_vampa
06/05/2018 5:40 pm
Level 53 : Grandmaster Dragonborn
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.
1
Mr Meep
06/05/2018 6:05 pm
Level 1 : New Crafter
Thanks, but that doesn't help that much, as I don't plan on downloading plugins/mods soon. So you know the command?
1
luigi_vampa
06/05/2018 6:35 pm
Level 53 : Grandmaster Dragonborn
The chat command is /say isn't it?
2
Mr Meep
06/05/2018 9:36 pm
Level 1 : New Crafter
Hmm.. Okay. I will try this. Thank you!
1

Welcome