How to make a mob spawner that can spawn mobs with custom drops?

Solution 1:

Spawn mobs with a custom scoreboard score and summon the desired item on all entities with the custom scoreboard score that have a health of 0.