How do i add a loot chest to a custom structure?

I used to control pick the chest without opening it and its loot table won't be assigned so when i place it in the structure and save, it will have a unique set of items everytime i load it, but this doesn't work anymore, How can i place a chest with a loot table in a structure?
Continue to help post