Skip to main content
added 66 characters in body
Source Link
Moddl
  • 4.1k
  • 1
  • 18
  • 41

Normal target selectors cannot select 2 specific people, the solution is to use a scoreboard to mark the players.

Setup:

/scoreboard objectives add Selector dummy

Clock:

/scoreboard players set @a[name=<Name of Target>] Selector 1 //One of these commands per person
/scoreboard players set @a[score_Selector_min!=1] Selector 0

Selector:

@a[score_Selector=0] to select non selected

Normal target selectors cannot select 2 specific people, the solution is to use a scoreboard to mark the players.

Setup:

/scoreboard objectives add Selector dummy

Clock:

/scoreboard players set @a[name=<Name of Target>] Selector 1 //One of these commands per person

Selector:

@a[score_Selector=0] to select non selected

Normal target selectors cannot select 2 specific people, the solution is to use a scoreboard to mark the players.

Setup:

/scoreboard objectives add Selector dummy

Clock:

/scoreboard players set @a[name=<Name of Target>] Selector 1 //One of these commands per person
/scoreboard players set @a[score_Selector_min!=1] Selector 0

Selector:

@a[score_Selector=0] to select non selected
Source Link
Moddl
  • 4.1k
  • 1
  • 18
  • 41

Normal target selectors cannot select 2 specific people, the solution is to use a scoreboard to mark the players.

Setup:

/scoreboard objectives add Selector dummy

Clock:

/scoreboard players set @a[name=<Name of Target>] Selector 1 //One of these commands per person

Selector:

@a[score_Selector=0] to select non selected