2

I've looked it up, and apparently there is not a way to. But, there's an NPC in my map where I have it "talking" with a /say command. So, is there a way to make it say something like [(NPC Name)] (Text) without mods?

2
  • 1
    /say [Bob]: Hello there?
    – Ben
    Apr 28, 2015 at 1:02
  • You could try /tellraw or renaming command blocks? As for /execute on a named mob... Not sure
    – aytimothy
    Apr 28, 2015 at 1:46

3 Answers 3

6

A follow up on @Eisler485's answer:

The difference between /say and /tellraw when trying to do the same output:

<code>/say</code>

<code>/tellraw</code>

Remember that /tellraw has a lot of customisations. Just use data tags like "color":"dark_red" or "bold":"true".

6

Try

/tellraw @a {text:"Insert Text Here"}

If you run this command the @a runs the command for every player and they will all see the message "Insert Text Here" in the chat.

You can edit the text color by using this command

/tellraw @a {"text": "This Text Is Now Green", "color": "green"}

Now the text "This Text Is Now Green" will show up on every players' Screen in a green text.

You can make the text as long as you want it.

5

Rename the command block in an anvil.

If you name it "Bob" and give it the command /say "hello" it should come up as

[Bob] Hello

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .