Adding Custom Items to Chests

How can I edit the existing loot tables and add custom items for structures like the Shipwrecks etc. ? [Version 1.20.6]
Continue to help post