mojira.dev
MC-110750

/spreadplayers command resets scoreboard data on chunk unload

So i'm making this waypoint structure, and i have one out of spawn chunks named Test1 and one in spawn chunks named Test2

waypoints have 2 scores, and one team

  • waypointid1 (dummy objective)

  • color (dummy objective)

  • color team (through dye0 - dye15 depending on the color)

and i have a spreading armorstand that goes from the spawn chunks, to all the waypoints

when i teleport from Test1 to Test2, Test2 loses:
It's Color score,
It's ID score,
and it's team

It keeps:
It's tags
It's names

this is really annoying and breaks my whole entire creation, which is really unfortunate since i spent all day on it

also, its not that its score is set to 0 it's LITERALLY taken off of the objective as if it never joined before

as you can see in these pictures, i gave it some color, teleported to Test2 and came back only to find all the data about Test1 was removed

the structure download is here:
http://www.mediafire.com/file/bm5ujpmv1misnt4/Install_Waypoints.zip

make sure to read the .txt file in the folder you get in the file! insert the .nbt into the structures folder in the saves folder of the world you'll be using to test this (if you are testing it) if there's no structures folder yet, make one called "structures" if it doesnt work ingame by tpying "Install_Waypoints" into a structure block or any other problems, here are some things you should do:

  • Make sure you're using a "Load" structure block

  • Double check you spelt "Install_Waypoints" correctly in the structure block

  • Double check you spelt "structures" correctly in the world save

  • Click the button on the module if the waypoints arent spawning

Related issues

Attachments

Comments

migrated
[media][media][media]
Skylinerw

Quick way to confirm is to provide an entity with a score and use /spreadplayers on a Repeating clock to spread it into a non-spawn-chunk, and then move away in any manner to unload the chunk.

Looks like the same issue as MC-96131, where the chunk is accessed without first checking if it's loaded (see comment here).

marcono1234

Please add a "relates to" link to MC-102348 as well then

migrated

I had this problem too. Unless you want something to do with the teams themselves it will be better if you just use tags

migrated

Also, if a world is reloaded (save and quit and joined again), the sidebar scoreboard disappears until the player list is shown (default Tab)

marcono1234

@@unknown, what you are describing is unrelated to this report. Please search if this has already been reported and create a new report in case it has not been reported yet.

wobst.michael

Can someone please check, if this still applies to 1.15.2 or the latest 1.16 development snapshot (currently that is 20w07a)?

Skylinerw

Cannot reproduce in 20w07a. Please let us know if this can still be reproduced.

migrated

(Unassigned)

Confirmed

(Unassigned)

Minecraft 1.11

Retrieved