mojira.dev
MC-89610

Entites on a team gets kicked off the team and scores reset when unloaded

I have an entity called "[Quest] Inn Keeper" and it is on the team "quest" with a color of light_purple. When I unload it (TP a couple hundered blocks away) then reload it (TP back.) it is kicked off the team and scoreboards are lost.
Command used to spawn the villager:

/summon Villager 150 95 -177 {Tags:["pathFinder","north","tagDir"],CustomName:"-[Quest]- Inn Keeper",Profession:2,Silent:1,NoAI:1,Team:"quest"}

When I did an entitydata within a radius of 3 right next to it, the console said:

That entity cannot be found
That entity cannot be found
That entity cannot be found
That entity cannot be found
That entity cannot be found
...10 more

And before I summoned the villager there, there were no entities whatsoever!

Forced Crash Report:

---- Minecraft Crash Report ----
// Sorry :(

Time: 9/29/15 10:51 PM
Description: Manually triggered debug crash

java.lang.Throwable
	at bab.s(SourceFile:1625)
	at bab.as(SourceFile:928)
	at bab.a(SourceFile:377)
	at net.minecraft.client.main.Main.main(SourceFile:125)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
	at bih.a(SourceFile:361)

-- Affected level --
Details:
	Level name: MpServer
	All players: 1 total; [bkg['MinecraftSpace'/143, l='MpServer', x=152.66, y=95.00, z=-176.65]]
	Chunk stats: MultiplayerChunkCache: 441, 441
	Level seed: 0
	Level generator: ID 01 - flat, ver 0. Features enabled: false
	Level generator options: 
	Level spawn location: World: (-32,67,10), Chunk: (at 0,4,10 in -2,0; contains blocks -32,0,0 to -17,255,15), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
	Level time: 3661575 game time, 1000 day time
	Level dimension: 0
	Level storage version: 0x00000 - Unknown?
	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
	Forced entities: 46 total; [wz['??????????'/256, l='MpServer', x=186.97, y=97.00, z=-181.50], wz['??????????'/257, l='MpServer', x=186.97, y=97.00, z=-181.50], wz['??????????'/258, l='MpServer', x=186.97, y=97.00, z=-181.50], vk['Neko'/259, l='MpServer', x=185.53, y=96.00, z=-178.53], vk['Chat'/260, l='MpServer', x=182.59, y=97.28, z=-184.44], vk['Ginger'/261, l='MpServer', x=187.25, y=98.00, z=-184.31], vk['Katt'/262, l='MpServer', x=186.47, y=97.00, z=-184.41], vk['Socks'/263, l='MpServer', x=187.50, y=97.00, z=-183.22], vk['Pie'/264, l='MpServer', x=187.69, y=98.00, z=-178.31], wz['??????????'/265, l='MpServer', x=165.50, y=92.00, z=-150.50], wz['Armor Stand'/266, l='MpServer', x=180.50, y=97.00, z=-147.50], wz['Armor Stand'/267, l='MpServer', x=159.88, y=94.69, z=-170.50], wz['TunnelMist'/268, l='MpServer', x=163.41, y=95.00, z=-198.56], xb['entity.ItemFrame.name'/269, l='MpServer', x=175.03, y=97.50, z=-140.50], yw['[Quest Start] Thomas'/270, l='MpServer', x=181.50, y=95.00, z=-162.50], wz['Bread'/271, l='MpServer', x=182.69, y=94.44, z=-163.31], wz['Bread1'/272, l='MpServer', x=182.28, y=94.47, z=-163.72], wz['??????????'/273, l='MpServer', x=180.50, y=95.00, z=-139.50], yw['[Quest] Wheat Farmer'/274, l='MpServer', x=176.50, y=95.00, z=-140.50], wz['canyonHorde1'/275, l='MpServer', x=183.69, y=97.00, z=-34.91], wz['canyonHorde1'/277, l='MpServer', x=186.06, y=97.00, z=-34.78], yw['Mayor'/278, l='MpServer', x=202.88, y=95.00, z=-155.50], wz['TunnelMist'/279, l='MpServer', x=195.44, y=97.00, z=-89.72], wz['canyonHorde2'/280, l='MpServer', x=195.53, y=97.00, z=-81.53], wz['canyonHorde2'/281, l='MpServer', x=197.34, y=97.00, z=-80.56], wz['canyonHorde2'/282, l='MpServer', x=194.28, y=97.00, z=-79.50], wz['canyonSpawn4'/283, l='MpServer', x=192.50, y=97.00, z=-54.47], wz['TunnelMist'/284, l='MpServer', x=212.56, y=95.00, z=-169.56], bkg['MinecraftSpace'/143, l='MpServer', x=152.66, y=95.00, z=-176.65], wz['Armor Stand'/239, l='MpServer', x=150.50, y=95.00, z=-177.50], wz['Armor Stand'/240, l='MpServer', x=149.50, y=95.00, z=-177.50], wz['Armor Stand'/241, l='MpServer', x=150.50, y=95.00, z=-178.50], wz['Armor Stand'/242, l='MpServer', x=149.50, y=95.00, z=-178.50], yw['[Quest] Inn Keeper'/243, l='MpServer', x=150.50, y=95.00, z=-176.50], wz['??????????'/244, l='MpServer', x=184.25, y=95.00, z=-178.63], wz['??????????'/245, l='MpServer', x=184.25, y=95.00, z=-178.63], wz['??????????'/246, l='MpServer', x=184.25, y=95.00, z=-178.63], wz['??????????'/247, l='MpServer', x=184.25, y=95.00, z=-178.63], wz['??????????'/248, l='MpServer', x=184.25, y=95.00, z=-178.63], yw['[Quest Start] Theresa'/249, l='MpServer', x=181.50, y=95.00, z=-179.50], vk['Gato'/250, l='MpServer', x=185.44, y=95.06, z=-181.47], vk['Lulu'/251, l='MpServer', x=185.50, y=95.06, z=-182.53], vk['Icecream'/252, l='MpServer', x=185.50, y=95.06, z=-180.44], xb['entity.ItemFrame.name'/253, l='MpServer', x=182.50, y=96.50, z=-183.97], xb['entity.ItemFrame.name'/254, l='MpServer', x=186.97, y=97.50, z=-181.50], wz['??????????'/255, l='MpServer', x=186.97, y=97.00, z=-181.50]]
	Retry entities: 0 total; []
	Server brand: vanilla
	Server type: Integrated singleplayer server
Stacktrace:
	at bih.a(SourceFile:361)
	at bab.b(SourceFile:2369)
	at bab.a(SourceFile:386)
	at net.minecraft.client.main.Main.main(SourceFile:125)

-- System Details --
Details:
	Minecraft Version: 15w39c
	Operating System: Windows 7 (amd64) version 6.1
	Java Version: 1.8.0_25, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 254386856 bytes (242 MB) / 413659136 bytes (394 MB) up to 1060372480 bytes (1011 MB)
	JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	Launched Version: 15w39c
	LWJGL: 2.9.4
	OpenGL: Intel(R) HD Graphics 3000 GL version 3.1.0 - Build 9.17.10.4101, Intel
	GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

	Using VBOs: Yes
	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Resource Packs: Faithful 32x32 (incompatible), MCSpace and Zesty
	Current Language: English (US)
	Profiler Position: N/A (disabled)
	CPU: 8x Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media]
migrated

Doesn't happen for me. Can you provide a video?

migrated
migrated

Still cannnot reproduce. Since the video doesn't show it, can you please provide the commands you used to summon the villager and put it on the team? Alternatively, a world download could be useful.

migrated

/summon Villager 150 95 177 {Tags:["pathFinder","north","tagDir"],CustomName:"[Quest]- Inn Keeper",Profession:2,Silent:1,NoAI:1,Team:"quest"}

migrated

Still cannot reproduce, but I'm leaving it open. Maybe someone else can make sense of it.

migrated

This has been left open, but still no help from other "[Mod]"s, any feedback would be great

migrated

Two things that could help:

  • Does this also happen with villagers without names or special characters in their name?

  • Can you attach the affected world to this ticket?

migrated

I managed to reproduce this 1 time out of the 5, trying again to attach screenshots

migrated

got them, seems like I had to not be in spectator for this to happen

migrated

Confirmed for 1.11, I have reproduced with over 60 villagers in my world.

mrpingouin1

About why it relates to MC-102348 :
One of the cause is that villagers can schedule village door check that occur right between the chunk unload and entities update.
As said in the comments of MC-96131, any use of World.getBlockState can be a cause of chunk reload in the same tick, so this issue could be caused but other things beside door check and commands.

migrated

Confirmed for 1.13.1.

migrated

Confirmed for 19w03c

Also confirmed with slimes

migrated

Confirmed for 1.13.2 and 1.14 pre-1

Plagiatus

Entities don't seem to loose their scores when being teleported to unloaded chunks, but they do loose them when entering the nether now (1.15.2)

marcono1234

@@unknown, that is MC-161592.

Adrian Östergård

Is this still an issue in 1.16.3 or later?

migrated

Confirmed for 1.16.3, as well as for scoreboard tags (/tag command).

migrated

Confirmed for 1.16.5 and now I want to jump off a (Minecraft?) cliff

anthony cicinelli

@unknown & @unknown 1.16.3 & 1.16.5 is no longer a valid testing version please test this in 1.17.1 or the latest snapshot

migrated

(Unassigned)

Confirmed

Platform

Normal

Commands

reset, score, scoreboard, team, unloading

Minecraft 15w39c, Minecraft 15w42a, Minecraft 1.9, Minecraft 1.11, Minecraft 1.11.2, ..., Minecraft 1.12.2, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 1.14 Pre-Release 1, 1.16.4

Retrieved