Module:LootChest/doc

Template:LootChest (.base) Usage
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

Template:LootChestItem (.base2) Usage
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 data is current as of 1.8. The source used was MCP 9.10. – Sealbudsman (Aaron) T/C 01:15, 8 July 2015 (UTC)

Source

 * The data is set up within  so that it can be pulled directly from (or compared directly to) the minecraft jar files, or the MCP 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






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


 * the expected number of chests of this type a player sould have to search, to find at least one of a certain item.
 * the expected number of chests of this type a player sould have to search, to find at least one of a certain item.