Loot table

Loot tables are technical NBT tables that represent what items should be in a naturally generated chest or what items should drop when killing a mob.

Usage
The loot tables are structured as a String tag and a Long tag for chests. Entities only have one String tag.

For chests: These tags will be removed once the chest is opened and only then items will be put in the chest.
 * : Loot table to be used to fill the chest when it is next opened. When the chest is part of a double chest, only the half corresponding to the tagged single-chest will be affected.
 * : Seed for generating the loot table. 0 or omitted will use a random seed.

For entities:


 * : Loot table to be used for the items that drop when the entity is killed.

The loot tables of entities and chests can be altered with the /entitydata and /blockdata commands.

Examples:

/blockdata    {LootTable:"chests/simple_dungeon"}

This will change the items in the chest at    to have items from a chest in a naturally generated dungeon. Every time the items will be different.

/blockdata    {LootTable:"chests/simple_dungeon",LootTableSeed:12345}

Same as the above, but the items will always be the same.

/entitydata {LootTable:"chests/simple_dungeon"}

This will change the items that drop when is killed. Items dropped will always be different each time.

List of loot tables
Note that this isn't the full list of loot tables. More are to be found in the future.

chests/simple_dungeon - Dungeon chests.

chests/jungle_temple - Chests found inside Jungle Temples.

chests/desert_pyramid - Chests found in the treasure room inside Desert Temples.

chests/spawn_bonus_chest - Bonus chests that appear in a new world when bonus chests are enabled.

chests/end_city_treasure - Chests found in End Cities.