Choosing players for command execution
//ads -- adsterra.com -- native banner
?>
So I'm making a Minecraft map, and it's a team PVP. I want to testfor the player who has press a button to choose a kit, and give that player the kit he chose. I don't want to use @p as the kit may be given to the wrong player.
Pictures about "Choosing players for command execution"



How do you target a player with a command block?
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.What is the command to target a player in Minecraft?
The center of interest of this post is another feature of Minecraft, and that is the use of commands in the game....How to select targets with Minecraft commands:TargetDescription@pTo target the nearest Player@rTo target a random Player@sTo target the person executing the command (yourself)2 more rowsHow do you execute a command as someone else in Minecraft?
Type the command in the chat window and press the Enter key to run the command. Once the cheat has been entered, the flame particle will appear directly 1 block in front of the entity running the command.Can normal players see commands?
Only operators can see command output from players. If you demote them to a regular player, they will not see it in the chat. And now, if you run your command through the command block, no one will be able to see the output in chat.Target Selectors | Minecraft Bedrock | Command Augments | dx, dy, dz, r, rm, type, family, l, lm etc
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: ANTONI SHKRABA, ANTONI SHKRABA, Pressmaster, Pressmaster
