mojira.dev
MC-67965

using entitydata @e {id:"zombie"} doesn't update the entity

If I use the EntityData command at any entity to change the type of the entity, the entity doesn't visually change.

Steps to reproduce:

/summon Sheep
/entitydata @e[type=Sheep] {id:"Zombie"}

More in-depth:

The entity class doesn't change with the entity data.

Possible fix:

Re-build the entity (use the readNBT function) using the changed NBT to correct the entity type.

Comments 2

I don't think this should be in the game, instead Summon a mob at the position of the sheep and then teleport the sheep 255 blocks down one tick after so you don't get the mob drops like when you use /kill.

Reusing the entity would be useful for keeping movement vectors, and so forth. It just would make things a lot more interesting, IMO.

Ik Zelf

michael

Unconfirmed

command, entity

Minecraft 14w32b, Minecraft 14w32c, Minecraft 14w32d, Minecraft 14w33a, Minecraft 14w33b, Minecraft 14w33c

Retrieved