Path of Exile - Loot and Crafting system

I’m looking to make a similar crafting system to the one show in Path of Exile: Items can have 6 maximum mods, all rolled randomly from different tiers.

Alongside that is consumable items that interact with items to roll these said mods.

If anyone can point me in the right direction that would be great. I don’t have a clue of where to even start for this stuff.

Thanks in advance.