mojira.dev
MC-93994

Game only targets one entity when more than one have the same UUID

When two or more entities in the same world have the same UUID, the game only targets one of them.

What I expected to happen was:
All the entities got targeted

What actually happened was:
Only one entity got targeted

Steps to reproduce
1-Summon an entity with a custom UUID tag (For example 1-2-3-4-5)
2-Try to execute an action with it (like killing it)

Linked issues

Attachments

Comments 28

Confirmed for 15w49b.

By the way, you can't use "UUID" it must be "UUIDLeast" AND "UUIDMost".

/summon Zombie ~ ~1 ~ {CustomName:"Test",UUIDLeast:1l,UUIDMost:1l,PersistanceRequired:1}

That should work. You can only have one entity with that UUID, your instructions won't work at all.

Yeah, but I was testing to see CrushedPixel's way of making entities attack other entities, that uses the UUID (not sure if it works with UUIDLeast and UUIDMost).

Surely any time you have two entities with the same UUID the behavior is undefined. The first 'U' means 'unique'. This bug is invalid in my opinion.

Whatever you are saying I'm using the LATEST SNAPSHOT OF MC 1.9 so I'm using "UUIDLeast" and "UUIDMost" to summon entities. But PROJECTILES use "ownerUUID" which converts the UUID pair to "UUID" string text, so "/summon Pig ~ ~1 ~ {UUIDLeast:1l,UUIDMost:1l,PersistanceRequired:1}" will be targeted if: "/execute @e[type=Skeleton] ~ ~ ~ summon Snowball ~ ~2 ~ {ownerName:"00000000000000-0001-000000000000000-0001"}" will cause the skeleton to fight with the pig. (I'm not sure if I converted it correctly, but if you have converted it correctly, YOU WILL see the fight. So I'm using the LATEST 1.9 SNAPSHOT so your technic won't work, and I don't like going back, so that is why.

18 more comments

Yes! You did it! Shift-Click on that name. That is how to get UUID. Then convert UUID to "UUIDLeast" and "UUIDMost" for it to work.

Oh, for that you could've just used

/say @p

... Anyway, an entity's UUID is what makes it different from all the other entities, right? Then what's for UUIDLeast and UUIDMost? What's the difference?

People, go look it up on google or something, this is a bug tracker, not a forum

MC-55603 was also marked as duplicate of MC-44904 and also this is fixed in the snapshots

Invalid per @unknown's first comment. This is a bug tracker, not a discussion forum. Any further discussion will result in a ban.

JessePinkerman

(Unassigned)

Unconfirmed

Minecraft 1.8.8

Retrieved