1

Command block track player for multiplayer map

rainbow_donut's Avatar rainbow_donut1/14/18 8:40 pm
1 emeralds 217 2
1/15/2018 11:34 am
Isz's Avatar Isz
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
Posted by rainbow_donut's Avatar
rainbow_donut
Level 10 : Journeyman Engineer
6

Create an account or sign in to comment.

2

1
01/15/2018 11:34 am
Level 46 : Master Architect
Isz
Isz's Avatar
What exactly do you want to track about the player?
1
01/15/2018 1:00 am
Level 57 : Grandmaster Engineer
ShelLuser
ShelLuser's Avatar
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.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome