mojira.dev
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.

Attachments

Comments 12

bemoty

Can confirm.

SLScool

Dragons have a tag called {DragonPhase} Your /summon command's said dragon has it set to 10 by default. Regular dragons have it set somewhere between 0 and 9, depending on their current status. It is my belief that {DragonPhase:10} has something to do with this issue.

Meri Diana

I am aware of DragonPhase }=)
Indeed, summoned by a specific DragonPhase, e.g. 0, will not return the entitydata {} as if it could be changed, but instead display in "red", like a Legacy Dragon.
Must be some special case with that "immobilized" Dragon, if one does not summon it alongside a Dragonphase.
I should probably update the title and description add a "without DragonPhase set" to make sure it's more plausible }=)

Panda4994

As of 1.13pre2 the described behaviour still is the case for /data merge, the successor of /entitydata. It says "Modified entity data of Ender Dragon", even if nothing was specified in the brackets.

Updated command:

/data merge entity @e[type=minecraft:ender_dragon,limit=1] {}
Panda4994

Can confirm for 1.13pre3.

2 more comments
Panda4994

Confirmed for 1.13-pre7.

Kraif

Confirmed for 1.13-pre8.

Panda4994

Confirmed for 1.13.

Meri Diana

Entitydata doesn't exist anymore, doesn't happen with new command data merge or similar, thus bugpost can be closed, unsure about the Resolve reason though.

j_p_smith

I was also unable to reproduce this in 1.16.1. @unknown's command now gives an error message as expected.

Meri Diana

(Unassigned)

Community Consensus

(Unassigned)

Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, ..., Minecraft 1.13-pre4, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13

Retrieved