10

As most Minecraft command blocks makers know, if we use the /say command to output text, this will happen:

[@]Lorem ipsum

The [@] is actually very annoying, how can I remove it?

14

If you want to output text into chat without the [@] you could use the tellraw command. The tellraw command lets you output whatever you like to chat using JSON however it sends the message to a specific player or players. To make it seem like it is just going into chat you could use the @a selector where you specify the player.

Here is an example that says Lorem ipsum:

/tellraw @a {"text":"Lorem ipsum"}

To make it say something different just change the "Lorem ipsum" to what you would like the command block to say. Don't forget to put it in "quotation" marks.

EDIT

the /tellraw command is an extremely powerful tool and there are many things you can do with it other than this. It is useful because it can be used to output text with formatting such as different colours, bold, italics, and on-click actions in addition to being able to use selectors to output entity names.

When using JSON it is useful to know how it is structured. You can read about the structure of JSON at JSON.org.

There is a great thread about the JSON Text Component for minecraft here which will help if writing your own /tellraw command or there are tools online like this that will help generate the command for you.

  • 4
    Since Minecraft uses JSON, it's a good idea to visit json.org to check how it is strctured. Also, here's a list of other commands for Minecraft 1.9 (don't know which one's the latest): minecraftforum.net/forums/minecraft-discussion/… (it includes tons of things about /tellraw) – Ismael Miguel May 1 '17 at 13:03
  • 1
    @IsmaelMiguel 1.12 is in development. 1.9 commands may be significantly out of date. – Tim May 1 '17 at 13:33
  • 1
    @Tim Still, the most basic stuff may work, no? Like, text color and styling. But there's tools like minecraft.tools/en/tellraw.php which can generate the command. That should take care of incompatibilities, right? – Ismael Miguel May 1 '17 at 14:09
  • 1
    but remember you have to escape "->\" and \->\\ – Roman Gräf May 1 '17 at 18:48
  • 2
    @IsmaelMiguel I agree, I will try to put it into my answer. – Jake May 4 '17 at 15:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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