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?

  • 1
    /say [Bob]: Hello there? – Ben Apr 28 '15 at 1:02
  • You could try /tellraw or renaming command blocks? As for /execute on a named mob... Not sure – aytimothy Apr 28 '15 at 1:46
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.

4

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

protected by Community Jan 17 '16 at 20:46

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.