There are two components that can specify the items contained in a container block: container
and container_loot
. The container
component can specify item ID, and the container_loot
component can specify a loot table ID.
The problem here is when both container
and container_loot
are used.
/give @s chest[container=[{slot:0,item:{id:stone}}],container_loot={loot_table:"blocks/dirt"}]
When you place this chest and open it, the items specified in both container
(stone) and container_loot
(dirt) appear as expected.
However, if you place the same chest item again, leave the game, join back in, and then open the chest, you will see that the items from the container
(stone) component are now gone and only the items from the container_loot
(dirt) are present. This is abnormal behavior.
Can confirm.