This datapack is made for the Dungeon map, and works with conjunction with the 'Dungeon Generator' datapack.
Still this can be used with the 'Tag Groups' and 'Random Value Generator' datapack to have the items.

For giving items for the barrels
/give @s stone{type:"<enemy_name>",display:{Name:'{"text":"<enemy_name>"}'}} 64
