Template:LootChest

Revision as of 05:29, 15 June 2023 by minecraft>Unavailablehoax (rmv newlines)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


[view] [edit] [history] [⧼smw purge⧽]Documentation
Lua logo.svg
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]
2–4× 1–3× 1–4×
BlockSprite rail.png: Sprite image for rail in Minecraft linking to mcwiki:railRails 4–878.4%
BlockSprite torch.png: Sprite image for torch in Minecraft linking to mcwiki:torchTorch 1–1665.7%
ItemSprite name-tag.png: Sprite image for name-tag in Minecraft linking to mcwiki:name tagName Tag 142.3% 127.9%
ItemSprite glow-berries.png: Sprite image for glow-berries in Minecraft linking to mcwiki:glow berriesGlow Berries 3–638.7%
ItemSprite bread.png: Sprite image for bread in Minecraft linking to mcwiki:breadBread 1–338.7% 134.1%
ItemSprite golden-apple.png: Sprite image for golden-apple in Minecraft linking to mcwiki:golden appleGolden Apple 128.2% 121.5%
ItemSprite coal.png: Sprite image for coal in Minecraft linking to mcwiki:coalCoal 3–827.3% 1–426.6%
ItemSprite beetroot-seeds.png: Sprite image for beetroot-seeds in Minecraft linking to mcwiki:beetroot seedsBeetroot Seeds 2–427.3% 2–418.5%
ItemSprite melon-seeds.png: Sprite image for melon-seeds in Minecraft linking to mcwiki:melon seedsMelon Seeds 2–427.3% 2–418.5%
ItemSprite pumpkin-seeds.png: Sprite image for pumpkin-seeds in Minecraft linking to mcwiki:pumpkin seedsPumpkin Seeds 2–427.3% 2–418.5%
ItemSprite iron-ingot.png: Sprite image for iron-ingot in Minecraft linking to mcwiki:iron ingotIron Ingot 1–527.3% 1–418.5%
BlockSprite activator-rail.png: Sprite image for activator-rail in Minecraft linking to mcwiki:activator railActivator Rail 1–427.1%
BlockSprite detector-rail.png: Sprite image for detector-rail in Minecraft linking to mcwiki:detector railDetector Rail 1–427.1%
BlockSprite powered-rail.png: Sprite image for powered-rail in Minecraft linking to mcwiki:powered railPowered Rail 1–427.1%
ItemSprite lapis-lazuli.png: Sprite image for lapis-lazuli in Minecraft linking to mcwiki:lapis lazuliLapis Lazuli 4–914.5%
File:ItemSprite redstone-dust.pngRedstone Dust 4–914.5% 1–426.6%
ItemSprite gold-ingot.png: Sprite image for gold-ingot in Minecraft linking to mcwiki:gold ingotGold Ingot 1–314.5% 1–49.6%
ItemSprite enchanted-book.png: Sprite image for enchanted-book in Minecraft linking to mcwiki:Enchanted BookEnchanted Book[FN 3] 114.1% 114.7%
ItemSprite diamond.png: Sprite image for diamond in Minecraft linking to mcwiki:diamondDiamond 1–28.9%
BlockSprite air.png: Sprite image for air in MinecraftNothing[FN 4] 17.0%
ItemSprite iron-pickaxe.png: Sprite image for iron-pickaxe in Minecraft linking to mcwiki:iron pickaxeIron Pickaxe 17.0%
File:ItemSprite enchanted-golden-apple.pngEnchanted Golden Apple 11.4% 13.1%
ItemSprite bone.png: Sprite image for bone in Minecraft linking to mcwiki:boneBone 1–857.8%
ItemSprite gunpowder.png: Sprite image for gunpowder in Minecraft linking to mcwiki:gunpowderGunpowder 1–857.8%
ItemSprite rotten-flesh.png: Sprite image for rotten-flesh in Minecraft linking to mcwiki:rotten fleshRotten Flesh 1–857.8%
ItemSprite string.png: Sprite image for string in Minecraft linking to mcwiki:stringString 1–857.8%
ItemSprite wheat.png: Sprite image for wheat in Minecraft linking to mcwiki:wheatWheat 1–434.1%
ItemSprite saddle.png: Sprite image for saddle in Minecraft linking to mcwiki:saddleSaddle 127.9%
ItemSprite music-disc-13.png: Sprite image for music-disc-13 in Minecraft linking to mcwiki:Music Disc 13Music Disc (13) 121.5%
ItemSprite music-disc-cat.png: Sprite image for music-disc-cat in Minecraft linking to mcwiki:Music Disc catMusic Disc (cat) 121.5%
ItemSprite iron-horse-armor.png: Sprite image for iron-horse-armor in Minecraft linking to mcwiki:Horse ArmorIron Horse Armor 121.5%
ItemSprite bucket.png: Sprite image for bucket in Minecraft linking to mcwiki:bucketBucket 118.5%
File:ItemSprite golden-horse-armor.pngGolden Horse Armor 114.7%
ItemSprite diamond-horse-armor.png: Sprite image for diamond-horse-armor in Minecraft linking to mcwiki:Horse ArmorDiamond Horse Armor 17.6%
ItemSprite music-disc-otherside.png: Sprite image for music-disc-otherside in Minecraft linking to mcwiki:Music Disc othersideMusic Disc (otherside) 13.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]
2–4×
BlockSprite air.png: Sprite image for air in MinecraftNothing[FN 4] 1181.4%
BlockSprite rail.png: Sprite image for rail in Minecraft linking to mcwiki:railRails 4–878.4%
BlockSprite torch.png: Sprite image for torch in Minecraft linking to mcwiki:torchTorch 1–1665.7%
ItemSprite name-tag.png: Sprite image for name-tag in Minecraft linking to mcwiki:name tagName Tag 142.3%
ItemSprite glow-berries.png: Sprite image for glow-berries in Minecraft linking to mcwiki:glow berriesGlow Berries 3–638.7%
ItemSprite bread.png: Sprite image for bread in Minecraft linking to mcwiki:breadBread 1–338.7%
ItemSprite golden-apple.png: Sprite image for golden-apple in Minecraft linking to mcwiki:golden appleGolden Apple 128.2%
ItemSprite coal.png: Sprite image for coal in Minecraft linking to mcwiki:coalCoal 3–827.3%
ItemSprite beetroot-seeds.png: Sprite image for beetroot-seeds in Minecraft linking to mcwiki:beetroot seedsBeetroot Seeds 2–427.3%
ItemSprite melon-seeds.png: Sprite image for melon-seeds in Minecraft linking to mcwiki:melon seedsMelon Seeds 2–427.3%
ItemSprite pumpkin-seeds.png: Sprite image for pumpkin-seeds in Minecraft linking to mcwiki:pumpkin seedsPumpkin Seeds 2–427.3%
ItemSprite iron-ingot.png: Sprite image for iron-ingot in Minecraft linking to mcwiki:iron ingotIron Ingot 1–527.3%
BlockSprite activator-rail.png: Sprite image for activator-rail in Minecraft linking to mcwiki:activator railActivator Rail 1–427.1%
BlockSprite detector-rail.png: Sprite image for detector-rail in Minecraft linking to mcwiki:detector railDetector Rail 1–427.1%
BlockSprite powered-rail.png: Sprite image for powered-rail in Minecraft linking to mcwiki:powered railPowered Rail 1–427.1%
ItemSprite enchanted-book.png: Sprite image for enchanted-book in Minecraft linking to mcwiki:Enchanted BookEnchanted Book[FN 5] 120.0%
ItemSprite lapis-lazuli.png: Sprite image for lapis-lazuli in Minecraft linking to mcwiki:lapis lazuliLapis Lazuli 4–914.5%
File:ItemSprite redstone-dust.pngRedstone Dust 4–914.5%
ItemSprite gold-ingot.png: Sprite image for gold-ingot in Minecraft linking to mcwiki:gold ingotGold Ingot 1–314.5%
ItemSprite enchanted-book.png: Sprite image for enchanted-book in Minecraft linking to mcwiki:Enchanted BookEnchanted Book[FN 3] 114.1%
ItemSprite diamond.png: Sprite image for diamond in Minecraft linking to mcwiki:diamondDiamond 1–28.9%
ItemSprite iron-pickaxe.png: Sprite image for iron-pickaxe in Minecraft linking to mcwiki:iron pickaxeIron Pickaxe 17.0%
File:ItemSprite enchanted-golden-apple.pngEnchanted Golden Apple 11.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]
2–4× 1–3× 1–4×
BlockSprite rail.png: Sprite image for rail in Minecraft linking to mcwiki:railRails 4–878.4%
BlockSprite torch.png: Sprite image for torch in Minecraft linking to mcwiki:torchTorch 1–1665.7%
ItemSprite name-tag.png: Sprite image for name-tag in Minecraft linking to mcwiki:name tagName Tag 142.3% 127.9%
ItemSprite glow-berries.png: Sprite image for glow-berries in Minecraft linking to mcwiki:glow berriesGlow Berries 3–638.7%
ItemSprite bread.png: Sprite image for bread in Minecraft linking to mcwiki:breadBread 1–338.7% 134.1%
ItemSprite golden-apple.png: Sprite image for golden-apple in Minecraft linking to mcwiki:golden appleGolden Apple 128.2% 121.5%
ItemSprite coal.png: Sprite image for coal in Minecraft linking to mcwiki:coalCoal 3–827.3% 1–426.6%
ItemSprite beetroot-seeds.png: Sprite image for beetroot-seeds in Minecraft linking to mcwiki:beetroot seedsBeetroot Seeds 2–427.3% 2–418.5%
ItemSprite melon-seeds.png: Sprite image for melon-seeds in Minecraft linking to mcwiki:melon seedsMelon Seeds 2–427.3% 2–418.5%
ItemSprite pumpkin-seeds.png: Sprite image for pumpkin-seeds in Minecraft linking to mcwiki:pumpkin seedsPumpkin Seeds 2–427.3% 2–418.5%
ItemSprite iron-ingot.png: Sprite image for iron-ingot in Minecraft linking to mcwiki:iron ingotIron Ingot 1–527.3% 1–418.5%
BlockSprite activator-rail.png: Sprite image for activator-rail in Minecraft linking to mcwiki:activator railActivator Rail 1–427.1%
BlockSprite detector-rail.png: Sprite image for detector-rail in Minecraft linking to mcwiki:detector railDetector Rail 1–427.1%
BlockSprite powered-rail.png: Sprite image for powered-rail in Minecraft linking to mcwiki:powered railPowered Rail 1–427.1%
ItemSprite lapis-lazuli.png: Sprite image for lapis-lazuli in Minecraft linking to mcwiki:lapis lazuliLapis Lazuli 4–914.5%
File:ItemSprite redstone-dust.pngRedstone Dust 4–914.5% 1–426.6%
ItemSprite gold-ingot.png: Sprite image for gold-ingot in Minecraft linking to mcwiki:gold ingotGold Ingot 1–314.5% 1–49.6%
ItemSprite enchanted-book.png: Sprite image for enchanted-book in Minecraft linking to mcwiki:Enchanted BookEnchanted Book[FN 3] 114.1% 114.7%
ItemSprite diamond.png: Sprite image for diamond in Minecraft linking to mcwiki:diamondDiamond 1–28.9%
BlockSprite air.png: Sprite image for air in MinecraftNothing[FN 4] 17.0%
ItemSprite iron-pickaxe.png: Sprite image for iron-pickaxe in Minecraft linking to mcwiki:iron pickaxeIron Pickaxe 17.0%
File:ItemSprite enchanted-golden-apple.pngEnchanted Golden Apple 11.4% 13.1%
ItemSprite bone.png: Sprite image for bone in Minecraft linking to mcwiki:boneBone 1–857.8%
ItemSprite gunpowder.png: Sprite image for gunpowder in Minecraft linking to mcwiki:gunpowderGunpowder 1–857.8%
ItemSprite rotten-flesh.png: Sprite image for rotten-flesh in Minecraft linking to mcwiki:rotten fleshRotten Flesh 1–857.8%
ItemSprite string.png: Sprite image for string in Minecraft linking to mcwiki:stringString 1–857.8%
ItemSprite wheat.png: Sprite image for wheat in Minecraft linking to mcwiki:wheatWheat 1–434.1%
ItemSprite saddle.png: Sprite image for saddle in Minecraft linking to mcwiki:saddleSaddle 127.9%
ItemSprite music-disc-13.png: Sprite image for music-disc-13 in Minecraft linking to mcwiki:Music Disc 13Music Disc (13) 121.5%
ItemSprite music-disc-cat.png: Sprite image for music-disc-cat in Minecraft linking to mcwiki:Music Disc catMusic Disc (cat) 121.5%
ItemSprite iron-horse-armor.png: Sprite image for iron-horse-armor in Minecraft linking to mcwiki:Horse ArmorIron Horse Armor 121.5%
ItemSprite bucket.png: Sprite image for bucket in Minecraft linking to mcwiki:bucketBucket 118.5%
File:ItemSprite golden-horse-armor.pngGolden Horse Armor 114.7%
ItemSprite diamond-horse-armor.png: Sprite image for diamond-horse-armor in Minecraft linking to mcwiki:Horse ArmorDiamond Horse Armor 17.6%
ItemSprite music-disc-otherside.png: Sprite image for music-disc-otherside in Minecraft linking to mcwiki:Music Disc othersideMusic Disc (otherside) 13.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] [⧼smw purge⧽]The above documentation is transcluded from Template:LootChest/doc.