- 172
- 116
- 18
5,705
Mapmaking - How To Generate Chests [containers] with (Vanilla) Loot-Tables
Commands - Same chest, every version
One command, minecraft:chest with chests/simple_dungeon, written the way your version wants it:
1.20.5 - 26.3 (item NBT became components)
/give @p minecraft:chest[minecraft:container_loot={loot_table:"minecraft:chests/simple_dungeon"}]Older: 1.13 - 1.20.4
/give @p minecraft:chest{BlockEntityTag:{LootTable:"chests/simple_dungeon"}}Very older: 1.9 - 1.12.2 (count and data value are required before the NBT)
/give @p minecraft:chest 1 0 {BlockEntityTag:{LootTable:"minecraft:chests/simple_dungeon"}}1.13+ The /setblock version
/setblock ~ ~1 ~ minecraft:chest{LootTable:"minecraft:chests/simple_dungeon"}Note: the /give syntax above works in 1.13 - 1.20.4 only. From 1.20.5 on, item NBT became components. See Same chest, every version right below.
- generate container with: /setblock ~ ~1 ~ minecraft:type{LootTable:"minecraft:chests/type"}
- Block To Inventory: "control + middle Mousebutton or Mousebutton 3" the chest
- Save as .schem for hand-pasting in or as .NBT with structure-blocks to generate with Worldpainter
- Chest command: /setblock ~ ~1 ~ minecraft:chest{LootTable:"minecraft:chests/simple_dungeon"}
- Barrel command: /setblock ~ ~1 ~ minecraft:barrel{LootTable:"minecraft:chests/simple_dungeon"}
- Dispenser command: /setblock ~ ~1 ~ minecraft:dispenser{LootTable:"minecraft:chests/simple_dungeon"}
- Dropper command: /setblock ~ ~1 ~ minecraft:dropper{LootTable:"minecraft:chests/simple_dungeon"}
- Hopper command: /setblock ~ ~1 ~ minecraft:hopper{LootTable:"minecraft:chests/simple_dungeon"}
- Shulker Box command: /setblock ~ ~1 ~ minecraft:shulker_box{LootTable:"minecraft:chests/simple_dungeon"}
- Trapped Chest command: /setblock ~ ~1 ~ minecraft:trapped_chest{LootTable:"minecraft:chests/simple_dungeon"}
- Chest Minecart command: /summon minecraft:chest_minecart ~ ~ ~ {LootTable:"minecraft:chests/simple_dungeon"}
- Fill an existing container: /loot insert ~ ~1 ~ loot minecraft:chests/simple_dungeon (rolls the table immediately instead of on first open)
- Fixed roll: add LootTableSeed:123456L next to LootTable to make every generated container roll the same items
Block To Inventory: "control + middle Mousebutton or Mousebutton 3" the chest
1.20 Sus Sand
Careful: the BlockEntityTag needs id:"minecraft:brushable_block" or the item comes out empty. Warm ocean ruins use suspicious_sand, cold ones use suspicious_gravel.
| Block | archaeology/desert_well | /give @p minecraft:suspicious_sand{BlockEntityTag:{id:"minecraft:brushable_block",LootTable:"archaeology/desert_well"}} |
| Block | archaeology/desert_pyramid | /give @p minecraft:suspicious_sand{BlockEntityTag:{id:"minecraft:brushable_block",LootTable:"archaeology/desert_pyramid"}} |
| Block | archaeology/trail_ruins_common | /give @p minecraft:suspicious_gravel{BlockEntityTag:{id:"minecraft:brushable_block",LootTable:"archaeology/trail_ruins_common"}} |
| Block | archaeology/trail_ruins_rare | /give @p minecraft:suspicious_gravel{BlockEntityTag:{id:"minecraft:brushable_block",LootTable:"archaeology/trail_ruins_rare"}} |
| Block | archaeology/ocean_ruin_cold | /give @p minecraft:suspicious_gravel{BlockEntityTag:{id:"minecraft:brushable_block",LootTable:"archaeology/ocean_ruin_cold"}} |
| Block | archaeology/ocean_ruin_warm | /give @p minecraft:suspicious_sand{BlockEntityTag:{id:"minecraft:brushable_block",LootTable:"archaeology/ocean_ruin_warm"}} |
Abandoned Camp (26.3+)
- chests/abandoned_camp_common_chest
- chests/abandoned_camp_secret_chest
- barrels/abandoned_camp_barrel
Loot table list: 1.16, to 1.20, 1.21, 26.3 Chest Vanilla Loot Tables
- chests/abandoned_mineshaft
- chests/ancient_city
- chests/ancient_city_ice_box
- chests/bastion_bridge
- chests/bastion_hoglin_stable
- chests/bastion_other
- chests/bastion_treasure
- chests/buried_treasure
- chests/desert_pyramid
- chests/end_city_treasure
- chests/igloo_chest
- chests/jungle_temple
- chests/jungle_temple_dispenser
- chests/nether_bridge
- chests/pillager_outpost
- chests/ruined_portal
- chests/shipwreck_map
- chests/shipwreck_supply
- chests/shipwreck_treasure
- chests/simple_dungeon
- chests/spawn_bonus_chest
- chests/stronghold_corridor
- chests/stronghold_crossing
- chests/stronghold_library
- chests/underwater_ruin_big
- chests/underwater_ruin_small
- chests/woodland_mansion
Trial Chambers (1.21+)
- chests/trial_chambers/corridor
- chests/trial_chambers/entrance
- chests/trial_chambers/intersection
- chests/trial_chambers/intersection_barrel
- chests/trial_chambers/supply
- chests/trial_chambers/reward
- chests/trial_chambers/reward_common
- chests/trial_chambers/reward_rare
- chests/trial_chambers/reward_unique
- chests/trial_chambers/reward_ominous
- chests/trial_chambers/reward_ominous_common
- chests/trial_chambers/reward_ominous_rare
- chests/trial_chambers/reward_ominous_unique
- dispensers/trial_chambers/chamber
- dispensers/trial_chambers/corridor
- dispensers/trial_chambers/water
- pots/trial_chambers/corridor
Village
- chests/village/village_armorer
- chests/village/village_butcher
- chests/village/village_cartographer
- chests/village/village_desert_house
- chests/village/village_fisher
- chests/village/village_fletcher
- chests/village/village_mason
- chests/village/village_plains_house
- chests/village/village_savanna_house
- chests/village/village_shepherd
- chests/village/village_snowy_house
- chests/village/village_taiga_house
- chests/village/village_tannery
- chests/village/village_temple
- chests/village/village_toolsmith
- chests/village/village_weaponsmith
4 Update Logs
Update #4 Updated List and Commands for 1.20.5, 1.21, and 26.1+ : by McMeddon 08/21/2026 10:50:55 amAugust 21 @ 2:50 pm UTC
Update #4 Updated List and Commands for 1.20.5, 1.21, and 26.1+
LOAD MORE LOGS
More like this
5086886
6

Have something to say?
Thanks!!!!
/give @p minecraft:chest{BlockEntityTag:{LootTable:"chests/ancient_city_ice_box"}}