What I want to learn

I making a datapack that is adding unique items, that you can find in structures, get from killing mobs, or craft with this way: you dropping items in the same co-ords, and item spawns, and ingredients are disappearing. Also, some such crafts would use unique items from datapack. Also I want to add new enchantments exclusevly for unique items. These enchantments are usually enchantments from minecraft dungeons. Unique items will have NBTs. So I want to modify loot tables of structures chest and mob drops, and create dropping item craft.
Continue to help post