Mojira Archive
MC-105981

EnderDragon summoned via command (without DragonPhase) updates when you entitydata {}

Several EnderDragon issues, I don't know if anything relates to each other, thus I'm listing them all: MC-105976, MC-105980, MC-105981, MC-105983

3) When I tested boss bars in the first 1.11 snapshot, I noticed that if I summon an EnderDragon with

summon ender_dragon ~ ~ ~

(it doesn't move, MC-105980,), when I checked on the non-moving Dragon via:

entitydata @e[type=ender_dragon] {}

normally this wouldn't update an entity's data and return in red colour in the chat.
Instead, it appeared white though and the client output also told me "EntityData updated to..." although I didn't insert anything in the brackets.

Whole client output for the dragon that was summoned via command:

[17:55:16] [Client thread/INFO]: [CHAT] Entity data updated to: {HurtByTimestamp:0,Attributes:[0:{Base:200.0d,Name:"generic.maxHealth"},1:{Base:0.0d,Name:"generic.knockbackResistance"},2:{Base:0.699999988079071d,Name:"generic.movementSpeed"},3:{Base:0.0d,Name:"generic.armor"},4:{Base:0.0d,Name:"generic.armorToughness"},5:{Base:16.0d,Modifiers:[0:{UUIDMost:-3593038383422355857L,UUIDLeast:-7329695741790552044L,Amount:0.005276639092973522d,Operation:1,Name:"Random spawn bonus"}],Name:"generic.followRange"}],Invulnerable:0b,FallFlying:0b,PortalCooldown:0,AbsorptionAmount:0.0f,FallDistance:0.0f,DragonPhase:10,DeathTime:0s,HandDropChances:[0:0.085f,1:0.085f],PersistenceRequired:0b,Motion:[0:NaNd,1:NaNd,2:NaNd],Leashed:0b,UUIDLeast:-6586079442792380665L,Health:200.0f,LeftHanded:0b,Air:300s,OnGround:0b,Dimension:1,Rotation:[0:-3.5f,1:0.0f],HandItems:[0:{},1:{}],ArmorDropChances:[0:0.085f,1:0.085f,2:0.085f,3:0.085f],UUIDMost:6281808638182441113L,Pos:[0:14.161960877119544d,1:72.89637543180132d,2:20.846838001748843d],Fire:0s,ArmorItems:[0:{},1:{},2:{},3:{}],CanPickUpLoot:0b,HurtTime:0s}

When I do

entitydata @e[type=ender_dragon] {}

on an original/Legacy Dragon, or a Dragon summoned via command, but incl. e.g.

{DragonPhase:0}

it returns in "red", as it should.

Whole client output for a Legacy Dragon:

[18:50:50] [Client thread/INFO]: [CHAT] The data tag did not change: {HurtByTimestamp:0,Attributes:[0:{Base:200.0d,Name:"generic.maxHealth"},1:{Base:0.0d,Name:"generic.knockbackResistance"},2:{Base:0.699999988079071d,Name:"generic.movementSpeed"},3:{Base:0.0d,Name:"generic.armor"},4:{Base:0.0d,Name:"generic.armorToughness"},5:{Base:16.0d,Name:"generic.followRange"}],Invulnerable:0b,FallFlying:0b,PortalCooldown:0,AbsorptionAmount:0.0f,FallDistance:0.0f,DragonPhase:2,DeathTime:0s,HandDropChances:[0:0.085f,1:0.085f],PersistenceRequired:0b,Motion:[0:-0.44617881518720787d,1:0.3385423931550345d,2:-1.001675437850392d],Leashed:0b,UUIDLeast:-4854589093810558939L,Health:200.0f,LeftHanded:0b,Air:300s,OnGround:0b,Dimension:1,Rotation:[0:-18.074286f,1:0.0f],HandItems:[0:{},1:{}],ArmorDropChances:[0:0.085f,1:0.085f,2:0.085f,3:0.085f],UUIDMost:4274028441236229475L,Pos:[0:52.14580504816638d,1:84.11991141224713d,2:-21.218101064296995d],Fire:0s,ArmorItems:[0:{},1:{},2:{},3:{}],CanPickUpLoot:0b,HurtTime:0s}

I killed the legacy dragon and spawned a new one via EndCrystals.
That "regular summoned" dragon's entitydata {} also appeared in red.

It seems to affect only dragons which have been summoned via commands without setting a DragonPhase.