I am working on a mini game that needs a random chest loot table and I have no idea on how to do this. Preferably through command blocks, but if not that's fine, I just don't want to add mods.
Quick overview on what I want:
When you open a chest in a generated structure (such as a woodland mansion) it generates the loot as soon as you open the chest. I would like to figure out how to do this with a chest I put down