Feed The Beast Wiki
Advertisement
Template-info.png Documentation
Lua logo.svg This template uses Module:Scavenge, a script written in Lua.
Please see wikipedia:wp:Lua and mw:Extension:Scribunto to learn more.

This template is used to display drops from the Scavenge mod, including weighted drop rates converted to percentages.

Parameters

All parameters are optional.

  • 1: Item used to scavenge block.
  • 2: Block that is scavenged.
  • 3-38: Output drops. To properly use the weighting system, the inside-out processing nature of templates must be circumvented. Do not enclose the item template in double braces, use + as an arg separator, and escape the = sign with {{=}}.

Usage

No checks are performed on parameters 1 and 2. In parameters 3-38, if a weight argument is not supplied or not a valid number, it will be filtered out and not displayed in the Scavenge GUI. Only {{Gc}} and {{O}} can be used as valid templates in parameters 3-38. {{Gc}} can be omitted in parameters 3-38 and the parameter will still function. Alternatively, numbered parameters can be used to prevent a need for {{=}}.

Examples

{{Scavenge
|{{Gc|Wooden Pickaxe|mod=V|dis=false}}
|{{Gc|Bedrock|mod=V|dis=false}}
|Gc+Stone Pebble+mod{{=}}EXNA+weight{{=}}40
|Tiny Coal+mod{{=}}AA+dis{{=}}false+weight{{=}}5
}}
produces





{{Scavenge
|2={{Gc|Dirt|mod=V|dis=false}}
|3=Seeds+mod=V+dis=false+weight=15
|4=Birch Sapling+mod=V+dis=false    -- No weight, ignored value
|5=Gc+Oak Sapling+mod=V+dis=false+weight=5
}}
produces




See also

Advertisement