mojira.dev
MC-96131

/execute detect command causing entities within a chunk to be scoreboard reset

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


Code analysis: https://bugs.mojang.com/browse/MC-96131?focusedCommentId=306331&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-306331

Linked issues

Attachments

Comments 40

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.

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).

can confirm this with my custom AI entity made of command blocks and armor stands

Can you attach a world download that includes it for replication?

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.

30 more comments
Uriel Salischiker

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.

Note that execute if block does not load the position (which is required for reproduction). It appears /spreadplayers still does this, but I cannot reproduce this using that command either.

bananenbroek4

(Unassigned)

Community Consensus

(Unassigned)

Minecraft 16w03a, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.2, Minecraft 1.9.3 Pre-Release 1, Minecraft 1.9.4, Minecraft 1.12.2, Minecraft 1.13.1

Minecraft 16w21a

Retrieved