Shooting/Breaking a Container does not trigger player_generates_container_loot advancement
When using the custom advancement, "minecraft:player_generates_container_loot", opening container blocks and entities manually works as expected. However, if you generate the container's loot by destroying it (both blocks and entities such as chest_minecarts), the advancement is not awarded.