This is the documentation page for Module:LootChest
This module has been modified in order to better support Parallel items.
Maintenance
The data for Java release versions is current as of 1.20.1. (needs to be checked/updated to 1.20.2). | 20:49, June 9 2022 (UTC) |
The data for Java snapshots is current as of 1.20.2 Pre-release 1. (needs to be checked/updated to 23w44a). | 18:43, 20 April 2022 (UTC) |
The data for Bedrock release versions is current as of 1.19.0. (needs to be checked/updated to 1.20.40). | 20:49, June 9 2022 (UTC) |
The data for Bedrock beta versions is current as of beta 1.19.80.22. (needs to be checked/updated to beta 1.20.50.22). | 18:43, January 23 2023 (UTC) |
.base usage (Template:LootChest)
Generates a table of the contents of the designated chests, with columns corresponding to various statistics about the availability of those items.
Invoking
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.
{{#invoke:LootChest|base [ |<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 ),
end-city,
igloo,
jungle-temple ( jungle ),
jungle-temple-dispenser,
mineshaft,
monster room,
moon-lab,
moon-resuply,
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 ),
sunken-treasure,
sunken-treasure-chest,
trial-chambers-chamber-dispenser,
trial-chambers-corridor,
trial-chambers-corridor-dispenser,
trial-chambers-corridor-pot,
trial-chambers-entrance,
trial-chambers-intersection,
trial-chambers-intersection-barrel,
trial-chambers-reward,
trial-chambers-reward-ominous,
trial-chambers-supply,
trial-chambers-trial-spawner,
trial-chambers-trial-spawner-ominous,
trial-chambers-water-dispenser,
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 ),
voteparty,
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
{{#invoke:LootChest|base}}
→ all chests and all columns
{{#invoke:LootChest|base|weaponsmith|jungle|bonus|chance|stacksize}}
→ only weaponsmith and jungle chests, and only 'stacksize' and 'chance' columns
.base2 usage (Template:LootChestItem inline)
Prints a summary of this item's availability in the various worldgen chests.
Invoking
It takes exactly one item name as a parameter.
{{#invoke:LootChest|base2|<itemParam>}}
Item parameters
acacia-log, acacia-planks, acacia-sapling, acacia-sapling-m, activator-rail, air-block-m, allium-m, amethyst-shard, ancient-debris, ancient-debris-2, ancient-debris-m, angler-pottery-sherd, apple, archer-pottery-sherd, arms-up-pottery-sherd, arrow, azure-bluet-m, baked-potato, bamboo, bamboo-hanging-sign, bamboo-m, bamboo-planks, barrel, basalt, beetroot, beetroot-seeds, beetroot-seeds-m, beetroot-soup, bell, bell-m, big-dripleaf-m, birch-log, birch-sapling, birch-sapling-m, black-wool, blade-pottery-sherd, block-of-diamond, block-of-emerald, block-of-gold, block-of-iron, blue-dye, blue-ice, blue-key, blue-orchid-m, blue-stained-glass-pane, bolt-armor-trim-smithing-template, bone, bone-block, bone-block-m, bone-meal, bone-meal-m, book, book-and-quill, bottle-o'-enchanting, brain-coral-block-m, bread, brewer-pottery-sherd, brick, brown-candle, brown-mushroom, brown-mushroom-m, brown-wool, bubble-coral-block-m, bucket, bucket-m, budding-amethyst-m, buried-treasure-map, burn-pottery-sherd, cactus, cactus-m, cake, candle, carrot, carrot-m, chain, chainmail-boots, chainmail-chestplate, chainmail-helmet, chainmail-leggings, cherry-sapling-m, chorus-flower-m, clay, clay-ball, clock, coal, coast-armor-trim-smithing-template, cobweb-m, cocoa-beans, cocoa-beans-m, compass, cooked-beef, cooked-chicken, cooked-cod, cooked-porkchop, cooked-salmon, cornflower-m, cow-spawn-egg-m, crimson-fungus, crimson-nylium, crimson-nylium-m, crimson-roots, crossbow, crying-obsidian, damaged-diamond-axe, damaged-diamond-boots, damaged-diamond-chestplate, damaged-diamond-helmet, damaged-diamond-leggings, damaged-diamond-pickaxe, damaged-diamond-sword, damaged-golden-axe, damaged-golden-pickaxe, damaged-iron-axe, damaged-level-enchanted-crossbow, damaged-level-enchanted-diamond-hoe, 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-axe, 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-pickaxe-2, 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-golden-axe, damaged-random-enchanted-golden-pickaxe, damaged-random-enchanted-iron-axe, 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, damaged-shield, damaged-stone-axe, damaged-stone-pickaxe, dandelion, dandelion-m, danger-pottery-sherd, dark-oak-log, dark-oak-sapling, dark-oak-sapling-m, dead-bush, detector-rail, diamond, diamond-boots, diamond-chestplate, diamond-helmet, diamond-hoe, diamond-horse-armor, diamond-leggings, diamond-m, diamond-pickaxe-m, diamond-shovel, diamond-sword, dirt-m, disc-13, disc-cat, disc-creator, disc-creator-music-box, disc-fragment-5, disc-mellohi, disc-otherside, disc-pigstep, disc-precipice, disc-relic, disc-wait, dune-armor-trim-smithing-template, echo-shard, echo-shard-m, egg, elytra-m, emerald, empty, empty-map, enchanted-book, enchanted-book-rnd, enchanted-book-rnd-breach-density, enchanted-book-rnd-efficiency, enchanted-book-rnd-high, enchanted-book-rnd-low, enchanted-book-rnd-mending, enchanted-book-rnd-mending-trident, enchanted-book-rnd-quick-charge, enchanted-book-rnd-soul-speed, enchanted-book-rnd-swift-sneak, enchanted-book-rnd-trial-chambers, enchanted-book-rnd-trial-chambers-2, enchanted-book-rnd-unbreaking, enchanted-book-rnd-wind-burst, enchanted-fishing-rod, enchanted-golden-apple, end-stone-m, ender-pearl, ender-pearl-m, explorer-pottery-sherd, eye-armor-trim-smithing-template, feather, fern, fern-m, fire-charge, fire-coral-block-m, flint, flint-and-steel, flow-armor-trim-smithing-template, flow-banner-pattern, flower-pot, friend-pottery-sherd, furnace, ghast-tear-m, gilded-blackstone, glistering-melon-slice, glow-berries, glow-berries-m, glowstone, glowstone-dust-m, goat-horn, gold-ingot, gold-ingot-m, gold-nugget, golden-apple, golden-apple-m, golden-boots, golden-carrot, golden-chestplate, golden-helmet, golden-hoe, golden-horse-armor, golden-leggings, golden-sword, grass-block-m, gravel-m, gray-wool, green-candle, green-dye, gunpowder, gunpowder-m, guster-banner-pattern, heart-of-the-sea, heart-of-the-sea-m, heart-pottery-sherd, heartbreak-pottery-sherd, heavy-core, honey-bottle, honeycomb, horn-coral-block-m, host-armor-trim-smithing-template, howl-pottery-sherd, ink-sac, iron-axe, iron-boots, iron-chestplate, iron-helmet, iron-horse-armor, iron-ingot, iron-ingot-m, iron-leggings, iron-nugget, iron-pickaxe, iron-shovel, iron-sword, jungle-log, jungle-sapling, jungle-sapling-m, kelp-m, lapis-lazuli, lapis-lazuli-m, large-fern, large-fern-m, lava-bucket-m, lead, leather, leather-boots, leather-cap, leather-pants, leather-tunic, level-enchanted-bow, level-enchanted-bow-2, level-enchanted-crossbow, level-enchanted-diamond-axe, level-enchanted-diamond-axe-2, level-enchanted-diamond-boots, level-enchanted-diamond-boots-2, level-enchanted-diamond-chestplate, level-enchanted-diamond-chestplate-2, level-enchanted-diamond-chestplate-3, level-enchanted-diamond-chestplate-4, level-enchanted-diamond-helmet, level-enchanted-diamond-helmet-2, level-enchanted-diamond-leggings, level-enchanted-diamond-leggings-2, level-enchanted-diamond-leggings-3, level-enchanted-diamond-pickaxe, level-enchanted-diamond-shovel, level-enchanted-diamond-sword, level-enchanted-diamond-sword-2, level-enchanted-golden-boots, level-enchanted-golden-chestplate, level-enchanted-golden-helmet, level-enchanted-golden-hoe, level-enchanted-golden-leggings, level-enchanted-iron-axe, level-enchanted-iron-boots, level-enchanted-iron-boots-2, level-enchanted-iron-boots-3, level-enchanted-iron-chestplate, level-enchanted-iron-chestplate-0-10, level-enchanted-iron-chestplate-2, level-enchanted-iron-chestplate-3, level-enchanted-iron-helmet, level-enchanted-iron-helmet-2, level-enchanted-iron-helmet-3, level-enchanted-iron-leggings, level-enchanted-iron-leggings-2, level-enchanted-iron-leggings-3, level-enchanted-iron-pickaxe, level-enchanted-iron-pickaxe-2, level-enchanted-iron-shovel, level-enchanted-iron-shovel-2, level-enchanted-iron-sword, level-enchanted-iron-sword-2, level-enchanted-leather-boots, level-enchanted-leather-cap, level-enchanted-leather-pants, level-enchanted-leather-tunic, level-enchanted-stone-sword, light-blue-dye, light-blue-stained-glass-pane, light-gray-wool, light-weighted-pressure-plate, lilac-m, lily-of-the-valley-m, lingering-potion-of-healing, lingering-potion-of-poison, lingering-potion-of-slowness, lingering-potion-of-weakness, lodestone, magenta-stained-glass-pane, magma-block, magma-cream, mangrove-log, mangrove-propagule-m, map, melon-seeds, melon-seeds-m, milk-bucket, miner-pottery-sherd, moss-block, moss-block-m, mourner-pottery-sherd, mycelium-m, name-tag, nautilus-shell-m, nether-quartz, nether-quartz-m, nether-wart, nether-wart-m, netherite-boots, netherite-chestplate, netherite-helmet, netherite-ingot, netherite-leggings, netherite-scrap, netherite-upgrade-smithing-template, oak-hanging-sign, oak-log, oak-log-m, oak-planks, oak-sapling, oak-sapling-m, oak-sign, obsidian, ominous-bottle, ominous-bottle-2, ominous-trial-key, orange-dye, orange-tulip-m, oxeye-daisy-m, packed-air-m, packed-ice, paper, parallel:100-riftcoin-jackpot, parallel:50-riftcoin-jackpot, parallel:500-riftcoin-mega-jackpot, parallel:agender-pride-flag, parallel:angry-bee-hat, parallel:angry-nectar-bee-hat, parallel:armorer's-welding-mask, parallel:aromantic-pride-flag, parallel:asexual-pride-flag, parallel:baguette, parallel:bee-hat, parallel:beret, parallel:bisexual-pride-flag, parallel:black-cat-hat, parallel:black-plague-doctor-mask, parallel:bloody-netherite-axe-hat, parallel:british-shorthair-cat-hat, parallel:broken-makeshift-wings, parallel:bronze-donator-crown, parallel:buddy-head, parallel:butcher's-headband, parallel:buzzing-angry-bee-hat, parallel:buzzing-angry-nectar-bee-hat, parallel:buzzing-bee-hat, parallel:buzzing-nectar-bee-hat, parallel:calico-cat-hat, parallel:cartographer's-golden-monocle, parallel:charm-applicator-level-1, parallel:charm-applicator-level-2, parallel:charm-applicator-level-3, parallel:charm-applicator-level-4, parallel:chest-hat, parallel:cleric's-cowl, parallel:cooked-bream, parallel:cooked-calamari, parallel:cooked-catfish, parallel:cooked-crab, parallel:cooked-flounder, parallel:cooked-largemouth-bass, parallel:cooked-mackerel, parallel:cooked-magikarp, parallel:cooked-moorish-idol-fish, parallel:cooked-pike, parallel:cooked-red-snapper, parallel:cooked-small-fry, parallel:cooked-speckled-carp, parallel:cooked-striped-bass, parallel:creeper-crunch, parallel:crumpled-parallel-soda-can, parallel:demiromantic-pride-flag, parallel:demisexual-pride-flag, parallel:diamond-donator-crown, parallel:early-supporter-glasses, parallel:eerie-eyeball, parallel:farmer's-straw-hat, parallel:fisherman's-lucky-hat, parallel:fletcher's-feather-hat, parallel:gay-men-pride-flag, parallel:genderfluid-pride-flag, parallel:genderqueer-pride-flag, parallel:glow-squid-hat, parallel:gold-donator-crown, parallel:green-apple-goo, parallel:halloween-candy, parallel:heart-glasses, parallel:intersex-pride-flag, parallel:jellie-cat-hat, parallel:lesbian-pride-flag, parallel:librarian's-book-hat, parallel:maggie-head, parallel:magma-melt, parallel:makeshift-wings, parallel:message-in-a-bottle, parallel:moray-eel, parallel:mysterious-mint, parallel:nectar-bee-hat, parallel:nether-portal-nougat, parallel:new-year's-eve-2020-glasses, parallel:nonbinary-pride-flag, parallel:ocelot-hat, parallel:old-boot, parallel:overflowing-treasure-bundle, parallel:pansexual-pride-flag, parallel:parallel-soda, parallel:persian-cat-hat, parallel:phantasmic-fudge, parallel:pink-plague-doctor-mask, parallel:pirate-hat, parallel:pizza, parallel:pocket-teleporter, parallel:polysexual-pride-flag, parallel:pride-flag, parallel:progress-pride-flag, parallel:pumpkin-hat, parallel:pumpkin-pop, parallel:ragdoll-cat-hat, parallel:ralnthar-roar, parallel:raspberry-rift, parallel:raw-bream, parallel:raw-catfish, parallel:raw-crab, parallel:raw-european-squid, parallel:raw-flounder, parallel:raw-largemouth-bass, parallel:raw-mackerel, parallel:raw-magikarp, parallel:raw-moorish-idol-fish, parallel:raw-pike, parallel:raw-red-snapper, parallel:raw-small-fry, parallel:raw-speckled-carp, parallel:raw-striped-bass, parallel:red-cat-hat, parallel:reindeer-antlers, parallel:rock, parallel:santa-hat-red, parallel:sculk-plague-doctor-mask, parallel:seahorse, parallel:shepherd's-herding-hat, parallel:siamese-cat-hat, parallel:silver-donator-crown, parallel:soul-shard, parallel:squid-hat, parallel:structure-creator-hat, parallel:sushi-roll, parallel:tabby-cat-hat, parallel:tinted-potion-bottle, parallel:top-hat, parallel:totem-of-the-void, parallel:transgender-pride-flag, parallel:treasure-bundle, parallel:treasure-chest, parallel:tuxedo-cat-hat, parallel:unstable-soul-shard, parallel:waders, parallel:weaponsmith's-eyepatch, parallel:white-cat-hat, parallel:white-plague-doctor-mask, parallel:witch-hat, parallel:witch-hat-red, peony-m, pink-petals-m, pink-stained-glass-pane, pink-tulip-m, plenty-pottery-sherd, pointed-dripstone-m, poisonous-potato, polished-basalt, poppy, poppy-m, potato, potato-m, potion-of-healing, potion-of-regeneration, potion-of-strength, potion-of-swiftness, potion-of-water-breathing, powder-snow-bucket-m, powered-rail, prismarine-crystals, prismarine-crystals-m, prismarine-shard-m, prize-pottery-sherd, pufferfish-bucket-m, pumpkin, pumpkin-pie, pumpkin-seeds, pumpkin-seeds-m, purple-candle, purple-stained-glass-pane, rabbit-foot-m, rail, raiser-armor-trim-smithing-template, random-effect-arrow, random-effect-lingering-potion, random-effect-potion, random-effect-splash-potion, random-effect-tipped-arrow, random-enchanted-crossbow, 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, red-candle, red-key, red-mushroom-m, red-stained-glass-pane, red-tulip-m, redstone, redstone-m, resin-brick, resin-clump, rib-armor-trim-smithing-template, rose-bush-m, rotten-flesh, saddle, sand, sand-m, scaffolding, sculk, sculk-catalyst, sculk-catalyst-m, sculk-sensor, sea-pickle-m, sentry-armor-trim-smithing-template, shaper-armor-trim-smithing-template, sheaf-pottery-sherd, shears, sheep-spawn-egg-m, shelter-pottery-sherd, short-grass, silence-armor-trim-smithing-template, skull-pottery-sherd, slimeball-m, smooth-stone, sniffer-egg, sniffer-egg-m, snort-pottery-sherd, snout-armor-trim-smithing-template, snout-banner-pattern, snow-block, snow-block-m, snowball, soul-sand, soul-sand-m, soul-speed-enchanted-golden-boots, soul-torch, spectral-arrow, spider-eye, spider-eye-m, spire-armor-trim-smithing-template, splash-potion-of-poison, splash-potion-of-slowness, splash-potion-of-weakness, spore-blossom-m, spruce-hanging-sign, spruce-log, spruce-sapling, spruce-sapling-m, spruce-sign, spyglass-m, stick, stone, stone-axe, stone-bricks, stone-pickaxe, string, string-m, sugar-cane-m, sunflower-m, suspicious-stew, suspicious-stew-2, sweet-berries, sweet-berries-m, tall-grass, tide-armor-trim-smithing-template, tipped-arrow-poison, tipped-arrow-slowness, tipped-arrow-strong-slowness, tnt, torch, trial-key, trident, tripwire-hook, tube-coral-block-m, tuff, turtle-egg-m, unknown-enchanted-diamond-chestplate, unknown-enchanted-iron-helmet, unknown-enchanted-iron-leggings, unknown-enchanted-iron-pickaxe, unknown-enchanted-iron-shovel, vex-armor-trim-smithing-template, villager-spawn-egg-m, ward-armor-trim-smithing-template, warped-nylium-m, water-bucket, water-bucket-m, wayfinder-armor-trim-smithing-template, wheat, wheat-seeds, wheat-seeds-m, white-dye, white-tulip-m, white-wool, wild-armor-trim-smithing-template, wind-charge, wind-charge-2, wither-skeleton-skull-m, wooden-axe, wooden-hoe, wooden-pickaxe, yellow-dye, yellow-key, yellow-stained-glass-pane
Example
{{#invoke:LootChest|base2|iron-ingot}}
→
Lua error in Module:LootChest at line 393: attempt to concatenate field 'bedrock-upcoming' (a nil value).
{{#invoke:LootChest|base2|emerald}}
→
Emeralds can be found in 31.8% of village armorer chests, 10.2% of village butcher chests, 16.4% of small underwater ruins chests, 12.5% of desert well chests, 12.3% of village fletcher chests, 7.6% of igloo chests, 4.4% of trail ruins chests, 20.8% of village mason chests, 13.3% of warm ocean Ruins chests, 13.3% of cold ocean ruins chests, 14.9% of big underwater ruins chests, 24.2% of village fisherman chests, 12.3% of village shepherd chests, and 12.5% of desert pyramid chests, all in stacks of 1; in 25.4% of village temple chests, 18.6% of taiga village house chests, 21.5% of savanna village house chests, 22.8% of plains village house chests, 9.9% of snowy village house chests, and 17.3% of village tannery chests, all in stacks of 1–4; in 73.7% of shipwreck treasure chests in stacks of 1–5; in 59.9% of buried treasure chests in stacks of 4–8; in 38.4% of trial chambers vault chests in stacks of 2–4; in 14.3% of desert village house chests, 8.7% of jungle pyramid chests, 35.6% of trial chambers corridor pot chests, and 18.0% of desert pyramid chests, all in stacks of 1–3; in 46.3% of parallel:Sunken Treasure chests in stacks of 1–2; in 56.2% of trial chambers ominous vault chests in stacks of 4–10; and in 9.0% of end city chests in stacks of 2–6.
Bedrock Edition they can be found in 31.8% of village armorer chests, 10.2% of village butcher chests, 16.4% of small underwater ruins chests, 12.5% of desert well chests, 12.3% of village fletcher chests, 7.6% of igloo chests, 4.3% of trail ruins chests, 20.8% of village mason chests, 13.3% of warm ocean Ruins chests, 13.3% of cold ocean ruins chests, 14.9% of big underwater ruins chests, 12.3% of village shepherd chests, and 12.5% of desert pyramid chests, all in stacks of 1; in 25.4% of village temple chests, 20.3% of taiga village house chests, 21.5% of savanna village house chests, 22.8% of plains village house chests, 9.9% of snowy village house chests, and 17.3% of village tannery chests, all in stacks of 1–4; in 73.7% of shipwreck treasure chests in stacks of 1–5; in 9.0% of end city chests in stacks of 2–6; in 39.7% of trial chambers vault chests in stacks of 2–4; in 56.2% of trial chambers ominous vault chests in stacks of 4–10; and in 7.1% of stronghold altar chests, 14.3% of desert village house chests, 8.7% of jungle pyramid chests, 35.6% of trial chambers corridor pot chests, and 18.0% of desert pyramid chests, all in stacks of 1–3.
.base3 usage (Template:LootChestItem table)
Prints a summary of this item's availability in the various worldgen chests in the form of a table.
Invoking
It takes exactly one item name as a parameter.
{{#invoke:LootChest|base3|<itemParam>}}
Item parameters
Same as above
Example
{{#invoke:LootChest|base3|emerald}}
→
Item | Structure | Container | Quantity | Chance |
---|---|---|---|---|
Java Edition | ||||
Emerald | File:EnvSprite buried-treasure.pngBuried Treasure | Chest | 4–8 | 59.9%{ "item": "Emerald", "stacksize": "4–8", "chance": 0.5987654320987654, "structure": "Buried Treasure", "container": "Chest" } |
File:EnvSprite desert-temple.pngDesert Pyramid | Suspicious sand | 1 | 12.5%{ "item": "Emerald", "stacksize": 1, "chance": 0.125, "structure": "Desert Pyramid", "container": "Suspicious sand" } | |
Chest | 1–3 | 18%{ "item": "Emerald", "stacksize": "1–3", "chance": 0.18047585032339075, "structure": "Desert Pyramid", "container": "Chest" } | ||
File:EnvSprite desert-well.pngDesert well | Suspicious sand | 1 | 12.5%{ "item": "Emerald", "stacksize": 1, "chance": 0.125, "structure": "Desert well", "container": "Suspicious sand" } | |
File:EnvSprite end-city.pngEnd City | Chest | 2–6 | 9%{ "item": "Emerald", "stacksize": "2–6", "chance": 0.0903321239024858, "structure": "End City", "container": "Chest" } | |
File:EnvSprite igloo.pngIgloo | Chest | 1 | 7.6%{ "item": "Emerald", "stacksize": 1, "chance": 0.07641250360396157, "structure": "Igloo", "container": "Chest" } | |
File:EnvSprite jungle-temple.pngJungle Pyramid | Chest | 1–3 | 8.7%{ "item": "Emerald", "stacksize": "1–3", "chance": 0.08737445137874711, "structure": "Jungle Pyramid", "container": "Chest" } | |
File:EnvSprite ocean-ruins.pngOcean ruins | Warm ruins suspicious sand | 1 | 13.3%{ "item": "Emerald", "stacksize": 1, "chance": 0.1333333333333333, "structure": "Ocean ruins", "container": "Warm ruins suspicious sand" } | |
Cold ruins suspicious gravel | 1 | 13.3%{ "item": "Emerald", "stacksize": 1, "chance": 0.1333333333333333, "structure": "Ocean Ruins", "container": "Cold ruins suspicious gravel" } | ||
File:EnvSprite shipwreck.pngShipwreck | Treasure chest | 1–5 | 73.7%{ "item": "Emerald", "stacksize": "1–5", "chance": 0.7372032702331961, "structure": "Shipwreck", "container": "Treasure chest" } | |
File:EnvSprite sunken-treasure-chest.pngSunken Treasure Chest | sand block | 1–2 | 46.3%{ "item": "Emerald", "stacksize": "1–2", "chance": 0.4625850340136055, "structure": "Sunken Treasure Chest", "container": "sand block" } | |
File:EnvSprite trail-ruins.pngTrail Ruins | Suspicious gravel | 1 | 4.4%{ "item": "Emerald", "stacksize": 1, "chance": 0.0444444444444444, "structure": "Trail Ruins", "container": "Suspicious gravel" } | |
File:EnvSprite trial-chambers.pngTrial Chambers | Vault | 2–4 | 38.4%{ "item": "Emerald", "stacksize": "2–4", "chance": 0.38441636730434786, "structure": "Trial Chambers", "container": "Vault" } | |
Corridor pot | 1–3 | 35.6%{ "item": "Emerald", "stacksize": "1–3", "chance": 0.3561253561253561, "structure": "Trial Chambers", "container": "Corridor pot" } | ||
Ominous Vault | 4–10 | 56.2%{ "item": "Emerald", "stacksize": "4–10", "chance": 0.5621399176954733, "structure": "Trial Chambers", "container": "Ominous Vault" } | ||
File:EnvSprite underwater-ruins.pngUnderwater Ruins | Small ruins chest | 1 | 16.4%{ "item": "Emerald", "stacksize": 1, "chance": 0.16405667897165044, "structure": "Underwater Ruins", "container": "Small ruins chest" } | |
Big ruins chest | 1 | 14.9%{ "item": "Emerald", "stacksize": 1, "chance": 0.14938846197131306, "structure": "Underwater Ruins", "container": "Big ruins chest" } | ||
File:EnvSprite village.pngVillage | Desert house chest | 1–3 | 14.3%{ "item": "Emerald", "stacksize": "1–3", "chance": 0.14254173828500694, "structure": "Village", "container": "Desert house chest" } | |
Tanner's chest | 1–4 | 17.3%{ "item": "Emerald", "stacksize": "1–4", "chance": 0.17258930206298828, "structure": "Village", "container": "Tanner's chest" } | ||
Temple chest | 1–4 | 25.4%{ "item": "Emerald", "stacksize": "1–4", "chance": 0.25406025971014023, "structure": "Village", "container": "Temple chest" } | ||
Plains house chest | 1–4 | 22.8%{ "item": "Emerald", "stacksize": "1–4", "chance": 0.22790559614142292, "structure": "Village", "container": "Plains house chest" } | ||
Mason's chest | 1 | 20.8%{ "item": "Emerald", "stacksize": 1, "chance": 0.20842461344544605, "structure": "Village", "container": "Mason's chest" } | ||
Fletcher's chest | 1 | 12.3%{ "item": "Emerald", "stacksize": 1, "chance": 0.12311565744709374, "structure": "Village", "container": "Fletcher's chest" } | ||
Butcher's chest | 1 | 10.2%{ "item": "Emerald", "stacksize": 1, "chance": 0.10217553744347596, "structure": "Village", "container": "Butcher's chest" } | ||
Snowy house chest | 1–4 | 9.9%{ "item": "Emerald", "stacksize": "1–4", "chance": 0.0989873657501581, "structure": "Village", "container": "Snowy house chest" } | ||
Fisherman's chest | 1 | 24.2%{ "item": "Emerald", "stacksize": 1, "chance": 0.2418426461183103, "structure": "Village", "container": "Fisherman's chest" } | ||
Taiga house chest | 1–4 | 18.6%{ "item": "Emerald", "stacksize": "1–4", "chance": 0.18575629348123335, "structure": "Village", "container": "Taiga house chest" } | ||
Shepherd's chest | 1 | 12.3%{ "item": "Emerald", "stacksize": 1, "chance": 0.12311565744709374, "structure": "Village", "container": "Shepherd's chest" } | ||
Savanna house chest | 1–4 | 21.5%{ "item": "Emerald", "stacksize": "1–4", "chance": 0.21463353884117242, "structure": "Village", "container": "Savanna house chest" } | ||
Armorer's chest | 1 | 31.8%{ "item": "Emerald", "stacksize": 1, "chance": 0.31807250976562496, "structure": "Village", "container": "Armorer's chest" } | ||
Bedrock Edition | ||||
Emerald | File:EnvSprite desert-temple.pngDesert Pyramid | Chest | 1–3 | 18%{ "item": "Emerald", "stacksize": "1–3", "chance": 0.18047585032339075, "structure": "Desert Pyramid", "container": "Chest" } |
Suspicious sand | 1 | 12.5%{ "item": "Emerald", "stacksize": 1, "chance": 0.125, "structure": "Desert Pyramid", "container": "Suspicious sand" } | ||
File:EnvSprite desert-well.pngDesert well | Suspicious sand | 1 | 12.5%{ "item": "Emerald", "stacksize": 1, "chance": 0.125, "structure": "Desert well", "container": "Suspicious sand" } | |
File:EnvSprite end-city.pngEnd City | Chest | 2–6 | 9%{ "item": "Emerald", "stacksize": "2–6", "chance": 0.0903321239024858, "structure": "End City", "container": "Chest" } | |
File:EnvSprite igloo.pngIgloo | Chest | 1 | 7.6%{ "item": "Emerald", "stacksize": 1, "chance": 0.07641250360396157, "structure": "Igloo", "container": "Chest" } | |
File:EnvSprite jungle-temple.pngJungle Pyramid | Chest | 1–3 | 8.7%{ "item": "Emerald", "stacksize": "1–3", "chance": 0.08718413975417527, "structure": "Jungle Pyramid", "container": "Chest" } | |
File:EnvSprite ocean-ruins.pngOcean Ruins | Cold ruins suspicious gravel | 1 | 13.3%{ "item": "Emerald", "stacksize": 1, "chance": 0.1333333333333333, "structure": "Ocean Ruins", "container": "Cold ruins suspicious gravel" } | |
Warm ruins suspicious sand | 1 | 13.3%{ "item": "Emerald", "stacksize": 1, "chance": 0.1333333333333333, "structure": "Ocean ruins", "container": "Warm ruins suspicious sand" } | ||
File:EnvSprite shipwreck.pngShipwreck | Treasure chest | 1–5 | 73.7%{ "item": "Emerald", "stacksize": "1–5", "chance": 0.7372032702331961, "structure": "Shipwreck", "container": "Treasure chest" } | |
File:EnvSprite stronghold.pngStronghold | Altar chest | 1–3 | 7.1%{ "item": "Emerald", "stacksize": "1–3", "chance": 0.07099659856993723, "structure": "Stronghold", "container": "Altar chest" } | |
File:EnvSprite trail-ruins.pngTrail Ruins | Suspicious gravel | 1 | 4.3%{ "item": "Emerald", "stacksize": 1, "chance": 0.04347826086956519, "structure": "Trail Ruins", "container": "Suspicious gravel" } | |
File:EnvSprite trial-chambers.pngTrial Chambers | Corridor pot | 1–3 | 35.6%{ "item": "Emerald", "stacksize": "1–3", "chance": 0.3561253561253561, "structure": "Trial Chambers", "container": "Corridor pot" } | |
Ominous Vault | 4–10 | 56.2%{ "item": "Emerald", "stacksize": "4–10", "chance": 0.5621399176954733, "structure": "Trial Chambers", "container": "Ominous Vault" } | ||
Vault | 2–4 | 39.7%{ "item": "Emerald", "stacksize": "2–4", "chance": 0.39706025182608695, "structure": "Trial Chambers", "container": "Vault" } | ||
File:EnvSprite underwater-ruins.pngUnderwater Ruins | Big ruins chest | 1 | 14.9%{ "item": "Emerald", "stacksize": 1, "chance": 0.14938846197131306, "structure": "Underwater Ruins", "container": "Big ruins chest" } | |
Small ruins chest | 1 | 16.4%{ "item": "Emerald", "stacksize": 1, "chance": 0.16405667897165044, "structure": "Underwater Ruins", "container": "Small ruins chest" } | ||
File:EnvSprite village.pngVillage | Desert house chest | 1–3 | 14.3%{ "item": "Emerald", "stacksize": "1–3", "chance": 0.14254173828500694, "structure": "Village", "container": "Desert house chest" } | |
Tanner's chest | 1–4 | 17.3%{ "item": "Emerald", "stacksize": "1–4", "chance": 0.17258930206298828, "structure": "Village", "container": "Tanner's chest" } | ||
Temple chest | 1–4 | 25.4%{ "item": "Emerald", "stacksize": "1–4", "chance": 0.25406025971014023, "structure": "Village", "container": "Temple chest" } | ||
Plains house chest | 1–4 | 22.8%{ "item": "Emerald", "stacksize": "1–4", "chance": 0.22790559614142292, "structure": "Village", "container": "Plains house chest" } | ||
Fletcher's chest | 1 | 12.3%{ "item": "Emerald", "stacksize": 1, "chance": 0.12311565744709374, "structure": "Village", "container": "Fletcher's chest" } | ||
Butcher's chest | 1 | 10.2%{ "item": "Emerald", "stacksize": 1, "chance": 0.10217553744347596, "structure": "Village", "container": "Butcher's chest" } | ||
Snowy house chest | 1–4 | 9.9%{ "item": "Emerald", "stacksize": "1–4", "chance": 0.0989873657501581, "structure": "Village", "container": "Snowy house chest" } | ||
Mason's chest | 1 | 20.8%{ "item": "Emerald", "stacksize": 1, "chance": 0.20842461344544605, "structure": "Village", "container": "Mason's chest" } | ||
Taiga house chest | 1–4 | 20.3%{ "item": "Emerald", "stacksize": "1–4", "chance": 0.20281509304744794, "structure": "Village", "container": "Taiga house chest" } | ||
Shepherd's chest | 1 | 12.3%{ "item": "Emerald", "stacksize": 1, "chance": 0.12311565744709374, "structure": "Village", "container": "Shepherd's chest" } | ||
Savanna house chest | 1–4 | 21.5%{ "item": "Emerald", "stacksize": "1–4", "chance": 0.21463353884117242, "structure": "Village", "container": "Savanna house chest" } | ||
Armorer's chest | 1 | 31.8%{ "item": "Emerald", "stacksize": 1, "chance": 0.31807250976562496, "structure": "Village", "container": "Armorer's chest" } |
Source
- The data is set up within
p
so that it can be pulled directly from (or compared directly to) the minecraft loot table files. - stack size given here (and given in code) can be larger than the stackable size of the item, prominently in the case of enchanted books. However this fact does not affect the calculated values. This is because the game puts the right number of items, but unstacked rather than stacked.
Data structure
p.items
'<item-id>' = {
- This key must match a sprite name for the items/blocks defined in Template:BlockSprite or Template:ItemSprite, unless
id
is included in the item definition.
- This key must match a sprite name for the items/blocks defined in Template:BlockSprite or Template:ItemSprite, unless
'<sprite-type>'
- Either
item
orblock
.
- Either
[, id='<sprite-id>']
- Use this to specify a sprite defined in Template:BlockSprite or Template:ItemSprite. Otherwise it uses the sprite with the name given by
item-id
.
- Use this to specify a sprite defined in Template:BlockSprite or Template:ItemSprite. Otherwise it uses the sprite with the name given by
[, link='<item-link>']
- A link to a page that is different from the sprite-id name. Used in Template:LootChest.
[, title='<item-text>']
- A name for an item that is different from the sprite-id name.
[, cannot_stack=false]
- Use this to indicate that the item comes in groups rather than in stacks. Used in Template:LootChestItem.
[, plural=(false|'<custom-plural-word>')]
- Use
false
when a word has no plural, like 'Nether Wart'. Use a custom plural word when you cannot simply append an 's' to the base word to make it plural, like 'Bottles o' Enchanting'. Used in Template:LootChestItem.
- Use
[, preserve_case=false]
- Use
false
when an item name should follow the capitalization exactly specified intitle
, and not follow sentence case, like 'TNT'.
- Use
[, note='<note-name>']
- Indicates that a note appears next to this item in the table. (notes are defined directly below the item list)
}
p.notes
'<note-name>' = '<note-full-text>'
p.chests[n].poolsJava[n]
p.chests[n].poolsJavaUpcoming[n]
p.chests[n].poolsBedrock[n]
p.chests[n].poolsBedrockUpcoming[n]
- rolls
{ <min-number-of-stacks>, <max-number-of-stacks> }
p.chests[n].poolsJava[n].items
p.chests[n].poolsJavaUpcoming[n].items
p.chests[n].poolsBedrock[n].items
p.chests[n].poolsBedrockUpcoming[n].items
'<item-id>' = { <min-stack-size>, <max-stack-size>, <item-weight> }
p.synonyms
'<chest-name-synonym>' = '<original-interally-valid-chest-name>'
- Allows additional chest names to be used as parameters, in addition to the ones defined in p.chests.
p.display_names
'<chest-name-given-via-parameter>' = '<name-displayed-in-single-chest-table>'
- If a single chest parameter is used, this defines the name it is called in the summary text above the table.
p.columns
'<column-name>' = '<column-full-description>'
- The column descriptions, found either in the tooltip on the column header, or in the summary text above the table.
Functions
The following functions are made available at the top of the file, for ease of inspection.
calc_average_amount_this_item_per_chest
- average number of a certain item (not number of stacks), per-chest (not per-structure).
calc_chance_any_of_this_item_per_chest
- chance that at least one of a certain item is present, per-chest (not per-structure).
Item tests
{{#invoke:LootChest|base2_test}}
Lua error in Module:LootChest at line 393: attempt to concatenate field 'bedrock-upcoming' (a nil value).
Notes
es:Módulo:LootChest/doc fr:Module:CoffreRécompenses/doc ja:モジュール:LootChest/doc ko:모듈:LootChest/설명문서 pt:Módulo:LootChest/doc uk:Модуль:Здобич зі скринь/док zh:Module:LootChest/doc
Cite error: <ref>
tags exist for a group named "FN", but no corresponding <references group="FN"/>
tag was found