When using a selector in scoreboard commands, if the selector uses the c= selector, it will select from players first before entities.
Test 1 - Execute scoreboard:
1. Create Obj objective
2. Place an armor stand somewhere
3. /execute @e[type=!Player,c=1] ~ ~ ~ /scoreboard players set @e[c=1] Obj 1
4. This should set the armor stand's Obj score to 1, but instead sets the player's score
Test 2 - Command block:
1. Create Obj objective
2. Place a command block and an armor stand next to it
3. Put command in block: /scoreboard players set @e[c=1] Obj 1
4. Stand further from the command block than the armor stand and power the command block
5. The player gets the score instead of the armor stand
Linked issues
duplicates 1
Comments 3
Duplicate of MC-80400, if you have not, please use the search function in the future to see if your issue has already been reported.
Can confirm