This is going to be a very specific problem.
There's a mod in my modpack that has an item i want to replace with another item. Some cases it has a loot table i can simply modify with a datapack, but there's a couple instances where the item drops and there's no relevant loot table for it happening.
My only guess is that it is, for some reason, hard-coded to drop X item from Y source.
With that being said, i know it's possible to kill any instance of a specific item entity, but is it possible to SWAP OUT item entities in a similar way?
To be more specific;
When item X is dropped, the item X entity is cleared, and replaced with a drop of item Z.