I am making a RPG/Dungeon Crawler datapack and I want to procedurally make dungeons throughout the world. I have somewhat figured out how to make the dungeons, but I want the monsters to be random (e.g. what gear they have equipped).
I would use a loot table to make the monsters harder to kill and be more profitable in a more vanilla way, but I don't know whether it's possible, or how it would be done.
How can I link a mob's armour to a loot table's results?