Template:LootChest - minecraft.fandom.com

Treść tej podstrony pochodzi z artykułu „Template:LootChest” w domenie minecraft.fandom.com na licencji CC BY-NC-SA 3.0


[view | edit | history | purge]Documentation
Lua logo
This template uses Module:LootChest, a script written in Lua.

Usage[]

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

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

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

Chest parameters[]

ancient-city,
ancient-city-ice-box,
bastion-bridge,
bastion-generic,
bastion-hoglin-stable,
bastion-treasure,
bonus,
bonus-barrel,
brushable-cold-ocean-ruins,
brushable-desert-temple,
brushable-desert-well,
brushable-trail-ruins,
brushable-trail-ruins-rare,
brushable-warm-ocean-ruins,
buried-treasure,
desert-temple ( desert ),
end-city,
igloo,
jungle-temple ( jungle ),
jungle-temple-dispenser,
mineshaft,
monster room,
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 ),
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 ),
woodland-mansion ( mansion )

Column parameters[]

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

Example[]

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

In Java Edition,
Item Mineshaft
(1, 2–4, and 3 stacks)
Monster Room
(1–3, 1–4, and 3 stacks)
Stack Size [A] Chance [B] Stack Size [A] Chance [B]
1× 2–4× 3× 1–3× 1–4× 3×
Rails ——4–878.4% ————
Torch ——1–1665.7% ————
Name Tag 1——42.3% 1——25.3%
Glow Berries —3–6—38.7% ————
Bread —1–3—38.7% —1—34.1%
Golden Apple 1——28.2% 1——19.4%
Coal —3–8—27.3% —1–4—26.6%
Beetroot Seeds —2–4—27.3% —2–4—18.5%
Melon Seeds —2–4—27.3% —2–4—18.5%
Pumpkin Seeds —2–4—27.3% —2–4—18.5%
Iron Ingot —1–5—27.3% —1–4—18.5%
Activator Rail ——1–427.1% ————
Detector Rail ——1–427.1% ————
Powered Rail ——1–427.1% ————
Lapis Lazuli —4–9—14.5% ————
Redstone Dust —4–9—14.5% —1–4—26.6%
Gold Ingot —1–3—14.5% —1–4—9.6%
Enchanted Book[C] 1——14.1% 1——13.3%
Diamond —1–2—8.9% ————
Nothing[D] 1——7.0% ————
Iron Pickaxe 1——7.0% ————
Enchanted Golden Apple 1——1.4% 1——2.8%
Bone ———— ——1–857.8%
Gunpowder ———— ——1–857.8%
Rotten Flesh ———— ——1–857.8%
String ———— ——1–857.8%
Wheat ———— —1–4—34.1%
Leather ———— 1–5——25.3%
Copper Horse Armor ———— 1——19.4%
Music Disc (13) ———— 1——19.4%
Music Disc (cat) ———— 1——19.4%
Iron Horse Armor ———— 1——19.4%
Bucket ———— —1—18.5%
Golden Horse Armor ———— 1——13.3%
Diamond Horse Armor ———— 1——6.8%
Music Disc (otherside) ———— 1——2.8%
In Java Edition 1.20.2,
Item Mineshaft
(1, 2–4, 3, and 1 stacks)
Monster Room
Stack Size [A] Chance [B] Stack Size [A] Chance [B]
1× 2–4× 3× 1×
Nothing[D] 1——181.4% ——
Rails ——4–8—78.4% ——
Torch ——1–16—65.7% ——
Name Tag 1———42.3% ——
Glow Berries —3–6——38.7% ——
Bread —1–3——38.7% ——
Golden Apple 1———28.2% ——
Coal —3–8——27.3% ——
Beetroot Seeds —2–4——27.3% ——
Melon Seeds —2–4——27.3% ——
Pumpkin Seeds —2–4——27.3% ——
Iron Ingot —1–5——27.3% ——
Activator Rail ——1–4—27.1% ——
Detector Rail ——1–4—27.1% ——
Powered Rail ——1–4—27.1% ——
Enchanted Book[E] ———120.0% ——
Lapis Lazuli —4–9——14.5% ——
Redstone Dust —4–9——14.5% ——
Gold Ingot —1–3——14.5% ——
Enchanted Book[C] 1———14.1% ——
Diamond —1–2——8.9% ——
Iron Pickaxe 1———7.0% ——
Enchanted Golden Apple 1———1.4% ——
In Bedrock Edition,
Item Mineshaft
(1, 2–4, and 3 stacks)
Monster Room
(1–3, 1–4, and 3 stacks)
Stack Size [A] Chance [B] Stack Size [A] Chance [B]
1× 2–4× 3× 1–3× 1–4× 3×
Rails ——4–878.4% ————
Torch ——1–1665.7% ————
Name Tag 1——42.3% 1——25.3%
Glow Berries —3–6—38.7% ————
Bread —1–3—38.7% —1—34.1%
Golden Apple 1——28.2% 1——19.4%
Coal —3–8—27.3% —1–4—26.6%
Beetroot Seeds —2–4—27.3% —2–4—18.5%
Melon Seeds —2–4—27.3% —2–4—18.5%
Pumpkin Seeds —2–4—27.3% —2–4—18.5%
Iron Ingot —1–5—27.3% —1–4—18.5%
Activator Rail ——1–427.1% ————
Detector Rail ——1–427.1% ————
Powered Rail ——1–427.1% ————
Lapis Lazuli —4–9—14.5% ————
Redstone Dust —4–9—14.5% —1–4—26.6%
Gold Ingot —1–3—14.5% —1–4—9.6%
Enchanted Book[C] 1——14.1% 1——13.3%
Diamond —1–2—8.9% ————
Nothing[D] 1——7.0% ————
Iron Pickaxe 1——7.0% ————
Enchanted Golden Apple 1——1.4% 1——2.8%
Bone ———— ——1–857.8%
Gunpowder ———— ——1–857.8%
Rotten Flesh ———— ——1–857.8%
String ———— ——1–857.8%
Wheat ———— —1–4—34.1%
Leather ———— 1–5——25.3%
Copper Horse Armor ———— 1——19.4%
Music Disc (13) ———— 1——19.4%
Music Disc (cat) ———— 1——19.4%
Iron Horse Armor ———— 1——19.4%
Bucket ———— —1—18.5%
Golden Horse Armor ———— 1——13.3%
Diamond Horse Armor ———— 1——6.8%
Music Disc (otherside) ———— 1——2.8%
  1. ↑ a b c d e f The size of stacks (or for unstackable items, number) of this item on any given roll.
  2. ↑ a b c d e f The odds of finding any of this item in a single chest.
  3. ↑ a b c All enchantments are equally probable, including treasure enchantments (except Soul Speed, and Swift Sneak), and any level of the enchantment is equally probable.
  4. ↑ a b c 'Nothing' does not refer to the chance of an empty chest. Instead, it refers to the chance that the random loot generator does not add any loot on a single roll.
  5. ↑ Enchanted with a random level of Efficiency.
[view | edit | history | purge]The above documentation is transcluded from Template:LootChest/doc.