1
Command block track player for multiplayer map
how should I go about trying to track players separately on a multiplayer map, I cant use @a or @p since they could be anywhere... if anyone has any command tricks and what not please tell me
Create an account or sign in to comment.
2
1
What exactly do you want to track about the player?
1
Depends on the way you want to track them. A good option would be to use the scoreboard, tagging in particular.
For example.. let's say your map has 2 goals: find the diamond and find the key. When combined players can open a chest with the key in which they need to place the diamond. The very moment the player finds the diamond you tag them: /scoreboard players tag @p add diafound.
You can then easily check for this. For example: /give @p[tag=diafound] minecraft:iron_pickaxe 1 0 {display:{Name:"The key"}}. That command would only give players 'the key' who have been tagged with "diafound". So: only players who actually found the diamond.
This is a very simply but effective way to go about this.
For example.. let's say your map has 2 goals: find the diamond and find the key. When combined players can open a chest with the key in which they need to place the diamond. The very moment the player finds the diamond you tag them: /scoreboard players tag @p add diafound.
You can then easily check for this. For example: /give @p[tag=diafound] minecraft:iron_pickaxe 1 0 {display:{Name:"The key"}}. That command would only give players 'the key' who have been tagged with "diafound". So: only players who actually found the diamond.
This is a very simply but effective way to go about this.