Chest loot

This table summarizes the average quantity of each item that can be found in a naturally-generated chest, depending on its location.
== Table ==
== Notes ==
The loot in natually-generated chests is not determined upon the chest's generation. The contents generate when a player interacts with the chest by opening it, placing a hopper under it, inserting an item using a hopper, or destroying it.
This also means that if a loot chest is generated in an older version of the game but has never been interacted with, it can still generate with new loot if it's opened for the first time in a newer version.
There are different kinds of loot tables, for example a desert temple or a stronghold. There can also be different loot tables for a certain structure, such as those in bastion remnants and shipwrecks.
== Commands ==
In Java Edition 1.12 and below, the command can be used to place a chest.
The command sets the chest to a dungeon chest. For a minecart chest, use instead.
In Java Edition 1.13 and above, the syntax has changed to e.g. 
Note that this artificial chest is random every time you place one, no matter the location. That is a difference between normal natural chests and artificial loot tables chests. You can set the seed of the loot table using LootTableSeed, by default it is the world seed.
== History ==
 
es:Botín de cofres
fr:Récompenses coffres
ja:チェストの戦利品
ko:상자 전리품
pt:Saque de baú
zh:箱子战利品