How do I make a Minecraft command block to say somebody's name? I tried doing this:

/say You did it @p! 

Which says in the chat "You did it @p!".

This occurs on both Pocket Edition and on PC. Here's a screenshot showing what happens:

Chat text with selector

  • I don't believe selectors work in /say for pocket edition. Might need to wait until they add that.
    – SirBenet
    Apr 8, 2017 at 20:45
  • This even happens on the computer version on the latest update
    – user181699
    Apr 8, 2017 at 20:46
  • Okay now I know what I did wrong
    – user181699
    Apr 12, 2017 at 14:01
  • There was an answer
    – user181699
    Apr 12, 2017 at 14:01

2 Answers 2


The reason it doesn't work is that you put a character directly after the @p. So, while:

/say You did it @p!

wouldn't work,

/say You did it @p !

does. Inconvenient, as it does include the space in the message, so it would come out as:

[@] You did it [USERNAME] !

However, I don't know a way around it.

  • 1
    /tellraw might be able to get past this, but I'm no expert at /tellraw so don't ask me
    – Venya
    Apr 14, 2017 at 1:22

You should use /tellraw. /say is not good for anything. example: /tellraw @a {"text":"Congrats you did it","color":"blue","extra":[{"selector":"@p"}]}

You must log in to answer this question.