Minecraft Java Edition – How to Create Custom /say Commands

minecraft-commandsminecraft-java-edition

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?

Best Answer

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".