Module:LootChest/doc



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

Example
&rarr; all chests and all columns

&rarr; only blacksmith and jungle chests, and only 'stacksize' and 'chance' columns

.base2 usage (Template:LootChestItem)
Prints a summary of this item's availability in the various worldgen chests.

Invoking
It takes exactly one item name as a parameter.

Example
&rarr;

&rarr;

Maintenance
The tables are current as of.


 * The source for 1.8.8 was the decompiled .jar. Anomie x (talk) 07:54, 29 October 2015 (UTC)

The tables are current as of snapshot.


 * The source for 14w46a was the loot table from the .jar. – Sealbudsman talk/contr 16:26, 12 November 2015 (UTC)

Source

 * The data is set up within  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





 * rolls
 * rolls
 * rolls




 * Allows additional chest names to be used as parameters, in addition to the ones defined in p.chests.
 * Allows additional chest names to be used as parameters, in addition to the ones defined in p.chests.
 * Allows additional chest names to be used as parameters, in addition to the ones defined in p.chests.


 * If a single chest parameter is used, this defines the name it is called in the summary text above the table.
 * If a single chest parameter is used, this defines the name it is called in the summary text above the table.
 * If a single chest parameter is used, this defines the name it is called in the summary text above the table.


 * The column descriptions, found either in the tooltip on the column header, or in the summary text above the table.
 * The column descriptions, found either in the tooltip on the column header, or in the summary text above the table.
 * The column descriptions, found either in the tooltip on the column header, or in the summary text above the table.

Keys

 * : A different ID, from Template:ItemSprite or Template:BlockSprite.
 * : A link to a page that is different from the sprite-id name.
 * : A name for an item that is different from the sprite-id name.
 * : Indicates that a note will appear next to this item in the table.
 * : used in LootChestItem. Use this to indicate that the item comes in groups rather than in stacks.
 * : used in LootChestItem. Use   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.

Values

 * : these must match a sprite name for the items/block as defined in Module:BlockSprite/IDs or Module:ItemSprite/IDs, unless  is included in the item definition.
 * : these must match a sprite name for the items/block as defined in Module:BlockSprite/IDs or Module:ItemSprite/IDs.
 * : either  or

Functions
The following functions are made available at the top of the file, for ease of inspection.
 * average number of a certain item (not number of stacks), per-chest (not per-structure).
 * average number of a certain item (not number of stacks), per-chest (not per-structure).


 * chance that at least one of a certain item will be found, per-chest (not per-structure).
 * chance that at least one of a certain item will be found, per-chest (not per-structure).