Template:LootChest: Difference between revisions

From Parallel Wiki
Jump to navigation Jump to search
m (rmv newlines)
(No difference)

Revision as of 05:29, 15 June 2023


Documentation[view] [edit] [history] [purge]
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,
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

{{LootChest|mineshaft|monster room|chance|stacksize}} → only mineshaft and dungeon 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 [FN 1] Chance [FN 2] Stack Size [FN 1] Chance [FN 2]
1× 2–4× 3× 1–3× 1–4× 3×
Rails ——4–878.4% ————
Torch ——1–1665.7% ————
Name Tag 1——42.3% 1——27.9%
Glow Berries —3–6—38.7% ————
Bread —1–3—38.7% —1—34.1%
Golden Apple 1——28.2% 1——21.5%
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% ————
File:ItemSprite redstone-dust.pngRedstone Dust —4–9—14.5% —1–4—26.6%
Gold Ingot —1–3—14.5% —1–4—9.6%
Enchanted Book[FN 3] 1——14.1% 1——14.7%
Diamond —1–2—8.9% ————
BlockSprite air.png: Sprite image for air in MinecraftNothing[FN 4] 1——7.0% ————
Iron Pickaxe 1——7.0% ————
File:ItemSprite enchanted-golden-apple.pngEnchanted Golden Apple 1——1.4% 1——3.1%
Bone ———— ——1–857.8%
Gunpowder ———— ——1–857.8%
Rotten Flesh ———— ——1–857.8%
String ———— ——1–857.8%
Wheat ———— —1–4—34.1%
Saddle ———— 1——27.9%
Music Disc (13) ———— 1——21.5%
Music Disc (cat) ———— 1——21.5%
Iron Horse Armor ———— 1——21.5%
Bucket ———— —1—18.5%
File:ItemSprite golden-horse-armor.pngGolden Horse Armor ———— 1——14.7%
Diamond Horse Armor ———— 1——7.6%
Music Disc (otherside) ———— 1——3.1%
In the experimental datapack "Villager Trade Rebalance" from Java Edition 1.20.2 onward,
Item Mineshaft
(1, 2–4, 3, and 1 stacks)
Monster Room
Stack Size [FN 1] Chance [FN 2] Stack Size [FN 1] Chance [FN 2]
1× 2–4× 3× 1×
BlockSprite air.png: Sprite image for air in MinecraftNothing[FN 4] 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[FN 5] ———120.0% ——
Lapis Lazuli —4–9——14.5% ——
File:ItemSprite redstone-dust.pngRedstone Dust —4–9——14.5% ——
Gold Ingot —1–3——14.5% ——
Enchanted Book[FN 3] 1———14.1% ——
Diamond —1–2——8.9% ——
Iron Pickaxe 1———7.0% ——
File:ItemSprite enchanted-golden-apple.pngEnchanted 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 [FN 1] Chance [FN 2] Stack Size [FN 1] Chance [FN 2]
1× 2–4× 3× 1–3× 1–4× 3×
Rails ——4–878.4% ————
Torch ——1–1665.7% ————
Name Tag 1——42.3% 1——27.9%
Glow Berries —3–6—38.7% ————
Bread —1–3—38.7% —1—34.1%
Golden Apple 1——28.2% 1——21.5%
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% ————
File:ItemSprite redstone-dust.pngRedstone Dust —4–9—14.5% —1–4—26.6%
Gold Ingot —1–3—14.5% —1–4—9.6%
Enchanted Book[FN 3] 1——14.1% 1——14.7%
Diamond —1–2—8.9% ————
BlockSprite air.png: Sprite image for air in MinecraftNothing[FN 4] 1——7.0% ————
Iron Pickaxe 1——7.0% ————
File:ItemSprite enchanted-golden-apple.pngEnchanted Golden Apple 1——1.4% 1——3.1%
Bone ———— ——1–857.8%
Gunpowder ———— ——1–857.8%
Rotten Flesh ———— ——1–857.8%
String ———— ——1–857.8%
Wheat ———— —1–4—34.1%
Saddle ———— 1——27.9%
Music Disc (13) ———— 1——21.5%
Music Disc (cat) ———— 1——21.5%
Iron Horse Armor ———— 1——21.5%
Bucket ———— —1—18.5%
File:ItemSprite golden-horse-armor.pngGolden Horse Armor ———— 1——14.7%
Diamond Horse Armor ———— 1——7.6%
Music Disc (otherside) ———— 1——3.1%
  1. ↑ 1.0 1.1 1.2 1.3 1.4 1.5 The size of stacks (or for unstackable items, number) of this item on any given roll.
  2. ↑ 2.0 2.1 2.2 2.3 2.4 2.5 The odds of finding any of this item in a single chest.
  3. ↑ 3.0 3.1 3.2 All enchantments are equally probable, including treasure enchantments (except Soul Speed, and Swift Sneak), and any level of the enchantment is equally probable.
  4. ↑ 4.0 4.1 4.2 '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.


fr:Modèle:CoffreRécompenses uk:Шаблон:LootChest

[view] [edit] [history] [purge]The above documentation is transcluded from Template:LootChest/doc.