Right now in data blocks we have access to chest [<orientation>] <loot table> which allows quite a bit of style in custom loot tables.
It would be really handy for structure design if I could also specify a modded or vanilla container (like hoppers I suppose) with a randomized loot table for visual style as well.
Some application would be:
- To add randomized books in bookshelves for lore and enchantments for a library.
- To add barrels to a camp's horse drawn supply cart.
- To stylize the available chests to the theme of a dungeon.
Here are some bookshelves from the Inspirations mod for instance also having directionality:

However, it has a unique style as a container:

Perhaps for compatibility there could be an additional/optional <modID:item> after chest [<orientation>] <loot table> to be able to specify the container.
Right now in data blocks we have access to
chest [<orientation>] <loot table>which allows quite a bit of style in custom loot tables.It would be really handy for structure design if I could also specify a modded or vanilla container (like hoppers I suppose) with a randomized loot table for visual style as well.
Some application would be:
Here are some bookshelves from the Inspirations mod for instance also having directionality:


However, it has a unique style as a container:
Perhaps for compatibility there could be an additional/optional
<modID:item>afterchest [<orientation>] <loot table>to be able to specify the container.