<!--************************  CustomOreGen Minecraft Ores Module ****************
*
*   This file contains Presets, Options, and Distributions for the 7
*   vanilla minecraft ores:
*       Coal, Iron, Gold, Redstone, Diamond, Lapis Lazuli, and Emerald.
*
******************************************************************************-->
<ConfigSection>

    <!--***************************   Options + Symbols   ***********************
    *
    *   Below are options and symbols for Coal, Iron, Gold, Redstone,
    *   Diamond, Lapis Lazuli, and Emerald.
    *   Each ore has a "type" option corresponding to select which distribution
    *   is used for that ore in the overworld.
    *
    *   Each ore also has its own overall "frequency" and "size" multipliers.
    *   These are provided so people can tweak the rarity of each ore
    *   from the options file rather than having to edit the config directly.
    *
    **************************************************************************-->
    <ConfigSection>
    
        <OptionDisplayGroup name='groupStdOres' displayName='Minecraft Ores' displayState='shown'>
            <Description> 
                Distribution options for the vanilla Minecraft ores.
            </Description>
        </OptionDisplayGroup>

        <!--*******************   Coal   ***********************-->
        <ConfigSection>
        
            <OptionChoice name='coalDist' default='layeredVeins' displayState='shown' displayGroup='groupStdOres'>
                <Description> Controls how Coal is generated </Description>
                <DisplayName>Coal Type</DisplayName>
                <Choice value='layeredVeins' displayValue='Veins'>
                    <Description> 
                        Single short, wide veins found near ground level and only sparsely filled with ore.  Most common in swamps.  
                    </Description>
                </Choice>
                <Choice value='strategicClouds' displayValue='Clouds'>
                    <Description> 
                        Rare, sparsely populated clouds of ore extending over several chunks.  Found only in swamps. 
                    </Description>
                </Choice>
                <Choice value='vanillaStdGen' displayValue='Clusters'>
                    <Description> 
                        Small evenly scattered clusters of ore.  This is the vanilla coal generation.
                    </Description>
                </Choice>
                <Choice value='none' displayValue='None' description='No coal is generated at all.'/>
            </OptionChoice>
            
            <OptionNumeric name='coalFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupStdOres'>
                <Description> Frequency multiplier for Coal distributions </Description>
                <DisplayName>Coal Freq.</DisplayName>
            </OptionNumeric> 
            
            <OptionNumeric name='coalSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupStdOres'>
                <Description> Size multiplier for Coal distributions </Description>
                <DisplayName>Coal Size</DisplayName>
            </OptionNumeric>

        </ConfigSection>        
            
        <!--*******************   Iron   ***********************-->
        <ConfigSection>
            
            <OptionChoice name='ironDist' default='layeredVeins' displayState='shown' displayGroup='groupStdOres'>
                <Description> Controls how Iron is generated </Description>
                <DisplayName>Iron Type</DisplayName>
                <Choice value='layeredVeins' displayValue='Veins'>
                    <Description> 
                        Groups of long narrow veins found about one third of the way down to bedrock.  Especially common in snowy or icy areas.  
                    </Description>
                </Choice>
                <Choice value='strategicClouds' displayValue='Clouds'>
                    <Description> 
                        Rare, sparsely populated clouds of ore extending over several chunks.  Found only in snowy or icy areas.
                    </Description>
                </Choice>
                <Choice value='vanillaStdGen' displayValue='Clusters'>
                    <Description> 
                        Small evenly scattered clusters of ore.  This is the vanilla iron generation.
                    </Description>
                </Choice>
                <Choice value='none' displayValue='None' description='No iron is generated at all.'/>
            </OptionChoice>
            
            <OptionNumeric name='ironFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupStdOres'>
                <Description> Frequency multiplier for Iron distributions </Description>
                <DisplayName>Iron Freq.</DisplayName>
            </OptionNumeric>
            
            <OptionNumeric name='ironSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupStdOres'>
                <Description> Size multiplier for Iron distributions </Description>
                <DisplayName>Iron Size</DisplayName>
            </OptionNumeric>    
            
        </ConfigSection>           
        
        <!--*******************   Gold   ***********************-->
        <ConfigSection>
        
            <OptionChoice name='goldDist' default='layeredVeins' displayState='shown' displayGroup='groupStdOres'>
                <Description> Controls how Gold is generated </Description>
                <DisplayName>Gold Type</DisplayName>
                <Choice value='layeredVeins' displayValue='Veins'>
                    <Description> 
                        Groups of long narrow veins found about two thirds of the way down to bedrock.  Most common in temperate hardwood forests, but still very rare.
                    </Description>
                </Choice>
                <Choice value='strategicClouds' displayValue='Clouds'>
                    <Description> 
                        Rare, sparsely populated clouds of ore extending over several chunks.  Found only in temperate hardwood forests.
                    </Description>
                </Choice>
                <Choice value='vanillaStdGen' displayValue='Clusters'>
                    <Description> 
                        Small clusters of ore scattered evenly from bedrock about halfway to the surface.  This is the vanilla gold generation.
                    </Description>
                </Choice>
                <Choice value='none' displayValue='None' description='No gold is generated at all.'/>
            </OptionChoice>
            
            <OptionNumeric name='goldFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupStdOres'>
                <Description> Frequency multiplier for Gold distributions </Description>
                <DisplayName>Gold Freq.</DisplayName>
            </OptionNumeric>
            
            <OptionNumeric name='goldSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupStdOres'>
                <Description> Size multiplier for Gold distributions </Description>
                <DisplayName>Gold Size</DisplayName>
            </OptionNumeric> 
            
        </ConfigSection>           
        
        <!--*****************   Redstone   *********************-->
        <ConfigSection>        
        
            <OptionChoice name='redstoneDist' default='layeredVeins' displayState='shown' displayGroup='groupStdOres'>
                <Description> Controls how Redstone is generated </Description>
                <DisplayName>Redstone Type</DisplayName>
                <Choice value='layeredVeins' displayValue='Veins'>
                    <Description> 
                        Single vertical veins starting near the surface and extending down about halfway to bedrock.  Most common in desert climates.
                    </Description>
                </Choice>
                <Choice value='strategicClouds' displayValue='Clouds'>
                    <Description> 
                        Rare, sparsely populated clouds of ore extending over several chunks.  Found only in desert climates.
                    </Description>
                </Choice>
                <Choice value='vanillaStdGen' displayValue='Clusters'>
                    <Description> 
                        Small clusters of ore scattered evenly from bedrock about one quarter of the way to the surface.  This is the vanilla redstone generation.
                    </Description>
                </Choice>
                <Choice value='none' displayValue='None' description='No redstone is generated at all.'/>
            </OptionChoice>
            
            <OptionNumeric name='redstoneFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupStdOres'>
                <Description> Frequency multiplier for Redstone distributions </Description>
                <DisplayName>Redstone Freq.</DisplayName>
            </OptionNumeric>
            
            <OptionNumeric name='redstoneSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupStdOres'>
                <Description> Size multiplier for Redstone distributions </Description>
                <DisplayName>Redstone Size</DisplayName>
            </OptionNumeric>    
                
        </ConfigSection>           
        
        <!--*****************   Diamond   **********************-->
        <ConfigSection> 
        
            <OptionChoice name='diamondDist' default='layeredVeins' displayState='shown' displayGroup='groupStdOres'>
                <Description> Controls how Diamonds are generated </Description>
                <DisplayName>Diamond Type</DisplayName>
                <Choice value='layeredVeins' displayValue='Veins'>
                    <Description> 
                        Short lava-filled tubes extending upward from bedrock with diamonds around the edges. 
                    </Description>
                </Choice>
                <Choice value='strategicClouds' displayValue='Clouds'>
                    <Description> 
                        Uncommon, sparsely populated clouds of ore covering roughly one chunk.
                    </Description>
                </Choice>
                <Choice value='vanillaStdGen' displayValue='Clusters'>
                    <Description> 
                        Small clusters of ore scattered evenly from bedrock about one quarter of the way to the surface.  This is the vanilla diamond generation.
                    </Description>
                </Choice>
                <Choice value='none' displayValue='None' description='No diamonds are generated at all.'/>
            </OptionChoice>
            
            <OptionNumeric name='diamondFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupStdOres'>
                <Description> Frequency multiplier for Diamond distributions </Description>
                <DisplayName>Diamond Freq.</DisplayName>
            </OptionNumeric>
            
            <OptionNumeric name='diamondSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupStdOres'>
                <Description> Size multiplier for Diamond distributions </Description>
                <DisplayName>Diamond Size</DisplayName>
            </OptionNumeric>    
                
        </ConfigSection>           
        
        <!--***************   Lapis Lazuli   *******************-->
        <ConfigSection> 
        
            <OptionChoice name='lapisDist' default='layeredVeins' displayState='shown' displayGroup='groupStdOres'>
                <Description> Controls how Lapis Lazuli is generated </Description>
                <DisplayName>Lapis Lazuli Type</DisplayName>
                <Choice value='layeredVeins' displayValue='Veins'>
                    <Description> 
                        Single vertical veins starting near bedrock and extending about halfway to the surface.  Most common under ocean floors.
                    </Description>
                </Choice>
                <Choice value='strategicClouds' displayValue='Clouds'>
                    <Description> 
                        Rare, sparsely populated clouds of ore extending over several chunks.  Found only under oceans.
                    </Description>
                </Choice>
                <Choice value='vanillaStdGen' displayValue='Clusters'>
                    <Description> 
                        Small clusters of ore scattered evenly from bedrock about halfway to the surface.  This is the vanilla lapis lazuli generation.
                    </Description>
                </Choice>
                <Choice value='none' displayValue='None' description='No lapis lazuli is generated at all.'/>
            </OptionChoice>
            
            <OptionNumeric name='lapisFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupStdOres'>
                <Description> Frequency multiplier for Lapis Lazuli distributions </Description>
                <DisplayName>Lapis Lazuli Freq.</DisplayName>
            </OptionNumeric>
            
            <OptionNumeric name='lapisSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupStdOres'>
                <Description> Size multiplier for Lapis Lazuli distributions </Description>
                <DisplayName>Lapis Lazuli Size</DisplayName>
            </OptionNumeric>    
                        
        </ConfigSection>           
        
        <!--*****************   Emerald   **********************-->
        <ConfigSection>
        
            <OptionChoice name='emeraldDist' default='layeredVeins' displayState='shown' displayGroup='groupStdOres'>
                <Description> Controls how Emeralds are generated </Description>
                <DisplayName>Emerald Type</DisplayName>
                <Choice value='layeredVeins' displayValue='Veins'>
                    <Description> 
                        Short sloping tubes filled sparsely with emeralds and a few ... surprises.  Vastly more common under open grassy hills.
                    </Description>
                </Choice>
                <Choice value='strategicClouds' displayValue='Clouds'>
                    <Description> 
                        Uncommon, sparsely populated clouds of ore covering roughly one chunk.  Found only under open grassy hills.
                    </Description>
                </Choice>
                <Choice value='vanillaStdGen' displayValue='Clusters'>
                    <Description> 
                        Single blocks scattered near bedrock under open grassy highlands.  This is the vanilla emerald generation.
                    </Description>
                </Choice>
                <Choice value='none' displayValue='None' description='No emeralds are generated at all.'/>
            </OptionChoice>
            
            <OptionNumeric name='emeraldFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupStdOres'>
                <Description> Frequency multiplier for Emerald distributions </Description>
                <DisplayName>Emerald Freq.</DisplayName>
            </OptionNumeric>
            
            <OptionNumeric name='emeraldSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupStdOres'>
                <Description> Size multiplier for Emerald distributions </Description>
                <DisplayName>Emerald Size</DisplayName>
            </OptionNumeric> 
            
        </ConfigSection>
        
     </ConfigSection>    
   
    <!--*****************************   Distributions   *************************
    *   
    *   Below are the actual distributions for the vanilla ores in the
    *   overworld and mystcraft ages.  There are currently 3 types of
    *   distribution for each ore:
    *     Layered Veins:  
    *       Some form of veins or clusters arranged loosely by height and
    *       more common in affiliated biomes.
    *     Strategic Clouds:  
    *       Huge, rare, low-density clouds.  Size and frequency are
    *       fairly consistent; density is varied to reflect ore rarity.
    *       May be surrounded by a scattering of single blocks as
    *       hints to help guide players in.
    *     Vanilla Clusters:
    *       A re-creation of the vanilla ore generation using the
    *       StandardGen algorithm.
    *
    **************************************************************************-->
    <IfCondition condition=':= ?COGActive'>
        
        <!--**********   Vanilla Deposit Removal   *************-->
      <IfCondition condition=':= vanillaOreGen'>
        <Substitute name='StandardOreSubstitute' block='minecraft:stone'>
            <Description> 
                Replace vanilla-generated ore clusters with stone.   
            </Description>
            <Comment>  
                The global option deferredPopulationRange must be large enough to catch all ore clusters (>= 32).
            </Comment>
            <Replaces block='minecraft:coal_ore'/> 
            <Replaces block='minecraft:iron_ore'/> 
            <Replaces block='minecraft:gold_ore'/> 
            <Replaces block='minecraft:redstone_ore'/> 
            <Replaces block='minecraft:diamond_ore'/> 
            <Replaces block='minecraft:lapis_ore'/> 
            <Replaces block='minecraft:emerald_ore'/>
        </Substitute>
      </IfCondition>
        
        <!--*******************   Coal   ***********************-->
        <ConfigSection>
        
            <IfCondition condition=':= coalDist = "vanillaStdGen"'>    
                <StandardGen name='CoalStandard' block='minecraft:coal_ore' inherits='PresetStandardGen'> 
                    <Description> Equivalent to vanilla minecraft coal distribution </Description>
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x60101010</WireframeColor>
                    <Setting name='Size' avg=':= 2 * coalSize * _default_'/> 
                    <Setting name='Frequency' avg=':= coalFreq *  _default_'/>
                </StandardGen> 
            </IfCondition>   
            
            <IfCondition condition=':= coalDist = "layeredVeins"'>    
                <Veins name='CoalVeins' block='minecraft:coal_ore' inherits='PresetSparseVeins'>    
                    <Description>
                        Coal spawns just near the surface, and up into hills and mountains.  The veins are
                        long and thick, but sparsely filled with ore and often broken up by caves or depressions
                        in the terrain.
                    </Description>
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x60101010</WireframeColor>
                    <Setting name='MotherlodeFrequency'
                             avg=':= 10.7 * coalFreq * _default_'/>
                    <Setting name='MotherlodeSize' avg=':= coalSize * _default_' range=':= coalSize * _default_'/>
                    <Setting name='MotherlodeHeight' avg='60'
                             range='10' scaleTo='sealevel'/>
                    <Setting name='BranchLength' avg=':= 0.45 * _default_' range=':= 0.45 * _default_'/>
                    <Setting name='BranchInclination' avg='0' range='0.35'/>
                    <Setting name='BranchHeightLimit' avg='10'/>
                    <Setting name='SegmentRadius' avg=':= coalSize * _default_' range=':= coalSize * _default_'/>
                    <Setting name='OreDensity' avg=':= 1.75 * _default_' range=':= _default_'/>
                </Veins>
                <Veins name='CoalVeinsSwamp' inherits='CoalVeins'>
                    <Description>  This roughly triples the chance of finding coal in a swamp. </Description>      
                    <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                    <Setting name='MotherlodeHeight' avg=':= _default_' range=':= 2 * _default_'/>
                    <Setting name='BranchHeightLimit' avg=':= 2 * _default_'/>  
                    <BiomeType name='Swamp'/>
                </Veins>      
            </IfCondition>     
            
            <IfCondition condition=':= coalDist = "strategicClouds"'>    
                <Cloud name='CoalCloud' block='minecraft:coal_ore' inherits='PresetStrategicCloud'>
                    <Description>  
                        Diffuse coal cloud surrounded by single-block "hint" veins, found in swamps.
                    </Description> 
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x60101010</WireframeColor> 
                    <Setting name='DistributionFrequency' avg=':= 5 * coalFreq *_default_'/>
                    <Setting name='CloudRadius' avg=':= 1.2 * coalSize * _default_' range=':= 1.2 * coalSize * _default_'/>
                    <Setting name='CloudThickness' avg=':= coalSize * _default_' range=':= coalSize * _default_'/>
                    <Setting name='OreDensity' avg=':= 0.75 * _default_'/>
                    <BiomeType name='Swamp'/>
                    <Veins name='CoalHintVeins' block='minecraft:coal_ore' inherits='PresetHintVeins'>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60101010</WireframeColor> 
                        <Setting name='MotherlodeFrequency' avg=':= 1.2 * _default_' range=':= _default_'/> 
                        <Setting name='MotherlodeRangeLimit' avg=':= coalSize * _default_' range=':= coalSize * _default_'/>
                    </Veins>                
                </Cloud>
            </IfCondition>  
            
        </ConfigSection>
                
        <!--*******************   Iron   ***********************-->
        <ConfigSection>
        
            <IfCondition condition=':= ironDist = "vanillaStdGen"'>
                <StandardGen name='IronStandard' block='minecraft:iron_ore' inherits='PresetStandardGen'> 
                    <Description> Equivalent to vanilla minecraft iron distribution </Description>
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40221100</WireframeColor> 
                    <Setting name='Size' avg=':= ironSize * _default_'/> 
                    <Setting name='Frequency' avg=':= ironFreq * _default_'/>
                    <Setting name='Height' avg='32' range='32' scaleTo='sealevel'/> 
                </StandardGen> 
            </IfCondition>
            
            <IfCondition condition=':= ironDist = "layeredVeins"'>
                <Veins name='IronVeins' block='minecraft:iron_ore' inherits='PresetLayeredVeins'>
                    <Description> 
                        Iron spawns in the height 30-50 range.  The veins are average in length and size.
                    </Description> 
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40221100</WireframeColor> 
                    <Setting name='MotherlodeFrequency' avg=':= 0.9 * ironFreq * _default_'/>
                    <Setting name='MotherlodeSize' avg=':= ironSize * _default_' range=':= ironSize * _default_'/>
                    <Setting name='MotherlodeHeight' avg='43'
                             range='10.5' type='normal' scaleTo='sealevel'/>
                    <Setting name='BranchHeightLimit' avg='10.5'/>
                    <Setting name='SegmentRadius' avg=':= ironSize * _default_' range=':= ironSize * _default_'/>
                </Veins>
                <Veins name='IronVeinsCold' inherits='IronVeins'>
                    <Description> This roughly triples the chance of finding iron in cold/icy biomes. </Description> 
                    <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                    <Setting name='MotherlodeHeight' avg=':=_default_' range=':= 2 * _default_'/>
                    <Setting name='BranchHeightLimit' avg=':= 2 * _default_'/>  
                    <BiomeType name='Cold'/>
                    <BiomeType name='Ocean' weight='-1'/>
                </Veins>
            </IfCondition>   
                
            <IfCondition condition=':= ironDist = "strategicClouds"'>
                <Cloud name='IronCloud' block='minecraft:iron_ore' inherits='PresetStrategicCloud'>
                    <Description>  
                        Diffuse iron cloud surrounded by single-block "hint" veins, found in cold biomes.
                    </Description> 
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40221100</WireframeColor> 
                    <Setting name='DistributionFrequency' avg=':= 2.5 * ironFreq * _default_'/>
                    <Setting name='CloudRadius' avg=':= ironSize * _default_' range=':= ironSize * _default_'/>
                    <Setting name='CloudThickness' avg=':= ironSize * _default_' range=':= ironSize * _default_'/> 
                    <BiomeType name='Cold'/>
                    <BiomeType name='Ocean' weight='-1'/>
                    <Veins name='IronHintVeins' block='minecraft:iron_ore' inherits='PresetHintVeins'>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x40221100</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= _default_' range=':= _default_'/>   
                        <Setting name='MotherlodeRangeLimit' avg=':= ironSize * _default_' range=':= ironSize * _default_'/>              
                    </Veins>                         
                </Cloud> 
            </IfCondition>      
       
        </ConfigSection>           
        
        <!--*******************   Gold   ***********************-->
        <ConfigSection>
        
            <IfCondition condition=':= goldDist = "vanillaStdGen"'>
                <StandardGen name='GoldStandard' block='minecraft:gold_ore' inherits='PresetStandardGen'> 
                    <Description> Equivalent to vanilla minecraft gold distribution </Description>
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40443300</WireframeColor> 
                    <Setting name='Size' avg=':= goldSize * _default_'/> 
                    <Setting name='Frequency' avg=':= 0.1 * goldFreq * _default_'/>
                    <Setting name='Height' avg=':= 16/64 * dimension.groundLevel' range=':= 16/64 * dimension.groundLevel'/>
                </StandardGen> 
            </IfCondition>
                
            <IfCondition condition=':= goldDist = "layeredVeins"'>
                <Veins name='GoldVeins' block='minecraft:gold_ore' inherits='PresetLayeredVeins'> 
                    <Description> 
                        Gold spawns in the height 10-30 range.  The veins are shorter than average,
                        and much rarer overall.  Gold is not easy to find.
                    </Description>  
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40443300</WireframeColor> 
                    <Setting name='MotherlodeFrequency' avg=':= 0.85 * goldFreq * _default_'/>
                    <Setting name='MotherlodeSize' avg=':= 0.8 * goldSize * _default_' range=':= 0.5 * goldSize * _default_'/>
                    <Setting name='MotherlodeHeight' avg=':= 20/64 * dimension.groundLevel' range=':= 10/64 * dimension.groundLevel' type='normal'/>
                    <Setting name='BranchHeightLimit' avg='10'/>  
                    <Setting name='BranchFrequency' avg=':= 0.85 * _default_'/> 
                    <Setting name='BranchLength' avg=':= 0.75 * _default_' range=':= 0.66 * _default_'/>
                    <Setting name='SegmentRadius' avg=':= 0.7 * goldSize * _default_' range=':= 0.5 * goldSize * _default_'/>
                    <Setting name='SegmentAngle' avg='0.6' range='0.40' /> 
            <Setting name='SegmentPitch' avg='0.6' range='0.40' /> 
                </Veins>
                <Veins name='GoldVeinsForest' inherits='GoldVeins'>
                    <Description> This roughly triples the chance of finding gold in forested biomes. </Description> 
                    <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                    <Setting name='MotherlodeHeight' avg=':=_default_' range=':= 2 * _default_'/>
                    <Setting name='BranchHeightLimit' avg=':= 2 * _default_'/>  
                    <BiomeType name='Forest'/>    
                </Veins>
            </IfCondition>
                
            <IfCondition condition=':= goldDist = "strategicClouds"'>
                <Cloud name='GoldCloud' block='minecraft:gold_ore' inherits='PresetStrategicCloud'>
                    <Description>  
                        Diffuse gold cloud surrounded by single-block "hint" veins, found in forest biomes.
                    </Description> 
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40443300</WireframeColor> 
                    <Setting name='DistributionFrequency' avg=':= 4.5 * goldFreq * _default_'/>
                    <Setting name='CloudRadius' avg=':= 0.8 * goldSize * _default_' range=':= 0.8 * goldSize * _default_'/>
                    <Setting name='CloudThickness' avg=':= 0.8 * goldSize * _default_' range=':= goldSize * _default_'/>
                    <Setting name='OreDensity' avg=':= 0.3 * _default_'/>
                    <BiomeType name='Forest'/>    
                    <Veins name='GoldHintVeins' block='minecraft:gold_ore' inherits='PresetHintVeins'>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x40443300</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 0.3 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeRangeLimit' avg=':= 0.75 * goldSize * _default_' range=':= 0.65 * goldSize * _default_'/>                    
                    </Veins>             
                </Cloud>
            </IfCondition>      
       
        </ConfigSection>           
        
        <!--*****************   Redstone   *********************-->
        <ConfigSection>
       
            <IfCondition condition=':= redstoneDist = "vanillaStdGen"'>
                <StandardGen name='RedstoneStandard' block='minecraft:redstone_ore' inherits='PresetStandardGen'> 
                    <Description> Equivalent to vanilla minecraft redstone distribution </Description>
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40550000</WireframeColor> 
                    <Setting name='Size' avg=':= 7/8 * redstoneSize * _default_'/>
                    <Setting name='Frequency' avg=':= 0.4 * redstoneFreq * _default_'/>
                    <Setting name='Height' avg=':= 8/64 * dimension.groundLevel' range=':= 8/64 * dimension.groundLevel'/>
                </StandardGen>
            </IfCondition>
                
            <IfCondition condition=':= redstoneDist = "layeredVeins"'>
                <Veins name='RedstoneVeins' block='minecraft:redstone_ore' inherits='PresetVerticalVeins'> 
                    <Description> 
                        Isolated veins (no motherlodes) that run vertically.  These veins are fairly common, but a challenge to mine because you have to tunnel straight down.
                    </Description>  
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40550000</WireframeColor> 
                    <Setting name='MotherlodeFrequency' avg=':= 1.3 * redstoneFreq * _default_'/>
                    <Setting name='SegmentRadius' avg=':= redstoneSize * _default_' range=':= redstoneSize * _default_'/>
                </Veins>
                <Veins name='RedstoneVeinsDesert' inherits='RedstoneVeins'> 
                    <Description> This roughly triples the chance of finding redstone in deserts. </Description> 
                    <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/> 
                    <ReplacesOre block='stone'/>
                    <Replaces block='minecraft:sandstone'/> 
                    <BiomeType name='Sandy'/>    
                </Veins>
            </IfCondition>
                
            <IfCondition condition=':= redstoneDist = "strategicClouds"'>
                <Cloud name='RedstoneCloud' block='minecraft:redstone_ore' inherits='PresetStrategicCloud'>
                    <Description> 
                        Diffuse redstone cloud surrounded by single-block "hint" veins, found in deserts.
                    </Description> 
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40550000</WireframeColor> 
                    <Setting name='DistributionFrequency' avg=':= 4.5 * redstoneFreq * _default_'/>
                    <Setting name='CloudRadius' avg=':= 0.65 * redstoneSize * _default_' range=':= 0.5 * redstoneSize * _default_'/>
                    <Setting name='CloudThickness' avg=':= 0.7 * redstoneSize * _default_' range=':= 0.7 * redstoneSize * _default_'/>
                    <BiomeType name='Sandy'/>    
                    <Veins name='RedstoneHintVeins' block='minecraft:redstone_ore' inherits='PresetHintVeins'>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x40550000</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 0.7 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeRangeLimit' avg=':= 0.65 * redstoneSize * _default_' range=':= 0.65 * redstoneSize * _default_'/>                    
                        <ReplacesOre block='stone'/>
                        <Replaces block='minecraft:sandstone'/>             
                    </Veins>         
                </Cloud>
            </IfCondition>  
        
        </ConfigSection>           
        
        <!--*****************   Diamond   **********************-->
        <ConfigSection> 
            
            <IfCondition condition=':= diamondDist = "vanillaStdGen"'>
                <StandardGen name='DiamondStandard' block='minecraft:diamond_ore' inherits='PresetStandardGen'> 
                    <Description> Equivalent to vanilla minecraft diamond distribution </Description>
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40336699</WireframeColor> 
                    <Setting name='Size' avg=':= 7/8 * diamondSize * _default_'/>
                    <Setting name='Frequency' avg=':= 1/20 * diamondFreq * _default_'/>
                    <Setting name='Height' avg=':= 8/64 * dimension.groundLevel' range=':= 8/64 * dimension.groundLevel'/>
                </StandardGen>
            </IfCondition>
                
            <IfCondition condition=':= diamondDist = "layeredVeins"'>
                <Veins name="DiamondVeins" block='minecraft:diamond_ore' inherits='PresetPipeVeins' seed='0xF186'>
                    <Description> Short sparsely filled tubes starting at bedrock. </Description>
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40336699</WireframeColor> 
                    <Setting name='MotherlodeFrequency' avg=':= 0.8 * diamondFreq * _default_'/> 
                    <Setting name='MotherlodeHeight' avg=':= 3/64 * dimension.groundLevel' range='0'/>
                    <Setting name='MotherlodeSize' avg=':= diamondSize * _default_' range=':= diamondSize * _default_'/>
                    <Setting name='SegmentRadius' avg=':= diamondSize * _default_' range=':= diamondSize * _default_'/>
                    <Setting name='OreDensity' avg=':= 1.0 * _default_'/>
                </Veins>
                <Veins name="DiamondVeinsLava" block='minecraft:lava' inherits='DiamondVeins' seed='0xF186'>
                    <Description> Fills center of each tube with lava, forming "kimberlite pipes" </Description>
                    <Setting name='MotherlodeSize' avg=':= 0.5 * _default_'/>
                    <Setting name='SegmentRadius' avg=':= 0.5 * _default_'/>
                    <Setting name='OreDensity' avg='1' range='0'/>
                    <ReplacesOre block='stone'/>
                    <Replaces block='minecraft:dirt'/>
                    <Replaces block='minecraft:gravel'/>
                    <Replaces block='minecraft:diamond_ore'/>
                </Veins>
            </IfCondition>
                
            <IfCondition condition=':= diamondDist = "strategicClouds"'>
                <Cloud name='DiamondCloud' block='minecraft:diamond_ore' inherits='PresetStrategicCloud'>
                    <Description>  Diffuse diamond cloud with no internal density noise. </Description> 
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40336699</WireframeColor> 
                    <Setting name='DistributionFrequency' avg=':= 10 * diamondFreq * _default_'/>
                    <Setting name='CloudRadius' avg=':= 0.5 * diamondSize * _default_' range=':= 0.5 * diamondSize * _default_'/>
                    <Setting name='CloudThickness' avg=':= 0.2 * diamondSize * _default_' range=':= 0.17 * diamondSize * _default_'/>
                    <Setting name='CloudHeight' avg=':= 14/64 * dimension.groundLevel' range=':= 5/64 * dimension.groundLevel'/>
                    <Setting name='OreRadiusMult' avg='1' range='0.2'/>
                    <Setting name='OreDensity' avg=':= 0.4 * _default_'/>                
                    <Setting name='OreVolumeNoiseCutoff' avg='0'/>   
                </Cloud>
            </IfCondition>
        
        </ConfigSection>           
        
        <!--***************   Lapis Lazuli   *******************-->
        <ConfigSection> 
        
            <IfCondition condition=':= lapisDist = "vanillaStdGen"'>
                <StandardGen name='LapisLazuliStandard' block='minecraft:lapis_ore' inherits='PresetStandardGen'> 
                    <Description> Equivalent to vanilla minecraft lapis lazuli distribution </Description>
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40000055</WireframeColor> 
                    <Setting name='Size' avg=':= 6/8 * lapisSize * _default_'/>
                    <Setting name='Frequency' avg=':= 0.05 * lapisFreq * _default_'/>
                    <Setting name='Height' avg=':= 16/64 * dimension.groundLevel' range=':= 16/64 * dimension.groundLevel' type='normal'/>
                </StandardGen>
            </IfCondition>
                
            <IfCondition condition=':= lapisDist = "layeredVeins"'>
                <Veins name='LapisLazuliVeins' block='minecraft:lapis_ore' inherits='PresetVerticalVeins'>         
                    <Description> 
                        Lapis Lazuli spawns in isolated veins that run vertically upward, much like redstone.  However,
                        lapis veins are too deep to break the suface except occassionally under oceans.
                    </Description> 
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40000055</WireframeColor> 
                    <Setting name='MotherlodeFrequency' avg=':= 0.4 * lapisFreq * _default_'/>
                    <Setting name='MotherlodeHeight' avg=':= 8/64 * dimension.groundLevel' range='4'/>
                    <Setting name='BranchLength' avg=':= 36/64 * dimension.groundLevel' range='12' type='normal'/>
                    <Setting name='BranchInclination' avg=':= -_default_' range=':=_default_'/>     
                    <Setting name='SegmentRadius' avg=':= lapisSize * _default_' range=':= lapisSize * _default_'/>          
                </Veins> 
                <Veins name='LapisLazuliVeinsOcean' inherits='LapisLazuliVeins'>
                    <Description> This roughly triples the chance of finding lapis lazuli under oceans. </Description> 
                    <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                    <ReplacesOre block='stone'/>
                    <Replaces block='minecraft:dirt'/> 
                    <Replaces block='minecraft:sand'/>
                    <BiomeType name='Ocean'/>
                </Veins>
            </IfCondition>
                
            <IfCondition condition=':= lapisDist = "strategicClouds"'>
                <Cloud name='LapisLazuliCloud' block='minecraft:lapis_ore' inherits='PresetStrategicCloud'>
                    <Description>  Diffuse lapis lazuli cloud surrounded by single-block "hint" veins, found under oceans </Description> 
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40000055</WireframeColor> 
                    <Setting name='DistributionFrequency' avg=':= 2.5 * lapisFreq * _default_'/>
                    <Setting name='CloudRadius' avg=':= 0.65 * lapisSize * _default_' range=':= 0.5 * lapisSize * _default_'/>
                    <Setting name='CloudThickness' avg=':= 0.7 * lapisSize * _default_' range=':= 0.7 * lapisSize * _default_'/> 
                    <BiomeType name='Ocean'/>
                    <Veins name='LapisLazuliHintVeins' block='minecraft:lapis_ore' inherits='PresetHintVeins'>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x40000055</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 0.7 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeRangeLimit' avg=':= 0.65 * lapisSize * _default_' range=':= 0.65 * lapisSize * _default_'/>                  
                    </Veins>                    
                </Cloud>
            </IfCondition>
        
        </ConfigSection>           
        
        <!--*****************   Emerald   **********************-->
        <ConfigSection>

            <IfCondition condition=':= emeraldDist = "vanillaStdGen"'>
                <StandardGen name='EmeraldStandard' block='minecraft:emerald_ore' inherits='PresetStandardGen'> 
                    <Description> Equivalent to vanilla minecraft diamond distribution </Description>
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40339966</WireframeColor> 
                    <Setting name='Size' avg=':= 2/8 * emeraldSize * _default_'/>
                    <Setting name='Frequency' avg=':= 6/20 * emeraldFreq * _default_' 
                                              range=':= 2 * emeraldFreq'/>
                    <Setting name='Height' avg=':= 18/64 * dimension.groundLevel' range=':= 14/64 * dimension.groundLevel'/>
                    <BiomeType name='Mountain'/>
                    <Biome name='Green\s*Hills'/> <Comment> ExtraBiomesXL </Comment>
                </StandardGen>   
            </IfCondition>         
                
            <IfCondition condition=':= emeraldDist = "layeredVeins"'>
                <Veins name="EmeraldVeins" block='minecraft:emerald_ore' inherits='PresetPipeVeins' seed='0x3966'>
                    <Description> Short sparsely filled tubes.  5x more common in Extreme Hills. </Description>
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40339966</WireframeColor>
                    <Setting name='MotherlodeFrequency' avg=':= 0.9 * emeraldFreq * _default_'/> 
                    <Setting name='MotherlodeHeight' avg=':= 10/64 * dimension.groundLevel' range=':= 4/64 * dimension.groundLevel'/>
                    <Setting name='MotherlodeSize' avg=':= 0.85 * emeraldSize * _default_' range=':= 0.7 * emeraldSize * _default_'/>
                    <Setting name='BranchInclination' avg='0.55' range='0.7' type='normal'/>
                    <Setting name='SegmentRadius' avg=':= 0.85 * emeraldSize * _default_' range=':= 0.7 * emeraldSize * _default_'/>
                    <Setting name='OreDensity' avg=':= 1.2 * _default_'/>
                    <Biome name='.*' weight='0.20'/>
                    <BiomeType name='Mountain'/>
                    <Biome name='Green\s*Hills'/> <Comment> ExtraBiomesXL </Comment>
                </Veins>
                <Veins name="EmeraldVeinsSilverfish" block='minecraft:monster_egg' inherits='EmeraldVeins' seed='0x3966'>
                    <Description> 
                        Fill center of tubes with silverfish spawners. 
                        Credit: based on novel examples by AnonymousViking from the MC forums.
                    </Description>
                    <Setting name='MotherlodeSize' avg='0.51' range='0.1'/>
                    <Setting name='SegmentRadius' avg='0.51' range='0.1'/>
                    <Setting name='OreDensity' avg='1' range='0'/>
                    <ReplacesOre block='stone'/>
                    <Replaces block='minecraft:emerald_ore'/>
                </Veins>
            </IfCondition>
                
            <IfCondition condition=':= emeraldDist = "strategicClouds"'>
                <Cloud name='EmeraldCloud' block='minecraft:emerald_ore' inherits='PresetStrategicCloud'>
                    <Description>  
                        Diffuse emerald cloud with no internal density noise, found in extreme hills.
                    </Description> 
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
                    <WireframeColor>0x40339966</WireframeColor>                
                    <Setting name='DistributionFrequency' avg=':= 45 * emeraldFreq * _default_'/>
                    <Setting name='CloudRadius' avg=':= 0.4 * emeraldSize * _default_' range=':= 0.4 * emeraldSize * _default_'/>
                    <Setting name='CloudThickness' avg=':= 0.2 * emeraldSize * _default_' range=':= 0.17 * emeraldSize * _default_'/>
                    <Setting name='CloudHeight' avg=':= 10/64 * dimension.groundLevel' range=':= 5/64 * dimension.groundLevel'/>
                    <Setting name='OreRadiusMult' avg='1' range='0.2'/> 
                    <Setting name='OreDensity' avg=':= 0.4 * _default_'/> 
                    <Setting name='OreVolumeNoiseCutoff' avg='0'/>   
                    <BiomeType name='Mountain'/>
                    <Biome name='Green\s*Hills'/> <Comment> ExtraBiomesXL </Comment>
                </Cloud>
            </IfCondition>
            
        </ConfigSection>
        
    </IfCondition>
    
</ConfigSection>
