First I set up an objective.
/scoreboard objectives add o dummy
Added new objective 'o' successfully
Then I assign a score for a player.
/scoreboard players set p o 1
Set score of o for player p to 1
Now, with this setup in each case I try 4 different things.
I can reset everything and get the information, that p was still in the scoreboard (and is not anymore afterwards).
/scoreboard players reset *
Reset scores of player p
/scoreboard players test p o * *
No o score for p found
/scoreboard players reset *
All matches failed
If I reset just the objective o then apparently the system realizes, that the player is completely reset.
/scoreboard players reset * o
Reset scores of player p
/scoreboard players test p o * *
No o score for p found
/scoreboard players reset *
All matches failed
If I instead remove the objective o then the scoreboard system doesn't fully realize that player p is gone. (Or rather should be gone.)
/scoreboard objectives remove o
Removed new objective 'o' successfully
/scoreboard players test p o * *
No objective was found by the name 'o'
/scoreboard players reset * p
No objective was found by the name 'o'
All matches failed
/scoreboard players reset *
Reset scores of player p
/scoreboard players reset *
All matches failed
If I remove o and then recreate o then you see that p seems to still have a score o according to "/scoreboard players reset" but to have no score o according to "scoreboard players test".
/scoreboard objectives remove o
Removed objective 'o' successfully
/scoreboard objectives add o dummy
Added new objective 'o' successfully
/scoreboard players test p o * *
No o score for p found
/scoreboard players reset * o
Reset scores of player p
/scoreboard players reset *
All matches failed
In my opinion in cases 3. and 4. the game should reset the player's scoreboard entries for that objective properly when the objective gets removed.
Linked issues
relates to 1
Comments 4
This is maybe related but in no part a duplicate. As I'm demonstrating the scoreboard in case 4. is neither fully reset nor 0. If it was reset it would behave like in the cases 1. and 2. for "scoreboard players reset * o", if it was 0 the "/scoreboard test p o * *" command wouldn't fail.
Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.
Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been delivered.
Partly a duplicate of / related to MC-50601