I know how to make entities have custom drops by putting things in their armor slots, but how can I make it drop it even if it's not a player that kills it?
I noticed that when I give mobs custom drops through armor slots, these things only drop if they are explicitly killed by a player: making it so if, say, a player uses a projectile summoning spell to kill it instead, it's not considered a kill, and it doesn't drop the thing.
How can I make it so that it actually drops the item no matter how it dies?