EDIT: Was unable to find specific cause for the problem, will post crash report
Teleport away from spawn chunks before doing any of the below.
Summon armorstand using below command:
/summon ArmorStand ~ ~ ~ {CustomName:"tank"}
Create testing objective
/scoreboard objectives add testObjective dummy
Set objective to sidebar:
/scoreboard objectives setdisplay sidebar testObjective
Set 'tank' score:
/scoreboard players set @e[name=tank] testObjective 1
Afterwards, unload chunks by teleporting away.
tp @p ~500 ~ ~
Notice that the score on the sidebar dissapears, proving that the score resets after the entity is unloaded.
Steps to reproduce can be found in this comment
Linked issues
is duplicated by 4
Attachments
Comments 40
You can edit your title.
Could not reproduce, score remains on the scoreboard. The score should only be removed automatically if the entity is killed. Ensure no other command blocks are interfering (such as killing the armor stand).
Yes, but is's a big and rather laggy world due to amount of commands running, so be warned.
I can't as of now, as I'm about to go to school.
I'll attach screenshots as well then.
For some reason this only appears to happen with armor stands (that I know of), as for example ghast, enderman, creepers and items are uneffected.
Is this still a issue in the latest version of the game(currently 1.13.1)?
If so, please add it to the affected versions, thanks!
This is still an issue in 1.13.1, however it is difficult to reproduce in a creative test world. I have a survival world with custom villagers, and their scoreboard objectives are almost always reset when I return to trade with them. I have noticed that this affects entities inside spawn chunks as well as outside spawn chunks.
Ran into the same issue in 1.13.2, however instead of a villager it was a item stand, but still same issue.
Cannot reproduce in 20w07a using the equivalent execute if block
. Please let us know if this can still be reproduced.
EDIT: The title is false, although I redid my custom map to use another entity name, but the problem still occurred when the entity (with the adjusted name) is unloaded. It seems to me that entities having their scores changed often by command blocks have their scores reset when unloaded.