Minecraft Wiki

The Minecraft Wiki has moved from Fandom; see the linked discussion page for details.

READ MORE

Minecraft Wiki
Advertisement
This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more information
Lua logo
This template uses Module:LootChest, a script written in Lua.

Usage

It takes any number of chest parameters, and any number of column parameters, in no particular order.

If no chest parameters are listed, it displays them all; likewise for column parameters.

{{LootChest [ |<chestParam1> ... |<chestParamN> ] [ |<columnHideParam1> ... |<columnHideParamN> ] }}

Chest parameters

ancient-city,
ancient-city-ice-box,
bastion-bridge,
bastion-generic,
bastion-hoglin-stable,
bastion-treasure,
bonus,
bonus-barrel,
brushable-cold-ocean-ruins,
brushable-desert-temple,
brushable-desert-well,
brushable-trail-ruins,
brushable-trail-ruins-rare,
brushable-warm-ocean-ruins,
buried-treasure,
desert-temple ( desert ),
dungeon,
end-city,
igloo,
jungle-temple ( jungle ),
jungle-temple-dispenser,
mineshaft,
nether-fortress ( nether-fortress, nether ),
pillager-outpost ( outpost ),
ruined-portal,
shipwreck-map,
shipwreck-supply,
shipwreck-treasure,
stronghold-altar ( altar ),
stronghold-library ( library ),
stronghold-storeroom ( storeroom ),
underwater-ruin-big,
underwater-ruin-small,
village-armorer ( armorer ),
village-butcher ( butcher ),
village-cartographer ( cartographer ),
village-desert-house ( desert-house ),
village-fisherman ( fisherman ),
village-fletcher ( fletcher ),
village-mason ( mason ),
village-plains-house ( plains-house ),
village-savanna-house ( savanna-house ),
village-shepherd ( shepherd ),
village-snowy-house ( snowy-house ),
village-taiga-house ( taiga-house ),
village-tannery ( tannery ),
village-temple ( temple ),
village-toolsmith ( toolsmith ),
village-weaponsmith ( weaponsmith ),
woodland-mansion ( mansion )

Column parameters

chance: The odds of finding any of this item in a single chest.,
chests: The average number of chests the player should expect to search to find any of this item.,
items: The number of items expected per chest, averaged over a large number of chests.,
stacksize: The size of stacks (or for unstackable items, number) of this item on any given roll.,
weight: The weight of this item relative to other items in the pool.

Example

{{LootChest}} → all chests and all columns

{{LootChest|mineshaft|dungeon|chance|stacksize}} → only mineshaft and dungeon chests, and only 'stacksize' and 'chance' columns

In Java Edition,

Item Dungeon
(1–3, 1–4, and 3 stacks)
Mineshaft
(1, 2–4, and 3 stacks)
Stack Size [A] Chance [B] Stack Size [A] Chance [B]
1–3× 1–4× 2–4×
Bone 1–857.8%
Gunpowder 1–857.8%
Rotten Flesh 1–857.8%
String 1–857.8%
Wheat 1–434.1%
Bread 134.1% 1–338.7%
Name Tag 127.9% 142.3%
Saddle 127.9%
Coal 1–426.6% 3–827.3%
Redstone Dust 1–426.6% 4–914.5%
Music Disc (13) 121.5%
Music Disc (cat) 121.5%
Iron Horse Armor 121.5%
Golden Apple 121.5% 128.2%
Beetroot Seeds 2–418.5% 2–427.3%
Melon Seeds 2–418.5% 2–427.3%
Pumpkin Seeds 2–418.5% 2–427.3%
Iron Ingot 1–418.5% 1–527.3%
Bucket 118.5%
Enchanted Book[C] 114.7% 114.1%
Golden Horse Armor 114.7%
Gold Ingot 1–49.6% 1–314.5%
Diamond Horse Armor 17.6%
Music Disc (otherside) 13.1%
Enchanted Golden Apple 13.1% 11.4%
Rails 4–878.4%
Torch 1–1665.7%
Glow Berries 3–638.7%
Activator Rail 1–427.1%
Detector Rail 1–427.1%
Powered Rail 1–427.1%
Lapis Lazuli 4–914.5%
Diamond 1–28.9%
Nothing[D] 17.0%
Iron Pickaxe 17.0%

In Java Edition 1.20.2,

Item Dungeon Mineshaft
(1, 2–4, 3, and 1 stacks)
Stack Size [A] Chance [B] Stack Size [A] Chance [B]
2–4×
Nothing[D] 1181.4%
Rails 4–878.4%
Torch 1–1665.7%
Name Tag 142.3%
Glow Berries 3–638.7%
Bread 1–338.7%
Golden Apple 128.2%
Coal 3–827.3%
Beetroot Seeds 2–427.3%
Melon Seeds 2–427.3%
Pumpkin Seeds 2–427.3%
Iron Ingot 1–527.3%
Activator Rail 1–427.1%
Detector Rail 1–427.1%
Powered Rail 1–427.1%
Enchanted Book[E] 120.0%
Lapis Lazuli 4–914.5%
Redstone Dust 4–914.5%
Gold Ingot 1–314.5%
Enchanted Book[C] 114.1%
Diamond 1–28.9%
Iron Pickaxe 17.0%
Enchanted Golden Apple 11.4%

In Bedrock Edition,

Item Dungeon
(1–3, 1–4, and 3 stacks)
Mineshaft
(1, 2–4, and 3 stacks)
Stack Size [A] Chance [B] Stack Size [A] Chance [B]
1–3× 1–4× 2–4×
Bone 1–857.8%
Gunpowder 1–857.8%
Rotten Flesh 1–857.8%
String 1–857.8%
Wheat 1–434.1%
Bread 134.1% 1–338.7%
Name Tag 127.9% 142.3%
Saddle 127.9%
Coal 1–426.6% 3–827.3%
Redstone Dust 1–426.6% 4–914.5%
Music Disc (13) 121.5%
Music Disc (cat) 121.5%
Iron Horse Armor 121.5%
Golden Apple 121.5% 128.2%
Beetroot Seeds 2–418.5% 2–427.3%
Melon Seeds 2–418.5% 2–427.3%
Pumpkin Seeds 2–418.5% 2–427.3%
Iron Ingot 1–418.5% 1–527.3%
Bucket 118.5%
Enchanted Book[C] 114.7% 114.1%
Golden Horse Armor 114.7%
Gold Ingot 1–49.6% 1–314.5%
Diamond Horse Armor 17.6%
Music Disc (otherside) 13.1%
Enchanted Golden Apple 13.1% 11.4%
Rails 4–878.4%
Torch 1–1665.7%
Glow Berries 3–638.7%
Activator Rail 1–427.1%
Detector Rail 1–427.1%
Powered Rail 1–427.1%
Lapis Lazuli 4–914.5%
Diamond 1–28.9%
Nothing[D] 17.0%
Iron Pickaxe 17.0%
  1. a b c d e f The size of stacks (or for unstackable items, number) of this item on any given roll.
  2. a b c d e f The odds of finding any of this item in a single chest.
  3. a b c All enchantments are equally probable, including treasure enchantments (except Soul Speed, and Swift Sneak), and any level of the enchantment is equally probable.
  4. a b c 'Nothing' does not refer to the chance of an empty chest. Instead, it refers to the chance that the random loot generator does not add any loot on a single roll.
  5. Enchanted with a random level of Efficiency.
Advertisement