Loot table

Loot tables are technical JSON 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 and entities.

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.
 * : Seed for generating the loot table. 0 or omitted will use a random seed.

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 {DeathLootTable:"chests/simple_dungeon"}

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

/entitydata {DeathLootTable:"chests/simple_dungeon",DeathLootTableSeed:12345}

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

List of loot tables
All items from loot tables, when applied to chests, will appear in random slots for each seed.

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

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

chests/village_blacksmith - The chest found in the Blacksmith's house in a Village.

chests/simple_dungeon - Dungeon chests.

chests/igloo_chest - The chest that appears in the basements in igloos. Surprisingly, the golden apple that usually appears in these chests is not a part of this loot table.

chests/abandoned_mineshaft - Minecarts with chests found in abandoned mine shafts.

chests/jungle_temple - Chests found inside Jungle Temples.

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

chests/stronghold_crossing - The chest in the upper level of store rooms in strongholds.

chests/stronghold_corridor - Chests found on slab altars in corridors in strongholds.

chests/stronghold_library - Chests found in a library in strongholds.

chests/nether_bridge - Chests found in Nether Fortresses.

chests/end_city_treasure - Chests found in End Cities.

entities/ - The items dropped when killing. When applied to chests, will put the items in random slots and commonly spawn items in amounts of 0 (Probably because of mobs sometimes not dropping any items).