# Modul:LootChest/doc

## Obsah

- 1 .base usage (Template:LootChest)
- 2 .base2 usage (Template:LootChestItem)
- 3 Maintenance
- 4 Test cases
- 4.1 Item tests
- 4.2 Chest tests
- 4.2.1 {{LootChest|dev=1}}
- 4.2.2 {{LootChest|chance}}
- 4.2.3 {{LootChest|chance|dev=1}}
- 4.2.4 {{LootChest|stronghold-altar|stronghold-library|stronghold-storeroom|dev=1}}
- 4.2.5 {{LootChest|altar|library|storeroom|stacksize|chance|dev=1}}
- 4.2.6 {{LootChest|bonus|dev=1}}
- 4.2.7 {{LootChest|desert|dev=1}}
- 4.2.8 {{LootChest|jungle}}
- 4.2.9 {{LootChest|dungeon|dev=1}}
- 4.2.10 {{LootChest|end-city|dev=1}}
- 4.2.11 {{LootChest|igloo|dev=1}}
- 4.2.12 {{LootChest|mineshaft|dev=1}}
- 4.2.13 {{LootChest|nether-fortress|dev=1}}
- 4.2.14 {{LootChest|village|dev=1}}
- 4.2.15 {{LootChest|village|chance|dev=1}}

- 4.3 Notes

## .base usage (Template:LootChest)[editovat zdroj]

Generates a table of the contents of the designated chests, with columns corresponding to various statistics about the availability of those items.

### Invoking[editovat zdroj]

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[editovat zdroj]

bonus,

buried-treasure,

desert-temple ( desert ),

dungeon,

end-city,

igloo,

jungle-temple ( jungle ),

jungle-temple-dispenser,

mineshaft,

nether-fortress ( nether, fortress ),

pillager-outpost ( outpost ),

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[editovat zdroj]

chance: The odds of finding any of this item in a single chest.,

chests: The 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[editovat zdroj]

`{{#invoke:LootChest|base}}`

→ all chests and all columns

`{{#invoke:LootChest|base|blacksmith|jungle|bonus|chance|stacksize}}`

→ only blacksmith and jungle chests, and only 'stacksize' and 'chance' columns

## .base2 usage (Template:LootChestItem)[editovat zdroj]

Prints a summary of this item's availability in the various worldgen chests.

### Invoking[editovat zdroj]

It takes exactly one item name as a parameter.

{{#invoke:LootChest|base2|<itemParam>}}

### Item parameters[editovat zdroj]

acacia-log, acacia-sapling, activator-rail, apple, arrow, bamboo, barrel, beetroot, beetroot-seeds, beetroot-soup, birch-log, birch-sapling, black-wool, blue-ice, bone, book, book-and-quill, bottle-o'-enchanting, bread, brown-mushroom, brown-wool, bucket, buried-treasure-map, cactus, cake, carrot, chainmail-boots, chainmail-chestplate, chainmail-helmet, chainmail-leggings, clay, clock, coal, cocoa-beans, compass, cooked-cod, cooked-salmon, crossbow, dandelion, dark-oak-log, dark-oak-sapling, dead-bush, detector-rail, diamond, diamond-chestplate, diamond-hoe, diamond-horse-armor, disc-13, disc-cat, disc-mellohi, disc-wait, egg, emerald, empty, empty-map, enchanted-book, enchanted-book-rnd, enchanted-book-rnd-treasure, enchanted-diamond-boots, enchanted-diamond-chestplate, enchanted-diamond-helmet, enchanted-diamond-leggings, enchanted-diamond-pickaxe, enchanted-diamond-shovel, enchanted-diamond-sword, enchanted-fishing-rod, enchanted-golden-apple, enchanted-iron-boots, enchanted-iron-chestplate, enchanted-iron-helmet, enchanted-iron-leggings, enchanted-iron-pickaxe, enchanted-iron-shovel, enchanted-iron-sword, enchanted-leather-boots, enchanted-leather-cap, enchanted-leather-pants, enchanted-leather-tunic, ender-pearl, feather, fern, flint, flint-and-steel, flower-pot, furnace, gold-ingot, gold-nugget, golden-apple, golden-chestplate, golden-helmet, golden-horse-armor, 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, light-gray-wool, map, melon-seeds, name-tag, nether-wart, oak-log, oak-planks, oak-sapling, oak-sign, obsidian, paper, poisonous-potato, poppy, potato, potion-of-regeneration, potion-of-water-breathing, powered-rail, prismarine-crystals, pumpkin, pumpkin-pie, pumpkin-seeds, rail, raw-beef, raw-cod, raw-mutton, raw-porkchop, raw-salmon, redstone, rotten-flesh, saddle, sand, shears, smooth-stone, snow-block, snowball, 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[editovat zdroj]

`{{#invoke:LootChest|base2|iron-ingot}}`

→ Iron ingots can be found in 54.2% of village armorer chests and 30.5% of pillager outpost chests in stacks of 1–3; in 23.3% of stronghold altar chests, 41.2% of village toolsmith chests, 97.4% of shipwreck treasure chests, 34.3% of stronghold storeroom chests, 45.1% of village weaponsmith chests, 19.0% of fortress chests, 37.4% of jungle temple chests, 18.0% of desert temple chests, and 31.6% of chest minecarts in Mineshafts, all in stacks of 1–5; in 38.4% of End city chests in stacks of 4–8; and in 18.5% of dungeon chests, 18.5% of woodland mansion chests, and 99.4% of buried treasure chests, all in stacks of 1–4.

In Bedrock Edition they can be found in 57.2% of buried treasure chests in stacks of 3–5, and in 22.6% of stronghold altar chests, 28.5% of stronghold storeroom chests, and 37.3% of jungle temple chests, all in stacks of 1–5.

`{{#invoke:LootChest|base2|emerald}}`

→ Emeralds can be found in 14.9% of big underwater ruins chests, 24.2% of village fisherman chests, 31.8% of village armorer chests, 12.3% of village shepherd chests, 10.2% of village butcher chests, 16.4% of small underwater ruins chests, 12.3% of village fletcher chests, 7.6% of igloo chests, and 20.8% of village mason chests, all in stacks of 1; in 25.4% of village temple chests, 21.5% of savanna village house chests, 9.9% of snowy village house chests, 22.3% of plains village house chests, 18.6% of taiga 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 53.1% of buried treasure chests in stacks of 4–8; in 14.3% of desert village house chests, 8.7% of jungle temple chests, and 18.0% of desert temple chests, all in stacks of 1–3; and in 9.0% of End city chests in stacks of 2–6.

In Bedrock Edition they can be found in 7.2% of stronghold altar chests and 8.7% of jungle temple chests in stacks of 1–3, and in 20.3% of taiga village house chests in stacks of 1–4.

## Maintenance[editovat zdroj]

The tables are current as of 1.8.8 (should be checked/updated to ).

The tables are current as of snapshot 15w47a (should be checked/updated to ).

- The source for 15w47a was the loot table from the .jar. – Sealbudsman
^{talk}/_{contr}22:30, 18 November 2015 (UTC)

### Source[editovat zdroj]

- 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[editovat zdroj]

`p.items`

`'`

*<item-id>*' = { '*<sprite-type>*' [, id='*<sprite-id>*'] [, link='*<item-link>*'] [, title='*<item-text>*'] [, cannot_stack=*false*] [, plural=*(false|'<custom-plural-word>')*] [, note='*<note-name>*'] }

`p.notes`

`'`

*<note-name>*' = '*<note-full-text>*'

`p.chests[n].pools[n]`

`p.chests[n].poolsDev[n]`

- rolls

`{`

*<min-number-of-stacks>*,*<max-number-of-stacks>*}

`p.chests[n].pools[n].items`

`p.chests[n].poolsDev[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.

#### Keys[editovat zdroj]

: A different ID, from Template:ItemSprite or Template:BlockSprite.*id*

: A link to a page that is different from the sprite-id name.*link*

: A name for an item that is different from the sprite-id name.*title*

: Indicates that a note will appear next to this item in the table.*note*

: used in LootChestItem. Use this to indicate that the item comes in groups rather than in stacks.*cannot_stack*

: used in LootChestItem. Use*plural*

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.*false*

#### Values[editovat zdroj]

: these must match a sprite name for the items/block as defined in Module:BlockSprite/IDs or Module:ItemSprite/IDs, unless*<item-id>*

is included in the item definition.*id*

: these must match a sprite name for the items/block as defined in Module:BlockSprite/IDs or Module:ItemSprite/IDs.*<sprite-id>*

: either*<sprite-type>*

or*item**block*

### Functions[editovat zdroj]

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 will be found, per-chest (not per-structure).

- chance that

## Test cases[editovat zdroj]

### Item tests[editovat zdroj]

Acacia logs can be found in 28.0% of bonus chests in stacks of 1–3.

In Bedrock Edition they can be found in 50.0% of bonus chests in stacks of 1–3.

Acacia saplings can be found in 71.7% of savanna village house chests in stacks of 1–2.

In Bedrock Edition they can be found in 16.7% of bonus chests in stacks of 4.

Activator rails can be found in 27.1% of chest minecarts in Mineshafts in stacks of 1–4.

Apples can be found in 33.5% of stronghold altar chests, 47.5% of stronghold storeroom chests, 59.8% of village weaponsmith chests, and 70.4% of igloo chests, all in stacks of 1–3; in 73.4% of plains village house chests in stacks of 1–5; and in 83.8% of bonus chests in stacks of 1–2.

In Bedrock Edition they can be found in 32.5% of stronghold altar chests and 40.0% of stronghold storeroom chests in stacks of 1–3, and in all bonus chests in stacks of 1–2.

Arrows can be found in 23.3% of village fletcher chests in stacks of 1–3, and in all dispensers in jungle temples and 39.1% of pillager outpost chests in stacks of 2–7.

Bamboo can be found in 15.6% of shipwreck supply chests and 51.0% of jungle temple chests in stacks of 1–3.

In Bedrock Edition they can be found in 17.7% of shipwreck supply chests and 50.9% of jungle temple chests in stacks of 1–3.

Barrels can be found in 24.2% of village fisherman chests in stacks of 1–3.

Beetroot seeds can be found in 18.5% of dungeon chests, 31.6% of chest minecarts in Mineshafts, and 18.5% of woodland mansion chests, all in stacks of 2–4; in 21.2% of End city chests in stacks of 1–10; and in 66.3% of snowy village house chests in stacks of 1–5.

In Bedrock Edition they can be found in 33.3% of bonus chests in stacks of 1–2.

Beetroot soup can be found in 9.9% of snowy village house chests in groups of 1.

Birch logs can be found in 28.0% of bonus chests in stacks of 1–3.

In Bedrock Edition they can be found in 25.0% of bonus chests in stacks of 1–3.

Black wool can be found in 33.0% of village shepherd chests in stacks of 1–3.

Blue ice can be found in 9.9% of snowy village house chests in stacks of 1.

Bones can be found in 61.9% of jungle temple chests and 28.7% of desert temple chests in stacks of 4–6, and in 57.8% of dungeon chests, 59.0% of desert temple chests, and 57.8% of woodland mansion chests, all in stacks of 1–8.

In Bedrock Edition they can be found in 61.8% of jungle temple chests in stacks of 4–6.

Books can be found in 14.3% of desert village house chests and 11.8% of plains village house chests in stacks of 1, in 89.2% of stronghold library chests in stacks of 1–3, and in 34.5% of shipwreck map chests in stacks of 1–5.

In Bedrock Edition they can be found in 88.3% of stronghold library chests in stacks of 1–3.

Bottles o' enchanting can be found in 14.1% of shipwreck treasure chests and 60.9% of pillager outpost chests in stacks of 1.

In Bedrock Edition they can be found in 11.8% of buried treasure chests in stacks of 1.

Bread can be found in 34.1% of dungeon chests and 34.1% of woodland mansion chests in stacks of 1; in 33.5% of stronghold altar chests, 81.2% of village toolsmith chests, 47.5% of stronghold storeroom chests, 59.8% of village weaponsmith chests, and 44.3% of chest minecarts in Mineshafts, all in stacks of 1–3; in 61.5% of bonus chests in stacks of 1–2; and in 89.3% of village temple chests, 80.6% of village armorer chests, 80.6% of desert village house chests, 61.2% of village cartographer chests, 71.7% of savanna village house chests, 66.3% of snowy village house chests, 73.4% of plains village house chests, 62.2% of village mason chests, 65.6% of taiga village house chests, and 62.8% of village tannery chests, all in stacks of 1–4.

In Bedrock Edition they can be found in 69.3% of taiga village house chests in stacks of 1–4, in all bonus chests in stacks of 1–2, and in 32.5% of stronghold altar chests and 40.0% of stronghold storeroom chests in stacks of 1–3.

Brown wool can be found in 23.3% of village shepherd chests in stacks of 1–3.

Buckets can be found in 18.5% of dungeon chests, 11.3% of savanna village house chests, and 18.5% of woodland mansion chests, all in stacks of 1.

Buried treasure maps can be found in 43.5% of big underwater ruins chests, 41.7% of small underwater ruins chests, and all shipwreck map chests, all in stacks of 1.

Cactus can be found in 80.6% of desert village house chests in stacks of 1–4.

In Bedrock Edition they can be found in 50.0% of bonus chests in stacks of 1–2.

Carrots can be found in 44.9% of shipwreck supply chests in stacks of 4–8, and in 57.5% of pillager outpost chests in stacks of 3–5.

In Bedrock Edition they can be found in 49.6% of shipwreck supply chests in stacks of 4–8, and in 50.0% of bonus chests in stacks of 1–2.

Chainmail chestplates can be found in 14.9% of woodland mansion chests in groups of 1.

In Bedrock Edition they can be found in 14.7% of woodland mansion chests and 57.2% of buried treasure chests in groups of 1.

Clay can be found in 14.3% of desert village house chests in stacks of 1, and in 20.8% of village mason chests in stacks of 1–3.

Clocks can be found in 7.7% of shipwreck map chests in stacks of 1.

Coal can be found in 43.0% of village fisherman chests, 9.9% of village toolsmith chests, and 27.9% of village butcher chests, all in stacks of 1–3; in 40.0% of shipwreck supply chests in stacks of 2–8; in 81.0% of big underwater ruins chests, 84.2% of small underwater ruins chests, 26.6% of dungeon chests, 70.4% of igloo chests, 41.2% of snowy village house chests, and 26.6% of woodland mansion chests, all in stacks of 1–4; and in 34.3% of stronghold storeroom chests and 31.6% of chest minecarts in Mineshafts in stacks of 3–8.

In Bedrock Edition they can be found in 44.4% of shipwreck supply chests in stacks of 2–8, and in 28.5% of stronghold storeroom chests in stacks of 3–8.

Compasses can be found in 7.7% of shipwreck map chests, 26.3% of village cartographer chests, and 10.9% of stronghold library chests, all in stacks of 1.

In Bedrock Edition they can be found in 10.5% of stronghold library chests in stacks of 1.

Cooked cod can be found in 75.0% of buried treasure chests in stacks of 2–4.

Cooked salmon can be found in 75.0% of buried treasure chests in stacks of 2–4.

Crossbows can be found in all pillager outpost chests in groups of 1.

Dandelions can be found in 22.3% of plains village house chests in stacks of 1.

Dark oak logs can be found in 28.0% of bonus chests in stacks of 1–3, and in all pillager outpost chests in stacks of 2–3.

In Bedrock Edition they can be found in 50.0% of bonus chests in stacks of 1–3.

Dead bushes can be found in 26.6% of desert village house chests in stacks of 1–3.

Detector rails can be found in 27.1% of chest minecarts in Mineshafts in stacks of 1–4.

Diamond chestplates can be found in 7.7% of woodland mansion chests in groups of 1.

In Bedrock Edition they can be found in 7.6% of woodland mansion chests in groups of 1.

Diamond hoes can be found in 21.8% of woodland mansion chests in groups of 1.

In Bedrock Edition they can be found in 21.5% of woodland mansion chests in groups of 1.

Diamond horse armor can be found in 2.5% of stronghold altar chests, 5.7% of village weaponsmith chests, 7.7% of dungeon chests, 11.8% of fortress chests, 4.5% of jungle temple chests, 6.3% of desert temple chests, and 4.6% of End city chests, all in groups of 1.

In Bedrock Edition they can be found in 2.4% of stronghold altar chests and 4.4% of jungle temple chests in groups of 1.

Diamonds can be found in 14.1% of shipwreck treasure chests in stacks of 1; in 7.4% of stronghold altar chests, 9.9% of village toolsmith chests, 16.2% of village weaponsmith chests, 19.0% of fortress chests, 12.9% of jungle temple chests, and 6.3% of desert temple chests, all in stacks of 1–3; in 10.4% of chest minecarts in Mineshafts and 53.1% of buried treasure chests in stacks of 1–2; and in 21.2% of End city chests in stacks of 2–7.

In Bedrock Edition they can be found in 46.9% of buried treasure chests in stacks of 1, and in 7.2% of stronghold altar chests and 12.8% of jungle temple chests in stacks of 1–3.

Eggs can be found in 23.3% of village fletcher chests in stacks of 1–3.

Emeralds can be found in 14.9% of big underwater ruins chests, 24.2% of village fisherman chests, 31.8% of village armorer chests, 12.3% of village shepherd chests, 10.2% of village butcher chests, 16.4% of small underwater ruins chests, 12.3% of village fletcher chests, 7.6% of igloo chests, and 20.8% of village mason chests, all in stacks of 1; in 25.4% of village temple chests, 21.5% of savanna village house chests, 9.9% of snowy village house chests, 22.3% of plains village house chests, 18.6% of taiga 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 53.1% of buried treasure chests in stacks of 4–8; in 14.3% of desert village house chests, 8.7% of jungle temple chests, and 18.0% of desert temple chests, all in stacks of 1–3; and in 9.0% of End city chests in stacks of 2–6.

In Bedrock Edition they can be found in 7.2% of stronghold altar chests and 8.7% of jungle temple chests in stacks of 1–3, and in 20.3% of taiga village house chests in stacks of 1–4.

Empty maps can be found in 7.7% of shipwreck map chests and 10.9% of stronghold library chests in stacks of 1, and in 46.2% of village cartographer chests in stacks of 1–3.

Enchanted books^{[note 3]} can be found in 2.5% of stronghold altar chests, 4.0% of stronghold storeroom chests, 4.5% of jungle temple chests, and 67.8% of stronghold library chests, all in groups of 1.

In Bedrock Edition they can be found in 2.9% of stronghold altar chests, 3.8% of stronghold storeroom chests, 5.3% of jungle temple chests, and 72.9% of stronghold library chests, all in groups of 1.

Enchanted books^{[note 4]} can be found in 21.7% of big underwater ruins chests, 14.9% of dungeon chests, 23.5% of desert temple chests, 11.0% of pillager outpost chests, 14.1% of chest minecarts in Mineshafts, and 14.9% of woodland mansion chests, all in groups of 1.

Enchanted diamond boots^{[note 2]} can be found in 13.3% of End city chests in groups of 1.

Enchanted diamond chestplates^{[note 2]} can be found in 13.3% of End city chests in groups of 1.

Enchanted diamond helmets^{[note 2]} can be found in 13.3% of End city chests in groups of 1.

Enchanted diamond leggings^{[note 2]} can be found in 13.3% of End city chests in groups of 1.

Enchanted diamond pickaxes^{[note 2]} can be found in 13.3% of End city chests in groups of 1.

Enchanted diamond shovels^{[note 2]} can be found in 13.3% of End city chests in groups of 1.

Enchanted diamond swords^{[note 2]} can be found in 13.3% of End city chests in groups of 1.

Enchanted fishing rods^{[note 4]} can be found in 21.7% of big underwater ruins chests and 41.7% of small underwater ruins chests in groups of 1.

Enchanted golden apples can be found in 3.1% of dungeon chests, 2.6% of desert temple chests, 1.4% of chest minecarts in Mineshafts, and 3.1% of woodland mansion chests, all in stacks of 1.

In Bedrock Edition they can be found in 3.1% of woodland mansion chests in stacks of 1.

Enchanted iron boots^{[note 2]} can be found in 13.3% of End city chests in groups of 1.

Enchanted iron chestplates^{[note 2]} can be found in 13.3% of End city chests in groups of 1.

Enchanted iron helmets^{[note 2]} can be found in 13.3% of End city chests in groups of 1.

Enchanted iron leggings^{[note 2]} can be found in 13.3% of End city chests in groups of 1.

Enchanted iron pickaxes^{[note 2]} can be found in 13.3% of End city chests in groups of 1.

Enchanted iron shovels^{[note 2]} can be found in 13.3% of End city chests in groups of 1.

Enchanted iron swords^{[note 2]} can be found in 13.3% of End city chests in groups of 1.

Enchanted leather boots^{[note 4]} can be found in 22.4% of shipwreck supply chests in groups of 1.

In Bedrock Edition they can be found in 25.3% of shipwreck supply chests in groups of 1.

Enchanted leather caps^{[note 4]} can be found in 22.4% of shipwreck supply chests in groups of 1.

In Bedrock Edition they can be found in 25.3% of shipwreck supply chests in groups of 1.

Enchanted leather pants^{[note 4]} can be found in 22.4% of shipwreck supply chests in groups of 1.

In Bedrock Edition they can be found in 25.3% of shipwreck supply chests in groups of 1.

Enchanted leather tunics^{[note 4]} can be found in 22.4% of shipwreck supply chests in groups of 1.

In Bedrock Edition they can be found in 25.3% of shipwreck supply chests in groups of 1.

Ender pearls can be found in 23.3% of stronghold altar chests in stacks of 1.

In Bedrock Edition they can be found in 22.6% of stronghold altar chests in stacks of 1.

Feathers can be found in 11.8% of plains village house chests in stacks of 1, in 55.8% of village fletcher chests in stacks of 1–3, and in 60.0% of shipwreck map chests in stacks of 1–5.

Ferns can be found in 18.6% of taiga village house chests in stacks of 1.

In Bedrock Edition they can be found in 20.3% of taiga village house chests in stacks of 1.

Flint and steel can be found in 19.0% of fortress chests in groups of 1.

Flint can be found in 55.8% of village fletcher chests in stacks of 1–3.

Flower pots can be found in 20.8% of village mason chests in stacks of 1.

Furnaces can be found in 9.9% of snowy village house chests in stacks of 1.

Gold ingots can be found in 25.4% of village temple chests, 9.6% of dungeon chests, 9.6% of woodland mansion chests, and 88.0% of buried treasure chests, all in stacks of 1–4; in 26.5% of shipwreck treasure chests in stacks of 1–5; in 51.0% of jungle temple chests, 18.0% of desert temple chests, and 52.3% of End city chests, all in stacks of 2–7; and in 12.1% of stronghold altar chests, 9.9% of village toolsmith chests, 18.6% of stronghold storeroom chests, 25.6% of village weaponsmith chests, 49.0% of fortress chests, and 16.9% of chest minecarts in Mineshafts, all in stacks of 1–3.

In Bedrock Edition they can be found in 11.8% of stronghold altar chests and 15.2% of stronghold storeroom chests in stacks of 1–3, in 34.3% of buried treasure chests in stacks of 1–5, and in 50.9% of jungle temple chests in stacks of 2–7.

Gold nuggets can be found in 81.0% of big underwater ruins chests, 55.3% of igloo chests, 11.3% of savanna village house chests, and 11.8% of plains village house chests, all in stacks of 1–3; and in 36.6% of shipwreck treasure chests in stacks of 1–10.

Golden apples can be found in 2.5% of stronghold altar chests, 4.3% of big underwater ruins chests, 21.8% of dungeon chests, all igloo chests, 23.5% of desert temple chests, 28.2% of chest minecarts in Mineshafts, and 21.8% of woodland mansion chests, all in stacks of 1.

In Bedrock Edition they can be found in 2.4% of stronghold altar chests and 21.5% of woodland mansion chests in stacks of 1.

Golden chestplates can be found in 19.0% of fortress chests in groups of 1.

Golden helmets can be found in 4.3% of big underwater ruins chests and 8.3% of small underwater ruins chests in groups of 1.

Golden horse armor can be found in 2.5% of stronghold altar chests, 5.7% of village weaponsmith chests, 14.9% of dungeon chests, 29.1% of fortress chests, 4.5% of jungle temple chests, 12.3% of desert temple chests, and 4.6% of End city chests, all in groups of 1.

In Bedrock Edition they can be found in 2.4% of stronghold altar chests and 4.4% of jungle temple chests in groups of 1.

Golden swords can be found in 19.0% of fortress chests in groups of 1.

Grass can be found in 45.9% of savanna village house chests in stacks of 1.

Gray wool can be found in 23.3% of village shepherd chests in stacks of 1–3.

Green dye can be found in 14.3% of desert village house chests in stacks of 1.

Gunpowder can be found in 22.4% of shipwreck supply chests in stacks of 1–5, and in 57.8% of dungeon chests, 59.0% of desert temple chests, and 57.8% of woodland mansion chests, all in stacks of 1–8.

In Bedrock Edition they can be found in 25.3% of shipwreck supply chests in stacks of 1–5.

Heart of the sea can be found in all buried treasure chests in stacks of 1.

In Bedrock Edition Potion of Regeneration can be found in 34.3% of buried treasure chests in stacks of 1.

In Bedrock Edition Potion of Water Breathing can be found in 46.9% of buried treasure chests in stacks of 1.

In Bedrock Edition birch saplings can be found in 16.7% of bonus chests in stacks of 4.

In Bedrock Edition book and quill can be found in 18.9% of buried treasure chests in stacks of 1–2.

In Bedrock Edition brown mushrooms can be found in all bonus chests in stacks of 1–2.

In Bedrock Edition cake can be found in 4.1% of buried treasure chests in stacks of 1.

In Bedrock Edition chainmail boots can be found in 57.2% of buried treasure chests in groups of 1.

In Bedrock Edition chainmail helmets can be found in 57.2% of buried treasure chests in groups of 1.

In Bedrock Edition chainmail leggings can be found in 57.2% of buried treasure chests in groups of 1.

In Bedrock Edition cocoa beans can be found in 50.0% of bonus chests in stacks of 1–2.

In Bedrock Edition dark oak saplings can be found in 16.7% of bonus chests in stacks of 4.

In Bedrock Edition enchanted books^{[note 1]} can be found in 17.5% of woodland mansion chests in groups of 1.

In Bedrock Edition ink sacs can be found in 40.0% of stronghold storeroom chests in stacks of 1–3.

In Bedrock Edition jungle saplings can be found in 16.7% of bonus chests in stacks of 4.

In Bedrock Edition maps^{[note 5]} can be found in 7.7% of shipwreck map chests and 10.5% of stronghold library chests in stacks of 1, and in 46.2% of village cartographer chests in stacks of 1–3.

In Bedrock Edition music disc (mellohi) can be found in 18.9% of buried treasure chests in groups of 1.

In Bedrock Edition music disc (wait) can be found in 18.9% of buried treasure chests in groups of 1.

In Bedrock Edition oak signs can be found in 10.7% of taiga village house chests in stacks of 1.

Iron boots can be found in 12.1% of stronghold altar chests and 25.6% of village weaponsmith chests in groups of 1.

In Bedrock Edition they can be found in 11.8% of stronghold altar chests in groups of 1.

Iron chestplates can be found in 12.1% of stronghold altar chests and 25.6% of village weaponsmith chests in groups of 1.

In Bedrock Edition they can be found in 11.8% of stronghold altar chests in groups of 1.

Iron helmets can be found in 12.1% of stronghold altar chests, 31.8% of village armorer chests, and 25.6% of village weaponsmith chests, all in groups of 1.

In Bedrock Edition they can be found in 11.8% of stronghold altar chests in groups of 1.

Iron horse armor can be found in 2.5% of stronghold altar chests, 5.7% of village weaponsmith chests, 21.8% of dungeon chests, 19.0% of fortress chests, 4.5% of jungle temple chests, 18.0% of desert temple chests, and 4.6% of End city chests, all in groups of 1.

In Bedrock Edition they can be found in 2.4% of stronghold altar chests and 4.4% of jungle temple chests in groups of 1.

Iron ingots can be found in 54.2% of village armorer chests and 30.5% of pillager outpost chests in stacks of 1–3; in 23.3% of stronghold altar chests, 41.2% of village toolsmith chests, 97.4% of shipwreck treasure chests, 34.3% of stronghold storeroom chests, 45.1% of village weaponsmith chests, 19.0% of fortress chests, 37.4% of jungle temple chests, 18.0% of desert temple chests, and 31.6% of chest minecarts in Mineshafts, all in stacks of 1–5; in 38.4% of End city chests in stacks of 4–8; and in 18.5% of dungeon chests, 18.5% of woodland mansion chests, and 99.4% of buried treasure chests, all in stacks of 1–4.

In Bedrock Edition they can be found in 57.2% of buried treasure chests in stacks of 3–5, and in 22.6% of stronghold altar chests, 28.5% of stronghold storeroom chests, and 37.3% of jungle temple chests, all in stacks of 1–5.

Iron leggings can be found in 12.1% of stronghold altar chests and 25.6% of village weaponsmith chests in groups of 1.

In Bedrock Edition they can be found in 11.8% of stronghold altar chests in groups of 1.

Iron nuggets can be found in 9.7% of taiga village house chests in stacks of 1–5, and in 94.5% of shipwreck treasure chests in stacks of 1–10.

In Bedrock Edition they can be found in 10.7% of taiga village house chests in stacks of 1–5.

Iron pickaxes can be found in 12.1% of stronghold altar chests, 41.2% of village toolsmith chests, 4.0% of stronghold storeroom chests, 25.6% of village weaponsmith chests, and 7.0% of chest minecarts in Mineshafts, all in groups of 1.

In Bedrock Edition they can be found in 11.8% of stronghold altar chests and 3.2% of stronghold storeroom chests in groups of 1.

Iron shovels can be found in 41.2% of village toolsmith chests in groups of 1.

Iron swords can be found in 12.1% of stronghold altar chests, 25.6% of village weaponsmith chests, and 75.0% of buried treasure chests, all in groups of 1.

In Bedrock Edition they can be found in 11.8% of stronghold altar chests in groups of 1.

Jungle logs can be found in 28.0% of bonus chests in stacks of 1–3.

In Bedrock Edition they can be found in 25.0% of bonus chests in stacks of 1–3.

Lapis lazuli can be found in 25.4% of village temple chests in stacks of 1–4, in 61.5% of shipwreck treasure chests in stacks of 1–10, and in 16.9% of chest minecarts in Mineshafts in stacks of 4–9.

Large ferns can be found in 18.6% of taiga village house chests in stacks of 1.

In Bedrock Edition they can be found in 20.3% of taiga village house chests in stacks of 1.

Leads can be found in 28.3% of woodland mansion chests in stacks of 1.

In Bedrock Edition they can be found in 27.9% of woodland mansion chests in stacks of 1, and in 34.3% of buried treasure chests in stacks of 1–3.

Leather boots can be found in 31.8% of village tannery chests in groups of 1.

Leather can be found in 17.3% of village tannery chests in stacks of 1–3.

Leather caps can be found in 31.8% of village tannery chests in groups of 1.

Leather pants can be found in 31.8% of village tannery chests in groups of 1.

Leather tunics can be found in 4.3% of big underwater ruins chests, 8.3% of small underwater ruins chests, 75.0% of buried treasure chests, and 31.8% of village tannery chests, all in groups of 1.

Light gray wool can be found in 23.3% of village shepherd chests in stacks of 1–3.

Melon seeds can be found in 18.5% of dungeon chests, 31.6% of chest minecarts in Mineshafts, and 18.5% of woodland mansion chests, all in stacks of 2–4.

In Bedrock Edition they can be found in 33.3% of bonus chests in stacks of 1–2.

Music disc (13) can be found in 21.8% of dungeon chests and 21.8% of woodland mansion chests in groups of 1.

In Bedrock Edition they can be found in 21.5% of woodland mansion chests in groups of 1.

Music disc (cat) can be found in 21.8% of dungeon chests and 21.8% of woodland mansion chests in groups of 1.

In Bedrock Edition they can be found in 21.5% of woodland mansion chests in groups of 1.

Name tags can be found in 28.3% of dungeon chests, 42.3% of chest minecarts in Mineshafts, and 28.3% of woodland mansion chests, all in stacks of 1.

In Bedrock Edition they can be found in 27.9% of woodland mansion chests and 34.3% of buried treasure chests in stacks of 1.

Nether wart can be found in 19.0% of fortress chests in stacks of 3–7.

Nothing^{[note 6]} can be found in 18.0% of desert temple chests and 7.0% of chest minecarts in Mineshafts in stacks of 1.

Oak logs can be found in 28.0% of bonus chests in stacks of 1–3.

In Bedrock Edition they can be found in 25.0% of bonus chests in stacks of 1–3.

Oak planks can be found in 70.5% of bonus chests in stacks of 1–12.

In Bedrock Edition they can be found in all bonus chests in stacks of 1–12.

Oak saplings can be found in 47.4% of plains village house chests in stacks of 1–2, and in 25.6% of village weaponsmith chests in stacks of 3–7.

In Bedrock Edition they can be found in 16.7% of bonus chests in stacks of 4, and in 26.3% of village cartographer chests in stacks of 1–2.

Obsidian can be found in 8.0% of fortress chests in stacks of 2–4, and in 25.6% of village weaponsmith chests in stacks of 3–7.

Paper can be found in 49.4% of shipwreck supply chests in stacks of 1–12, in 89.4% of shipwreck map chests in stacks of 1–10, in 89.2% of stronghold library chests in stacks of 2–7, and in 61.2% of village cartographer chests in stacks of 1–5.

In Bedrock Edition they can be found in 54.4% of shipwreck supply chests in stacks of 1–12, and in 88.3% of stronghold library chests in stacks of 2–7.

Poisonous potatoes can be found in 44.9% of shipwreck supply chests in stacks of 2–6.

In Bedrock Edition they can be found in 49.6% of shipwreck supply chests in stacks of 2–6.

Poppies can be found in 22.3% of plains village house chests in stacks of 1.

Potatoes can be found in 44.9% of shipwreck supply chests in stacks of 2–6; in 66.3% of snowy village house chests, 73.4% of plains village house chests, and 65.6% of taiga village house chests, all in stacks of 1–7; and in 57.5% of pillager outpost chests in stacks of 2–5.

In Bedrock Edition they can be found in 49.6% of shipwreck supply chests in stacks of 2–6, in 69.3% of taiga village house chests in stacks of 1–7, and in 50.0% of bonus chests in stacks of 1–2.

Powered rails can be found in 27.1% of chest minecarts in Mineshafts in stacks of 1–4.

Prismarine crystals can be found in 53.1% of buried treasure chests in stacks of 1–5.

In Bedrock Edition they can be found in 18.9% of buried treasure chests in stacks of 1–5.

Pumpkin pie can be found in 9.7% of taiga village house chests in stacks of 1.

In Bedrock Edition they can be found in 10.7% of taiga village house chests in stacks of 1.

Pumpkin seeds can be found in 40.6% of taiga village house chests in stacks of 1–5, and in 18.5% of dungeon chests, 31.6% of chest minecarts in Mineshafts, and 18.5% of woodland mansion chests, all in stacks of 2–4.

In Bedrock Edition they can be found in 33.3% of bonus chests in stacks of 1–2, and in 43.7% of taiga village house chests in stacks of 1–5.

Pumpkins can be found in 15.6% of shipwreck supply chests in stacks of 1–3.

In Bedrock Edition they can be found in 17.7% of shipwreck supply chests in stacks of 1–3.

Rails can be found in 78.4% of chest minecarts in Mineshafts in stacks of 4–8.

Raw beef can be found in 48.6% of village butcher chests in stacks of 1–3.

Raw cod can be found in 43.0% of village fisherman chests in stacks of 1–3.

Raw mutton can be found in 48.6% of village butcher chests in stacks of 1–3.

Raw porkchops can be found in 48.6% of village butcher chests in stacks of 1–3.

Raw salmon can be found in 24.2% of village fisherman chests in stacks of 1–3, and in 61.5% of bonus chests in stacks of 1–2.

In Bedrock Edition they can be found in all bonus chests in stacks of 1–2.

Redstone dust can be found in 44.8% of village temple chests, 26.6% of dungeon chests, and 26.6% of woodland mansion chests, all in stacks of 1–4; and in 12.1% of stronghold altar chests, 18.6% of stronghold storeroom chests, and 16.9% of chest minecarts in Mineshafts, all in stacks of 4–9.

In Bedrock Edition they can be found in 11.8% of stronghold altar chests and 15.2% of stronghold storeroom chests in stacks of 4–9.

Rotten flesh can be found in 59.6% of small underwater ruins chests and 55.3% of igloo chests in stacks of 1; in 89.3% of village temple chests in stacks of 1–4; in 57.8% of dungeon chests, 59.0% of desert temple chests, and 57.8% of woodland mansion chests, all in stacks of 1–8; in 34.6% of shipwreck supply chests in stacks of 5–24; and in 53.4% of jungle temple chests and 28.7% of desert temple chests in stacks of 3–7.

In Bedrock Edition they can be found in 53.3% of jungle temple chests in stacks of 3–7, and in 38.6% of shipwreck supply chests in stacks of 5–24.

Saddles can be found in 2.5% of stronghold altar chests, 16.2% of village weaponsmith chests, 28.3% of dungeon chests, 11.3% of savanna village house chests, 35.3% of fortress chests, 12.9% of jungle temple chests, 23.5% of desert temple chests, 13.3% of End city chests, and 17.3% of village tannery chests, all in groups of 1.

In Bedrock Edition they can be found in 2.4% of stronghold altar chests and 12.8% of jungle temple chests in groups of 1.

Sand can be found in 59.0% of desert temple chests in stacks of 1–8.

Shears can be found in 12.3% of village shepherd chests in groups of 1.

Smooth stone can be found in 20.8% of village mason chests in stacks of 1.

Snow blocks can be found in 34.5% of snowy village house chests in stacks of 1.

Snowballs can be found in 66.3% of snowy village house chests in stacks of 1–7.

Spider eyes can be found in 28.7% of desert temple chests in stacks of 1–3.

Spruce logs can be found in 28.0% of bonus chests in stacks of 1–3, and in 65.6% of taiga village house chests in stacks of 1–5.

In Bedrock Edition they can be found in 25.0% of bonus chests in stacks of 1–3, and in 69.3% of taiga village house chests in stacks of 1–5.

Spruce saplings can be found in 40.6% of taiga village house chests in stacks of 1–5.

In Bedrock Edition they can be found in 16.7% of bonus chests in stacks of 4, and in 43.7% of taiga village house chests in stacks of 1–5.

Spruce signs can be found in 9.7% of taiga village house chests in stacks of 1.

Sticks can be found in 90.0% of village toolsmith chests and 55.8% of village fletcher chests in stacks of 1–3, in 26.3% of village cartographer chests in stacks of 1–2, and in 70.5% of bonus chests in stacks of 1–12.

In Bedrock Edition they can be found in all bonus chests in stacks of 1–12.

Stone axes can be found in 30.2% of small underwater ruins chests, 14.7% of igloo chests, and 25.0% of bonus chests, all in groups of 1.

Stone bricks can be found in 37.7% of village mason chests in stacks of 1.

Stone can be found in 37.7% of village mason chests in stacks of 1.

Stone pickaxes can be found in 25.0% of bonus chests in groups of 1.

String can be found in 39.1% of pillager outpost chests in stacks of 1–6, and in 57.8% of dungeon chests, 59.0% of desert temple chests, and 57.8% of woodland mansion chests, all in stacks of 1–8.

Suspicious stew^{[note 7]} can be found in 57.4% of shipwreck supply chests in stacks of 1.

Sweet berries can be found in 40.6% of taiga village house chests in stacks of 1–7.

TNT can be found in 8.1% of shipwreck supply chests and 62.7% of buried treasure chests in stacks of 1–2.

In Bedrock Edition they can be found in 9.3% of shipwreck supply chests and 34.3% of buried treasure chests in stacks of 1–2.

Tall grass can be found in 45.9% of savanna village house chests in stacks of 1.

Torches can be found in 65.7% of chest minecarts in Mineshafts in stacks of 1–16, and in 11.3% of savanna village house chests in stacks of 1–2.

Tripwire hooks can be found in 30.5% of pillager outpost chests in stacks of 1–3.

Water buckets can be found in 24.2% of village fisherman chests in groups of 1–3.

Wheat can be found in 34.1% of dungeon chests and 34.1% of woodland mansion chests in stacks of 1–4; in 80.6% of desert village house chests in stacks of 1–7; in 81.0% of big underwater ruins chests, 84.2% of small underwater ruins chests, and 55.3% of igloo chests, all in stacks of 2–3; in 48.6% of village butcher chests in stacks of 1–3; in 72.5% of pillager outpost chests in stacks of 3–5; in 44.9% of shipwreck supply chests in stacks of 8–21; and in 55.8% of village shepherd chests in stacks of 1–6.

In Bedrock Edition they can be found in 49.6% of shipwreck supply chests in stacks of 8–21.

Wheat seeds can be found in 57.5% of village fisherman chests in stacks of 1–3, and in 71.7% of savanna village house chests in stacks of 1–5.

White wool can be found in 55.8% of village shepherd chests in stacks of 1–8.

Wooden axes can be found in 75.0% of bonus chests in groups of 1.

Wooden pickaxes can be found in 75.0% of bonus chests in groups of 1.

Yellow dye can be found in 20.8% of village mason chests in stacks of 1.

### Chest tests[editovat zdroj]

#### {{LootChest|dev=1}}[editovat zdroj]

**Chyba Lua v modulu Modul:Sprite na řádku 137: attempt to concatenate local 'name' (a nil value).**

#### {{LootChest|chance}}[editovat zdroj]

**Chyba Lua v modulu Modul:Sprite na řádku 137: attempt to concatenate local 'name' (a nil value).**

#### {{LootChest|chance|dev=1}}[editovat zdroj]

**Chyba Lua v modulu Modul:Sprite na řádku 137: attempt to concatenate local 'name' (a nil value).**

#### {{LootChest|stronghold-altar|stronghold-library|stronghold-storeroom|dev=1}}[editovat zdroj]

**Chyba Lua v modulu Modul:Sprite na řádku 137: attempt to concatenate local 'name' (a nil value).**

#### {{LootChest|altar|library|storeroom|stacksize|chance|dev=1}}[editovat zdroj]

**Chyba Lua v modulu Modul:Sprite na řádku 137: attempt to concatenate local 'name' (a nil value).**

#### {{LootChest|bonus|dev=1}}[editovat zdroj]

**Chyba Lua v modulu Modul:Sprite na řádku 137: attempt to concatenate local 'name' (a nil value).**

#### {{LootChest|desert|dev=1}}[editovat zdroj]

**Chyba Lua v modulu Modul:Sprite na řádku 137: attempt to concatenate local 'name' (a nil value).**

#### {{LootChest|jungle}}[editovat zdroj]

**Chyba Lua v modulu Modul:Sprite na řádku 137: attempt to concatenate local 'name' (a nil value).**

#### {{LootChest|dungeon|dev=1}}[editovat zdroj]

**Chyba Lua v modulu Modul:Sprite na řádku 137: attempt to concatenate local 'name' (a nil value).**

#### {{LootChest|end-city|dev=1}}[editovat zdroj]

**Chyba Lua v modulu Modul:Sprite na řádku 137: attempt to concatenate local 'name' (a nil value).**

#### {{LootChest|igloo|dev=1}}[editovat zdroj]

**Chyba Lua v modulu Modul:Sprite na řádku 137: attempt to concatenate local 'name' (a nil value).**

#### {{LootChest|mineshaft|dev=1}}[editovat zdroj]

**Chyba Lua v modulu Modul:Sprite na řádku 137: attempt to concatenate local 'name' (a nil value).**

#### {{LootChest|nether-fortress|dev=1}}[editovat zdroj]

**Chyba Lua v modulu Modul:Sprite na řádku 137: attempt to concatenate local 'name' (a nil value).**

#### {{LootChest|village|dev=1}}[editovat zdroj]

**Chyba Lua v modulu Modul:Sprite na řádku 137: attempt to concatenate local 'name' (a nil value).**

#### {{LootChest|village|chance|dev=1}}[editovat zdroj]

**Chyba Lua v modulu Modul:Sprite na řádku 137: attempt to concatenate local 'name' (a nil value).**

### Notes[editovat zdroj]

- ↑ All enchantments are equally probable,
*including*treasure enchantments, and any level of the enchantment is equally probable. - ↑
^{a}^{b}^{c}^{d}^{e}^{f}^{g}^{h}^{i}^{j}^{k}^{l}^{m}^{n}Enchantment probabilities are the same as a level-20 to level-39 enchantment would be on an enchantment table that had no cap at level 30, and that was able to apply treasure enchantments, and where the chance of multiple enchantments is not reduced. - ↑ Enchantment probabilities are the same as a level-30 enchantment on an enchantment table that was able to apply treasure enchantments, and where the chance of multiple enchantments is not reduced.
- ↑
^{a}^{b}^{c}^{d}^{e}^{f}All enchantments are equally probable,*except*treasure enchantments, and any level of the enchantment is equally probable. - ↑ Named unknown map, but changed to map 0, the scale level is 1:4, Maps from the same stack are stackable, but maps which are not stacked are unstackable despite looking identical.
- ↑ 'Nothing' does not refer to the chance of an empty chest. Instead, it refers to the chance that the random loot generator will not add any loot
*on a single roll*. - ↑ The stew will grant one of the following effects: 5–7 seconds of Blindness, 7–10 seconds of Jump Boost, 10–20 seconds of Poison, 7–10 seconds of Saturation, 7–10 seconds of Speed, or 6–8 seconds of Weakness.