What does @p mean in minecraft

@p (Nearest Player) The @p target selector is used to target the nearest player in the game. The nearest player will always be the player closest to the location where the command is run.

If this answer doesn’t give you enough information, click here to see the full answer.

There are other answers below:

I would like there to be an option that is different from @a (all players), @e (all entities), @p (nearest player), @r (random player), and @s (self) so that you can only effect the player who activated the Command Block. Example: /tp @o (operator, player who activated Command Block) x y z. Registered User shared this idea.

OverviewIssuesTarget selectors are used in commands to select players and entities arbitrarily, without needing to specify an exact player name or a UUID. One or more entities can be selected with a target selector variable, and targets can be filtered from the selection based on certain criteria using the target selector arguments. For example, to change the game mode of all players to Creative mo… · Text under CC-BY-SA license

However, the @p tag is meant for players unless it has a specified type. (I.e [type=Type] ). More variables have been added and existing variable names have been fixed.

What Are Command Blocks and Why Should I Use them?OK, So How Do I Start?Target SelectorsChaining CommandsLearning The SyntaxCommand blocks are a redstone component that execute console commands when powered. Console commands can be ran from the chat window by proceeding them with a forward slash, ‘ / ‘. Commands are used to modify the game world in ways that aren’t possible by hand, and, when used correctly in command blocks, give Minecraft it’s own sort of psuedo-programming languag…

@p (Nearest Player) The @p target selector is used to target the nearest player in the game. The nearest player will always be the player closest to the location where the command is run. If a command block has executed the command, the nearest player to the command block will be targeted.
advancements: Advancement earned by entity.
distance: to entity.
dx: Entities between x and x + dx.
dy: Entities between y and y + dy.
Read More  How to add minecraft friends on pc