When running /give @p player_head[profile=<name>]
or letting it be run by a command block/datapack, each time the command is executed a subsequent inventory slot is filled even if the name stays the same.
This does not happen if the profile component is not used and also doesn't happen with other components like custom_name.
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
Can confirm. This happens because when the item is initially given by the command, its
profile
component has different tags than the other player heads already in the player's inventory, because the component is altered by the game afterwards.