The Gamepedia and Fandom account systems have now been merged. If your username is incorrect, you have accounts on both platforms that weren't merged, or you have trouble signing in, please submit a support ticket.

Template:LootChestItem/doc

From Minecraft Wiki
Jump to: navigation, search
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information


Lua logo.svg
This template uses Module:LootChest, a script written in Lua.
Please see wp:Lua and mw:Extension:Scribunto to learn more.

This template prints a summary of availability of this item in the various worldgen chests.

Usage[edit]

It takes a list of items names as its only parameter. Make sure not to put any spaces after the commas.

{{LootChest|<item1>[,<item2>][,...]}}

Available inputs[edit]

acacia-log, acacia-sapling, activator-rail, ancient-debris, apple, arrow, bamboo, barrel, basalt, beetroot, beetroot-seeds, beetroot-soup, bell, birch-log, birch-sapling, black-wool, block-of-gold, block-of-iron, blue-ice, bone, bone-block, book, book-and-quill, bottle-o'-enchanting, bread, brown-mushroom, brown-wool, bucket, buried-treasure-map, cactus, cake, carrot, chain, chainmail-boots, chainmail-chestplate, chainmail-helmet, chainmail-leggings, clay, clock, coal, cocoa-beans, compass, cooked-cod, cooked-porkchop, cooked-salmon, crimson-fungus, crimson-nylium, crimson-roots, crossbow, crying-obsidian, damaged-diamond-boots, damaged-diamond-chestplate, damaged-diamond-helmet, damaged-diamond-leggings, damaged-diamond-sword, damaged-level-enchanted-crossbow, damaged-level-enchanted-netherite-boots, damaged-level-enchanted-netherite-chestplate, damaged-level-enchanted-netherite-helmet, damaged-level-enchanted-netherite-leggings, damaged-level-enchanted-netherite-sword, damaged-netherite-boots, damaged-netherite-chestplate, damaged-netherite-helmet, damaged-netherite-leggings, damaged-netherite-sword, damaged-random-enchanted-crossbow, damaged-random-enchanted-crossbow-2, damaged-random-enchanted-diamond-boots, damaged-random-enchanted-diamond-boots-2, damaged-random-enchanted-diamond-chestplate, damaged-random-enchanted-diamond-chestplate-2, damaged-random-enchanted-diamond-helmet, damaged-random-enchanted-diamond-helmet-2, damaged-random-enchanted-diamond-leggings, damaged-random-enchanted-diamond-leggings-2, damaged-random-enchanted-diamond-pickaxe, damaged-random-enchanted-diamond-shovel, damaged-random-enchanted-diamond-shovel-2, damaged-random-enchanted-diamond-sword, damaged-random-enchanted-diamond-sword-2, damaged-random-enchanted-iron-sword, damaged-random-enchanted-netherite-axe, damaged-random-enchanted-netherite-boots, damaged-random-enchanted-netherite-chestplate, damaged-random-enchanted-netherite-helmet, damaged-random-enchanted-netherite-hoe, damaged-random-enchanted-netherite-leggings, damaged-random-enchanted-netherite-pickaxe, damaged-random-enchanted-netherite-shovel, damaged-random-enchanted-netherite-sword, dandelion, dark-oak-log, dark-oak-sapling, dead-bush, detector-rail, diamond, diamond-boots, diamond-chestplate, diamond-helmet, diamond-hoe, diamond-horse-armor, diamond-leggings, diamond-shovel, diamond-sword, disc-13, disc-cat, disc-mellohi, disc-pigstep, disc-wait, egg, emerald, empty, empty-map, enchanted-book, enchanted-book-rnd, enchanted-book-rnd-soul-speed, enchanted-fishing-rod, enchanted-golden-apple, ender-pearl, feather, fern, fire-charge, flint, flint-and-steel, flower-pot, furnace, gilded-blackstone, glistering-melon-slice, glowstone, gold-ingot, gold-nugget, golden-apple, golden-boots, golden-carrot, golden-chestplate, golden-helmet, golden-hoe, golden-horse-armor, golden-leggings, golden-sword, grass, gray-wool, green-dye, gunpowder, heart-of-the-sea, ink-sac, iron-boots, iron-chestplate, iron-helmet, iron-horse-armor, iron-ingot, iron-leggings, iron-nugget, iron-pickaxe, iron-shovel, iron-sword, jungle-log, jungle-sapling, lapis-lazuli, large-fern, lead, leather, leather-boots, leather-cap, leather-pants, leather-tunic, level-enchanted-diamond-boots, level-enchanted-diamond-chestplate, level-enchanted-diamond-helmet, level-enchanted-diamond-leggings, level-enchanted-diamond-pickaxe, level-enchanted-diamond-shovel, level-enchanted-diamond-sword, level-enchanted-golden-boots, level-enchanted-golden-chestplate, level-enchanted-golden-helmet, level-enchanted-golden-hoe, level-enchanted-golden-leggings, level-enchanted-iron-boots, level-enchanted-iron-chestplate, level-enchanted-iron-helmet, level-enchanted-iron-leggings, level-enchanted-iron-pickaxe, level-enchanted-iron-shovel, level-enchanted-iron-sword, light-gray-wool, light-weighted-pressure-plate, lodestone, magma-block, magma-cream, map, melon-seeds, name-tag, nether-quartz, nether-wart, netherite-boots, netherite-chestplate, netherite-helmet, netherite-ingot, netherite-leggings, netherite-scrap, oak-log, oak-planks, oak-sapling, oak-sign, obsidian, paper, poisonous-potato, polished-basalt, poppy, potato, potion-of-regeneration, potion-of-water-breathing, powered-rail, prismarine-crystals, pumpkin, pumpkin-pie, pumpkin-seeds, rail, random-enchanted-diamond-pickaxe, random-enchanted-golden-axe, random-enchanted-golden-boots, random-enchanted-golden-chestplate, random-enchanted-golden-helmet, random-enchanted-golden-hoe, random-enchanted-golden-leggings, random-enchanted-golden-pickaxe, random-enchanted-golden-shovel, random-enchanted-golden-sword, random-enchanted-leather-boots, random-enchanted-leather-cap, random-enchanted-leather-pants, random-enchanted-leather-tunic, raw-beef, raw-cod, raw-mutton, raw-porkchop, raw-salmon, redstone, rotten-flesh, saddle, sand, shears, smooth-stone, snout-banner-pattern, snow-block, snowball, soul-sand, soul-speed-enchanted-golden-boots, spectral-arrow, spider-eye, spruce-log, spruce-sapling, spruce-sign, stick, stone, stone-axe, stone-bricks, stone-pickaxe, string, suspicious-stew, sweet-berries, tall-grass, tnt, torch, tripwire-hook, water-bucket, wheat, wheat-seeds, white-wool, wooden-axe, wooden-hoe, wooden-pickaxe, yellow-dye

Example[edit]

{{LootChestItem|iron-ingot}}

Item Structure Container Quantity Chance
Java Edition
Iron Ingot Dungeon Chest 1–4 18.5%
Mineshaft Chest 1–5 31.6%
Bastion remnant Bridge chest 2–8 12.2%
Treasure chest 3–9 29.4%
Generic chest 1–6 16%
Buried treasure Chest 1–4 99.4%
Desert temple Chest 1–5 18%
End city Chest 4–8 38.4%
Jungle temple Chest 1–5 37.4%
Nether fortress Chest 1–5 19%
Pillager Outpost Chest 1–3 30.5%
Shipwreck Treasure chest 1–5 97.4%
Stronghold Storeroom chest 1–5 34.3%
Altar chest 1–5 23.3%
Village Armorer's chest 1–3 54.2%
Weaponsmith's chest 1–5 45.1%
Toolsmith's chest 1–5 41.2%
Woodland mansion Chest 1–4 18.5%
Java Edition 1.16.2[upcoming]
Iron Ingot Bastion remnant Generic chest 1–6 19%
Treasure chest 3–9 33.7%
Bridge chest 4–9 11.2%
Bedrock Edition
Iron Ingot Dungeon Chest 1–4 18.5%
Mineshaft Chest 1–5 31.6%
Bastion remnant Bridge chest 2–8 12.2%
Treasure chest 3–9 29.4%
Generic chest 1–6 16%
Buried treasure Chest 3–5 57.2%
Desert temple Chest 1–5 18%
End city Chest 4–8 38.4%
Jungle temple Chest 1–5 37.3%
Nether fortress Chest 1–5 19%
Pillager Outpost Chest 1–3 30.5%
Stronghold Storeroom chest 1–5 28.5%
Altar chest 1–5 22.6%
Village Toolsmith's chest 1–5 41.2%
Armorer's chest 1–3 54.2%
Weaponsmith's chest 1–5 45.1%
Woodland mansion Chest 1–4 18.5%

{{LootChestItem|emerald,iron-sword}}

Item Structure Container Quantity Chance
Java Edition
Emerald Buried treasure Chest 4–8 53.1%
Desert temple Chest 1–3 18%
End city Chest 2–6 9%
Igloo Chest 1 7.6%
Jungle temple Chest 1–3 8.7%
Shipwreck Treasure chest 1–5 73.7%
Underwater ruins Big ruins chest 1 14.9%
Small ruins chest 1 16.4%
Village Shepherd's chest 1 12.3%
Tanner's chest 1–4 17.3%
Armorer's chest 1 31.8%
Fisherman's chest 1 24.2%
Desert house chest 1–3 14.3%
Fletcher's chest 1 12.3%
Taiga house chest 1–4 18.6%
Savanna house chest 1–4 21.5%
Mason's chest 1 20.8%
Plains house chest 1–4 22.8%
Temple chest 1–4 25.4%
Butcher's chest 1 10.2%
Snowy house chest 1–4 9.9%
Iron Sword Buried treasure Chest 1 75%
Stronghold Altar chest 1 12.1%
Village Weaponsmith's chest 1 25.6%
Bedrock Edition
Emerald Desert temple Chest 1–3 18%
End city Chest 2–6 9%
Igloo Chest 1 7.6%
Jungle temple Chest 1–3 8.7%
Stronghold Altar chest 1–3 7.2%
Underwater ruins Big ruins chest 1 14.9%
Small ruins chest 1 16.4%
Village Snowy house chest 1–4 9.9%
Plains house chest 1–4 22.8%
Savanna house chest 1–4 21.5%
Temple chest 1–4 25.4%
Desert house chest 1–3 14.3%
Mason's chest 1 20.8%
Armorer's chest 1 31.8%
Taiga house chest 1–4 20.3%
Shepherd's chest 1 12.3%
Fletcher's chest 1 12.3%
Butcher's chest 1 10.2%
Tanner's chest 1–4 17.3%
Iron Sword Stronghold Altar chest 1 11.8%
Village Weaponsmith's chest 1 25.6%