How to use @p in tellraw? [duplicate]

How to use @p in tellraw? [duplicate] - Elderly white hair worker using machine

Me and my friends are making a game in minecraft and are using tellraw. How do we use @p in tellraw because we cannot find it anywhere! Thanks



Best Answer

Add an object to the JSON that uses "selector":"@p" instead of the "text" value. For example:

/tellraw @p ["Hello", {"selector":"@p","color":"red"}, {"text":"!","color":"red"}]

I recommend using this tellraw generator




Pictures about "How to use @p in tellraw? [duplicate]"

How to use @p in tellraw? [duplicate] - High angle of pensive African American female freelancer in glasses and casual clothes focusing on screen and interacting with netbook while sitting at table with glass of yummy drink on cafe terrace in sunny day
How to use @p in tellraw? [duplicate] - Young troubled woman using laptop at home
How to use @p in tellraw? [duplicate] - Serious ethnic young woman using laptop at home



How do you use Tellraw commands?

How to Enter the Command
  • Open the Chat Window. The easiest way to run a command in Minecraft is within the chat window.
  • Type the Command. In this example, we will send a private message to the player called DigMinecraft with the following command: /tellraw DigMinecraft {"text":"Herobrine joined the game","color":"yellow"}


  • How do you start a new line in Minecraft Tellraw?

    While typing a /tellraw command, once you want the line to be skipped there, use \\n (backslash+n).



    Minecraft Tellraw Command [1.19] Tutorial




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Andrea Piacquadio, Andrea Piacquadio, Andrea Piacquadio, Andrea Piacquadio