When a player picks up an item that has meta data, that meta data is lost if the player has a stack of the same item in inventory, with the new item taking on the same meta data as the rest of the existing stack. Is there a way to prevent this without making that type of item completely unstackable? Specifically, if it would be useful to be able to stack all of said item with meta data set to "A" with others of the same item with the meta data set to "A", but have it be impossible to stack them with items with different meta data, for example, a stack of the same item with the meta data set to "B". Is there a way to acomplish this?
If it helps for context, my goal is to preserve the names attached to bones when they are harvested, allowing them to act as trophies. You might have a stack of thirty bones from PlayerA, but you don't want that to mostly fill a chest; you'd want them to only take up one inventory slot in the chest.