The bug
/data merge|modify entity can change an entity’s team by specifying the Team tag. If a different UUID tag is specified, the entity’s UUID will not change. However, the team of the entity with the provided UUID will be changed instead of the selected entity’s team.
How to reproduce
Create a team:
/team add t1Make it red:
/team modify t1 color redSummon a pig:
/summon pig ~ ~ ~ {NoAI:1b,Glowing:1b}Summon a cow with a specific UUID:
/summon cow ~ ~ ~ {NoAI:1b,Glowing:1b,UUID:[I;0,0,0,1]}Modify the pig:
/data merge entity @n[type=pig] {UUID:[I;0,0,0,1],Team:"t1",CustomName:"pig"}
Expected result
The pig should get the “pig” name and join the t1 team (and start glowing red)
Observed result
Although the pig gets the “pig” name, it’s the unrelated cow that joins the t1 team (and starts glowing red)
Comments 2
Thank you for your report!
After consideration, the issue is being closed as Won't Fix.
Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Changing the UUID of entities is not supported, nor is having several entities with the same UUID.