How to reproduce
Summoning item with custom tag inside an item, for example:
/summon item ~ ~ ~ {Item:{id:"gold_ingot",Count:1b,tag:{SpawnXP:5}}}
Run in a repeating command block or function:
execute as @e[type=item,nbt={Age:3s,Item:{tag:{SpawnXP:5}}}] at @s run data remove entity @s Item.tag.SpawnXP
Make sure you have normal item of gold ingot in your inventory. (16 items for testing)
Then picked up your item that has custom tag
→ ❌ The item doesn't stack together.
Video demonstrating the issue: https://www.youtube.com/watch?v=cGcBXvHKKLQ
Attachments
Comments 6
You did not specify to remove the tag NBT, but what's inside it; empty compounds/lists are not deleted unless you specifically say they should be deleted.
Then the report should be about that, not that it's different. (either should be removed instantly, or not be removed at all then)
I have same problems, in /data get that items and in find tag:{}} but it had no tag!!???