
<!-- ================================================================ 

Custom Ore Generation:   ElectriCraft Module

Generates: 
Copper, Tin, Silver, Nickel, Aluminum, Platinum

================================================================ -->

    <!-- Mod detection -->
    <IfModInstalled name="ElectriCraft">
    
        <!-- Starting Configuration for Custom Ore Generation. -->
        <ConfigSection>
        
            
            <!-- Setup Screen Configuration -->
            <ConfigSection>
                <OptionDisplayGroup name='groupElectriCraft' displayName='ElectriCraft' displayState='shown'> 
                    <Description>
                        Distribution options for ElectriCraft Ores.
                    </Description>
                </OptionDisplayGroup>
                
                <!-- Copper Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='elcrCopperDist'  displayState='shown' displayGroup='groupElectriCraft'> 
                        <Description> Controls how Copper is generated </Description> 
                        <DisplayName>ElectriCraft Copper</DisplayName>
                        <Choice value='layeredVeins' displayValue='Layered Veins'>
                            <Description>
                                Layered Veins.
                            </Description>
                        </Choice>
                        <Choice value='hugeVeins' displayValue='Huge Veins'>
                            <Description>
                                Huge Veins.
                            </Description>
                        </Choice>
                        <Choice value='strategicCloud' displayValue='Clouds'>
                            <Description>
                                Strategic Clouds.
                            </Description>
                        </Choice>
                        <Choice value='vanillaStdGen' displayValue='Vanilla'>
                            <Description>
                                Vanilla-style clusters.
                            </Description>
                        </Choice>
                        <Choice value='none' displayValue='None' description='Copper is not generated in the world.'/>
                    </OptionChoice>
                    <OptionNumeric name='elcrCopperFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupElectriCraft'>
                        <Description> Frequency multiplier for ElectriCraft Copper distributions </Description>
                        <DisplayName>ElectriCraft Copper Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='elcrCopperSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupElectriCraft'>
                        <Description> Size multiplier for ElectriCraft Copper distributions </Description>
                        <DisplayName>ElectriCraft Copper Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Copper Configuration UI Complete -->
                
                
                <!-- Tin Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='elcrTinDist'  displayState='shown' displayGroup='groupElectriCraft'> 
                        <Description> Controls how Tin is generated </Description> 
                        <DisplayName>ElectriCraft Tin</DisplayName>
                        <Choice value='layeredVeins' displayValue='Layered Veins'>
                            <Description>
                                Layered Veins.
                            </Description>
                        </Choice>
                        <Choice value='hugeVeins' displayValue='Huge Veins'>
                            <Description>
                                Huge Veins.
                            </Description>
                        </Choice>
                        <Choice value='strategicCloud' displayValue='Clouds'>
                            <Description>
                                Strategic Clouds.
                            </Description>
                        </Choice>
                        <Choice value='vanillaStdGen' displayValue='Vanilla'>
                            <Description>
                                Vanilla-style clusters.
                            </Description>
                        </Choice>
                        <Choice value='none' displayValue='None' description='Tin is not generated in the world.'/>
                    </OptionChoice>
                    <OptionNumeric name='elcrTinFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupElectriCraft'>
                        <Description> Frequency multiplier for ElectriCraft Tin distributions </Description>
                        <DisplayName>ElectriCraft Tin Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='elcrTinSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupElectriCraft'>
                        <Description> Size multiplier for ElectriCraft Tin distributions </Description>
                        <DisplayName>ElectriCraft Tin Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Tin Configuration UI Complete -->
                
                
                <!-- Silver Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='elcrSilverDist'  displayState='shown' displayGroup='groupElectriCraft'> 
                        <Description> Controls how Silver is generated </Description> 
                        <DisplayName>ElectriCraft Silver</DisplayName>
                        <Choice value='layeredVeins' displayValue='Layered Veins'>
                            <Description>
                                Layered Veins.
                            </Description>
                        </Choice>
                        <Choice value='hugeVeins' displayValue='Huge Veins'>
                            <Description>
                                Huge Veins.
                            </Description>
                        </Choice>
                        <Choice value='strategicCloud' displayValue='Clouds'>
                            <Description>
                                Strategic Clouds.
                            </Description>
                        </Choice>
                        <Choice value='vanillaStdGen' displayValue='Vanilla'>
                            <Description>
                                Vanilla-style clusters.
                            </Description>
                        </Choice>
                        <Choice value='none' displayValue='None' description='Silver is not generated in the world.'/>
                    </OptionChoice>
                    <OptionNumeric name='elcrSilverFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupElectriCraft'>
                        <Description> Frequency multiplier for ElectriCraft Silver distributions </Description>
                        <DisplayName>ElectriCraft Silver Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='elcrSilverSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupElectriCraft'>
                        <Description> Size multiplier for ElectriCraft Silver distributions </Description>
                        <DisplayName>ElectriCraft Silver Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Silver Configuration UI Complete -->
                
                
                <!-- Nickel Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='elcrNickelDist'  displayState='shown' displayGroup='groupElectriCraft'> 
                        <Description> Controls how Nickel is generated </Description> 
                        <DisplayName>ElectriCraft Nickel</DisplayName>
                        <Choice value='layeredVeins' displayValue='Layered Veins'>
                            <Description>
                                Layered Veins.
                            </Description>
                        </Choice>
                        <Choice value='hugeVeins' displayValue='Huge Veins'>
                            <Description>
                                Huge Veins.
                            </Description>
                        </Choice>
                        <Choice value='strategicCloud' displayValue='Clouds'>
                            <Description>
                                Strategic Clouds.
                            </Description>
                        </Choice>
                        <Choice value='vanillaStdGen' displayValue='Vanilla'>
                            <Description>
                                Vanilla-style clusters.
                            </Description>
                        </Choice>
                        <Choice value='none' displayValue='None' description='Nickel is not generated in the world.'/>
                    </OptionChoice>
                    <OptionNumeric name='elcrNickelFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupElectriCraft'>
                        <Description> Frequency multiplier for ElectriCraft Nickel distributions </Description>
                        <DisplayName>ElectriCraft Nickel Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='elcrNickelSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupElectriCraft'>
                        <Description> Size multiplier for ElectriCraft Nickel distributions </Description>
                        <DisplayName>ElectriCraft Nickel Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Nickel Configuration UI Complete -->
                
                
                <!-- Aluminum Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='elcrAluminumDist'  displayState='shown' displayGroup='groupElectriCraft'> 
                        <Description> Controls how Aluminum is generated </Description> 
                        <DisplayName>ElectriCraft Aluminum</DisplayName>
                        <Choice value='layeredVeins' displayValue='Layered Veins'>
                            <Description>
                                Layered Veins.
                            </Description>
                        </Choice>
                        <Choice value='hugeVeins' displayValue='Huge Veins'>
                            <Description>
                                Huge Veins.
                            </Description>
                        </Choice>
                        <Choice value='strategicCloud' displayValue='Clouds'>
                            <Description>
                                Strategic Clouds.
                            </Description>
                        </Choice>
                        <Choice value='vanillaStdGen' displayValue='Vanilla'>
                            <Description>
                                Vanilla-style clusters.
                            </Description>
                        </Choice>
                        <Choice value='none' displayValue='None' description='Aluminum is not generated in the world.'/>
                    </OptionChoice>
                    <OptionNumeric name='elcrAluminumFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupElectriCraft'>
                        <Description> Frequency multiplier for ElectriCraft Aluminum distributions </Description>
                        <DisplayName>ElectriCraft Aluminum Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='elcrAluminumSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupElectriCraft'>
                        <Description> Size multiplier for ElectriCraft Aluminum distributions </Description>
                        <DisplayName>ElectriCraft Aluminum Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Aluminum Configuration UI Complete -->
                
                
                <!-- Platinum Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='elcrPlatinumDist'  displayState='shown' displayGroup='groupElectriCraft'> 
                        <Description> Controls how Platinum is generated </Description> 
                        <DisplayName>ElectriCraft Platinum</DisplayName>
                        <Choice value='layeredVeins' displayValue='Layered Veins'>
                            <Description>
                                Layered Veins.
                            </Description>
                        </Choice>
                        <Choice value='hugeVeins' displayValue='Huge Veins'>
                            <Description>
                                Huge Veins.
                            </Description>
                        </Choice>
                        <Choice value='strategicCloud' displayValue='Clouds'>
                            <Description>
                                Strategic Clouds.
                            </Description>
                        </Choice>
                        <Choice value='vanillaStdGen' displayValue='Vanilla'>
                            <Description>
                                Vanilla-style clusters.
                            </Description>
                        </Choice>
                        <Choice value='none' displayValue='None' description='Platinum is not generated in the world.'/>
                    </OptionChoice>
                    <OptionNumeric name='elcrPlatinumFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupElectriCraft'>
                        <Description> Frequency multiplier for ElectriCraft Platinum distributions </Description>
                        <DisplayName>ElectriCraft Platinum Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='elcrPlatinumSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupElectriCraft'>
                        <Description> Size multiplier for ElectriCraft Platinum distributions </Description>
                        <DisplayName>ElectriCraft Platinum Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Platinum Configuration UI Complete -->
                
            </ConfigSection>
            <!-- Setup Screen Complete -->


            <!-- Setup Overworld -->
            <IfCondition condition=':= ?COGActive'>
                
                <!-- Starting Original Overworld Ore Removal -->
                <Substitute name='elcrOverworldOreSubstitute0' block='minecraft:stone'>
                    <Description>
                        Replace vanilla-generated ore clusters.
                    </Description>
                    <Comment>
                        The global option deferredPopulationRange must be large enough to catch all ore clusters (>= 32).
                    </Comment>
                    <Replaces block='ElectriCraft:electricraft_block_ore:0' />
                    <Replaces block='ElectriCraft:electricraft_block_ore:1' />
                    <Replaces block='ElectriCraft:electricraft_block_ore:2' />
                    <Replaces block='ElectriCraft:electricraft_block_ore:3' />
                    <Replaces block='ElectriCraft:electricraft_block_ore:4' />
                    <Replaces block='ElectriCraft:electricraft_block_ore:5' />
                </Substitute>
                <!-- Original Overworld Ore Removal Complete -->
                
                <!-- Adding ores --> 
                
                <!-- Begin Copper Generation --> 
                
                <!-- Begin LayeredVeins distribution of Copper -->
                <IfCondition condition=':= elcrCopperDist = "layeredVeins"'>
                
                    <Veins name='elcrCopperBaseVeins' block='ElectriCraft:electricraft_block_ore' inherits='PresetLayeredVeins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60BB6E30</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.9 * elcrCopperSize * _default_' range=':= 1 * 0.9 * elcrCopperSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 45' range=':= 10' type='normal' scaleTo='Biome'/> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.9 * elcrCopperSize * _default_' range=':= 1 * 0.9 * elcrCopperSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.9 * elcrCopperFreq * _default_'/>
                        <Setting name='BranchFrequency' avg=':= 0.95 * _default_'/>
                        <Setting name='BranchLength' avg=':= 0.95 * _default_' range=':= 0.95 * _default_'/>
                        <Setting name='BranchHeightLimit' avg=':= 12'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Copper Layered Veins) Settings -->
                    <Veins name='elcrCopperPrefersVeins' block='ElectriCraft:electricraft_block_ore' inherits='elcrCopperBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60BB6E30</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Jungle'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Copper Layered Veins) Settings -->
                
                </IfCondition>
                <!-- End LayeredVeins distribution of Copper -->
                
                
                <!-- Begin  Huge Veins distribution of Copper -->
                <IfCondition condition=':= elcrCopperDist = "hugeVeins"'>
                
                    <Veins name='elcrCopperBaseVeins' block='ElectriCraft:electricraft_block_ore' inherits='PresetHugeVeins'>
                        <Description>
                            Very large, extremely rare motherlodes.  Each motherlode has many long slender branches - so thin that
                            parts of the branch won't contain any ore at all.  This, combined with the incredible length of the
                            branches, makes them more challenging to follow underground.  Once found, however, a motherlode contains
                            enough ore to keep a player supplied for a very long time.
                            The rarity of these veins might be too frustrating in a single-player setting.  In SMP, though, teamwork 
                            could make finding them much easier and the motherlodes are big enough to supply several people without
                            shortage.  This might be a good way to add challenge to multiplayer worlds.
                            Credit: based on feedback by dyrewulf from the MC forums.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60BB6E30</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.9 * elcrCopperSize * _default_' range=':= 1 * 0.9 * elcrCopperSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 45' range=':= 10' type='normal' scaleTo='Biome' /> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.9 * elcrCopperSize * _default_' range=':= 1 * 0.9 * elcrCopperSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.9 * elcrCopperFreq * _default_'/>
                        <Setting name='BranchFrequency' avg=':= 0.95 * _default_'/>
                        <Setting name='BranchLength' avg=':= 0.95 * _default_' range=':= 0.95 * _default_'/>
                        <Setting name='BranchHeightLimit' avg=':= 12'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Copper Huge Veins) Settings -->
                    <Veins name='elcrCopperPrefersVeins' block='ElectriCraft:electricraft_block_ore' inherits='elcrCopperBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60BB6E30</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Jungle'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Copper Huge Veins) Settings -->
                
                </IfCondition>
                <!-- End  Huge Veins distribution of Copper -->
                
                
                <!-- Begin  StrategicCloud distribution of Copper -->
                <IfCondition condition=':= elcrCopperDist = "strategicCloud"'>
                
                    <Cloud name='elcrCopperBaseCloud' block='ElectriCraft:electricraft_block_ore' inherits='PresetStrategicCloud'>
                        <Description>
                            Large irregular clouds filled lightly with ore.  These are huge, spanning several 
                            adjacent chunks, and consequently rather rare.  They contain a sizeable amount of 
                            ore, but it takes some time and effort to mine due to low density.
                            The intent for strategic clouds is that the player will need to actively search for
                            one and then set up a semi-permanent mining base and spend some time actually mining
                            the ore.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60BB6E30</WireframeColor>
                        <Setting name='CloudRadius' avg=':= 1 * 0.95 * elcrCopperSize * _default_' range=':= 1 * 0.95 * elcrCopperSize * _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.95 * elcrCopperSize * _default_' range=':= 1 * 0.95 * elcrCopperSize * _default_'/>
                        <Setting name='CloudHeight' avg=':= _default_' range=':= _default_' type='normal' scaleTo='Biome'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.95 * 0.95 * elcrCopperSize * _default_' range=':= 1 * 0.95 * 0.95 * elcrCopperSize  * _default_'/>
                        <Setting name='DistributionFrequency' avg=':= 1 * 2.5 * elcrCopperFreq *_default_'/>
                        <Replaces block='minecraft:stone'/>
                        
                        <!-- Begin Copper Strategic Cloud Hint Veins -->
                        <Veins name='elcrCopperBaseHintVeins' block='ElectriCraft:electricraft_block_ore' inherits='PresetHintVeins'>
                            <Description>
                                Single blocks, generously scattered through all heights (density is about that of vanilla iron ore). 
                                They will replace dirt and sandstone (but not grass or sand), so they can be found nearer  
                                to the surface than most ores.  Intened to be used as a child distribution for large, rare strategic  
                                deposits that would otherwise be very difficult to find. 
                            </Description>
                            <DrawWireframe>:=drawWireframes</DrawWireframe>
                            <WireframeColor>0x60BB6E30</WireframeColor>
                            <Replaces block='minecraft:dirt'/>
                            <Replaces block='minecraft:sandstone'/>
                            <Replaces block='minecraft:stone'/>
                        </Veins>
                        <!-- End Copper Strategic Cloud Hint Veins -->

                    </Cloud>
                    
                
                </IfCondition>
                <!-- End  StrategicCloud distribution of Copper -->
                
                
                <!-- Begin  Vanilla distribution of Copper -->
                <IfCondition condition=':= elcrCopperDist = "vanillaStdGen"'>
                
                    <StandardGen name='elcrCopperBaseStandard' block='ElectriCraft:electricraft_block_ore' inherits='PresetStandardGen'>
                        <Description>
                            This mimics vanilla ore generation.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60BB6E30</WireframeColor>
                        <Setting name='Size' avg=':= 1 * 1 * elcrCopperSize * _default_'/>
                        <Setting name='Height' avg=':= 57' range=':= 17' type='uniform'/> 
                        <Setting name='Frequency' avg=':= 1 * 1.2 * elcrCopperFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                    </StandardGen>
                    
                
                </IfCondition>
                <!-- End  Vanilla distribution of Copper -->
                
                <!-- End Copper Generation --> 

                
                <!-- Begin Tin Generation --> 
                
                <!-- Begin LayeredVeins distribution of Tin -->
                <IfCondition condition=':= elcrTinDist = "layeredVeins"'>
                
                    <Veins name='elcrTinBaseVeins' block='ElectriCraft:electricraft_block_ore:1' inherits='PresetLayeredVeins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60A9C7CF</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.85 * elcrTinSize * _default_' range=':= 1 * 0.85 * elcrTinSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 30' range=':= 11' type='normal' scaleTo='Biome'/> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.85 * elcrTinSize * _default_' range=':= 1 * 0.85 * elcrTinSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.85 * elcrTinFreq * _default_'/>
                        <Setting name='BranchFrequency' avg=':= 0.9 * _default_'/>
                        <Setting name='BranchLength' avg=':= 0.9 * _default_' range=':= 1 * _default_'/>
                        <Setting name='BranchHeightLimit' avg=':= 11'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Tin Layered Veins) Settings -->
                    <Veins name='elcrTinPrefersVeins' block='ElectriCraft:electricraft_block_ore:1' inherits='elcrTinBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60A9C7CF</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Plains'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Tin Layered Veins) Settings -->
                
                </IfCondition>
                <!-- End LayeredVeins distribution of Tin -->
                
                
                <!-- Begin  Huge Veins distribution of Tin -->
                <IfCondition condition=':= elcrTinDist = "hugeVeins"'>
                
                    <Veins name='elcrTinBaseVeins' block='ElectriCraft:electricraft_block_ore:1' inherits='PresetHugeVeins'>
                        <Description>
                            Very large, extremely rare motherlodes.  Each motherlode has many long slender branches - so thin that
                            parts of the branch won't contain any ore at all.  This, combined with the incredible length of the
                            branches, makes them more challenging to follow underground.  Once found, however, a motherlode contains
                            enough ore to keep a player supplied for a very long time.
                            The rarity of these veins might be too frustrating in a single-player setting.  In SMP, though, teamwork 
                            could make finding them much easier and the motherlodes are big enough to supply several people without
                            shortage.  This might be a good way to add challenge to multiplayer worlds.
                            Credit: based on feedback by dyrewulf from the MC forums.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60A9C7CF</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.85 * elcrTinSize * _default_' range=':= 1 * 0.85 * elcrTinSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 30' range=':= 11' type='normal' scaleTo='Biome' /> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.85 * elcrTinSize * _default_' range=':= 1 * 0.85 * elcrTinSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.85 * elcrTinFreq * _default_'/>
                        <Setting name='BranchFrequency' avg=':= 0.9 * _default_'/>
                        <Setting name='BranchLength' avg=':= 0.9 * _default_' range=':= 1 * _default_'/>
                        <Setting name='BranchHeightLimit' avg=':= 11'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Tin Huge Veins) Settings -->
                    <Veins name='elcrTinPrefersVeins' block='ElectriCraft:electricraft_block_ore:1' inherits='elcrTinBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60A9C7CF</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Plains'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Tin Huge Veins) Settings -->
                
                </IfCondition>
                <!-- End  Huge Veins distribution of Tin -->
                
                
                <!-- Begin  StrategicCloud distribution of Tin -->
                <IfCondition condition=':= elcrTinDist = "strategicCloud"'>
                
                    <Cloud name='elcrTinBaseCloud' block='ElectriCraft:electricraft_block_ore:1' inherits='PresetStrategicCloud'>
                        <Description>
                            Large irregular clouds filled lightly with ore.  These are huge, spanning several 
                            adjacent chunks, and consequently rather rare.  They contain a sizeable amount of 
                            ore, but it takes some time and effort to mine due to low density.
                            The intent for strategic clouds is that the player will need to actively search for
                            one and then set up a semi-permanent mining base and spend some time actually mining
                            the ore.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60A9C7CF</WireframeColor>
                        <Setting name='CloudRadius' avg=':= 1 * 0.9 * elcrTinSize * _default_' range=':= 1 * 0.9 * elcrTinSize * _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.9 * elcrTinSize * _default_' range=':= 1 * 0.9 * elcrTinSize * _default_'/>
                        <Setting name='CloudHeight' avg=':= _default_' range=':= _default_' type='normal' scaleTo='Biome'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.9 * 0.9 * elcrTinSize * _default_' range=':= 1 * 0.9 * 0.9 * elcrTinSize  * _default_'/>
                        <Setting name='DistributionFrequency' avg=':= 1 * 2.5 * elcrTinFreq *_default_'/>
                        <Replaces block='minecraft:stone'/>
                        
                        <!-- Begin Tin Strategic Cloud Hint Veins -->
                        <Veins name='elcrTinBaseHintVeins' block='ElectriCraft:electricraft_block_ore:1' inherits='PresetHintVeins'>
                            <Description>
                                Single blocks, generously scattered through all heights (density is about that of vanilla iron ore). 
                                They will replace dirt and sandstone (but not grass or sand), so they can be found nearer  
                                to the surface than most ores.  Intened to be used as a child distribution for large, rare strategic  
                                deposits that would otherwise be very difficult to find. 
                            </Description>
                            <DrawWireframe>:=drawWireframes</DrawWireframe>
                            <WireframeColor>0x60A9C7CF</WireframeColor>
                            <Replaces block='minecraft:dirt'/>
                            <Replaces block='minecraft:sandstone'/>
                            <Replaces block='minecraft:stone'/>
                        </Veins>
                        <!-- End Tin Strategic Cloud Hint Veins -->

                    </Cloud>
                    
                
                </IfCondition>
                <!-- End  StrategicCloud distribution of Tin -->
                
                
                <!-- Begin  Vanilla distribution of Tin -->
                <IfCondition condition=':= elcrTinDist = "vanillaStdGen"'>
                
                    <StandardGen name='elcrTinBaseStandard' block='ElectriCraft:electricraft_block_ore:1' inherits='PresetStandardGen'>
                        <Description>
                            This mimics vanilla ore generation.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60A9C7CF</WireframeColor>
                        <Setting name='Size' avg=':= 1 * 1 * elcrTinSize * _default_'/>
                        <Setting name='Height' avg=':= 37' range=':= 17' type='uniform'/> 
                        <Setting name='Frequency' avg=':= 1 * 0.75 * elcrTinFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                    </StandardGen>
                    
                
                </IfCondition>
                <!-- End  Vanilla distribution of Tin -->
                
                <!-- End Tin Generation --> 

                
                <!-- Begin Silver Generation --> 
                
                <!-- Begin LayeredVeins distribution of Silver -->
                <IfCondition condition=':= elcrSilverDist = "layeredVeins"'>
                
                    <Veins name='elcrSilverBaseVeins' block='ElectriCraft:electricraft_block_ore:2' inherits='PresetLayeredVeins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60B6D2EA</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.85 * elcrSilverSize * _default_' range=':= 1 * 0.85 * elcrSilverSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 20' range=':= 10' type='normal' scaleTo='Biome'/> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.85 * elcrSilverSize * _default_' range=':= 1 * 0.85 * elcrSilverSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.85 * elcrSilverFreq * _default_'/>
                        <Setting name='BranchFrequency' avg=':= 0.85 * _default_'/>
                        <Setting name='BranchLength' avg=':= 0.8 * _default_' range=':= 0.75 * _default_'/>
                        <Setting name='BranchHeightLimit' avg=':= 12'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Silver Layered Veins) Settings -->
                    <Veins name='elcrSilverPrefersVeins' block='ElectriCraft:electricraft_block_ore:2' inherits='elcrSilverBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60B6D2EA</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Mountain'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Silver Layered Veins) Settings -->
                
                </IfCondition>
                <!-- End LayeredVeins distribution of Silver -->
                
                
                <!-- Begin  Huge Veins distribution of Silver -->
                <IfCondition condition=':= elcrSilverDist = "hugeVeins"'>
                
                    <Veins name='elcrSilverBaseVeins' block='ElectriCraft:electricraft_block_ore:2' inherits='PresetHugeVeins'>
                        <Description>
                            Very large, extremely rare motherlodes.  Each motherlode has many long slender branches - so thin that
                            parts of the branch won't contain any ore at all.  This, combined with the incredible length of the
                            branches, makes them more challenging to follow underground.  Once found, however, a motherlode contains
                            enough ore to keep a player supplied for a very long time.
                            The rarity of these veins might be too frustrating in a single-player setting.  In SMP, though, teamwork 
                            could make finding them much easier and the motherlodes are big enough to supply several people without
                            shortage.  This might be a good way to add challenge to multiplayer worlds.
                            Credit: based on feedback by dyrewulf from the MC forums.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60B6D2EA</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.85 * elcrSilverSize * _default_' range=':= 1 * 0.85 * elcrSilverSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 20' range=':= 10' type='normal' scaleTo='Biome' /> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.85 * elcrSilverSize * _default_' range=':= 1 * 0.85 * elcrSilverSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.85 * elcrSilverFreq * _default_'/>
                        <Setting name='BranchFrequency' avg=':= 0.85 * _default_'/>
                        <Setting name='BranchLength' avg=':= 0.8 * _default_' range=':= 0.75 * _default_'/>
                        <Setting name='BranchHeightLimit' avg=':= 12'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Silver Huge Veins) Settings -->
                    <Veins name='elcrSilverPrefersVeins' block='ElectriCraft:electricraft_block_ore:2' inherits='elcrSilverBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60B6D2EA</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Mountain'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Silver Huge Veins) Settings -->
                
                </IfCondition>
                <!-- End  Huge Veins distribution of Silver -->
                
                
                <!-- Begin  StrategicCloud distribution of Silver -->
                <IfCondition condition=':= elcrSilverDist = "strategicCloud"'>
                
                    <Cloud name='elcrSilverBaseCloud' block='ElectriCraft:electricraft_block_ore:2' inherits='PresetStrategicCloud'>
                        <Description>
                            Large irregular clouds filled lightly with ore.  These are huge, spanning several 
                            adjacent chunks, and consequently rather rare.  They contain a sizeable amount of 
                            ore, but it takes some time and effort to mine due to low density.
                            The intent for strategic clouds is that the player will need to actively search for
                            one and then set up a semi-permanent mining base and spend some time actually mining
                            the ore.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60B6D2EA</WireframeColor>
                        <Setting name='CloudRadius' avg=':= 1 * 0.8 * elcrSilverSize * _default_' range=':= 1 * 0.8 * elcrSilverSize * _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.8 * elcrSilverSize * _default_' range=':= 1 * 0.8 * elcrSilverSize * _default_'/>
                        <Setting name='CloudHeight' avg=':= _default_' range=':= _default_' type='normal' scaleTo='Biome'/>
                        <Setting name='OreDensity' avg=':= 1 * 0.5 * _default_' range=':= _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.8 * 0.8 * elcrSilverSize * _default_' range=':= 1 * 0.8 * 0.8 * elcrSilverSize  * _default_'/>
                        <Setting name='DistributionFrequency' avg=':= 1 * 4.5 * elcrSilverFreq *_default_'/>
                        <Replaces block='minecraft:stone'/>
                        
                        <!-- Begin Silver Strategic Cloud Hint Veins -->
                        <Veins name='elcrSilverBaseHintVeins' block='ElectriCraft:electricraft_block_ore:2' inherits='PresetHintVeins'>
                            <Description>
                                Single blocks, generously scattered through all heights (density is about that of vanilla iron ore). 
                                They will replace dirt and sandstone (but not grass or sand), so they can be found nearer  
                                to the surface than most ores.  Intened to be used as a child distribution for large, rare strategic  
                                deposits that would otherwise be very difficult to find. 
                            </Description>
                            <DrawWireframe>:=drawWireframes</DrawWireframe>
                            <WireframeColor>0x60B6D2EA</WireframeColor>
                            <Replaces block='minecraft:dirt'/>
                            <Replaces block='minecraft:sandstone'/>
                            <Replaces block='minecraft:stone'/>
                        </Veins>
                        <!-- End Silver Strategic Cloud Hint Veins -->

                    </Cloud>
                    
                
                </IfCondition>
                <!-- End  StrategicCloud distribution of Silver -->
                
                
                <!-- Begin  Vanilla distribution of Silver -->
                <IfCondition condition=':= elcrSilverDist = "vanillaStdGen"'>
                
                    <StandardGen name='elcrSilverBaseStandard' block='ElectriCraft:electricraft_block_ore:2' inherits='PresetStandardGen'>
                        <Description>
                            This mimics vanilla ore generation.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60B6D2EA</WireframeColor>
                        <Setting name='Size' avg=':= 1 * 1 * elcrSilverSize * _default_'/>
                        <Setting name='Height' avg=':= 18' range=':= 12' type='uniform'/> 
                        <Setting name='Frequency' avg=':= 1 * 0.15 * elcrSilverFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                    </StandardGen>
                    
                
                </IfCondition>
                <!-- End  Vanilla distribution of Silver -->
                
                <!-- End Silver Generation --> 

                
                <!-- Begin Nickel Generation --> 
                
                <!-- Begin LayeredVeins distribution of Nickel -->
                <IfCondition condition=':= elcrNickelDist = "layeredVeins"'>
                
                    <Veins name='elcrNickelBaseVeins' block='ElectriCraft:electricraft_block_ore:3' inherits='PresetLayeredVeins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60D2D1B6</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.85 * elcrNickelSize * _default_' range=':= 1 * 0.85 * elcrNickelSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 20' range=':= 10' type='normal' scaleTo='Biome'/> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.85 * elcrNickelSize * _default_' range=':= 1 * 0.85 * elcrNickelSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.85 * elcrNickelFreq * _default_'/>
                        <Setting name='BranchFrequency' avg=':= 0.85 * _default_'/>
                        <Setting name='BranchLength' avg=':= 0.75 * _default_' range=':= 1 * _default_'/>
                        <Setting name='BranchHeightLimit' avg=':= 10'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Nickel Layered Veins) Settings -->
                    <Veins name='elcrNickelPrefersVeins' block='ElectriCraft:electricraft_block_ore:3' inherits='elcrNickelBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60D2D1B6</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Swamp'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Nickel Layered Veins) Settings -->
                
                </IfCondition>
                <!-- End LayeredVeins distribution of Nickel -->
                
                
                <!-- Begin  Huge Veins distribution of Nickel -->
                <IfCondition condition=':= elcrNickelDist = "hugeVeins"'>
                
                    <Veins name='elcrNickelBaseVeins' block='ElectriCraft:electricraft_block_ore:3' inherits='PresetHugeVeins'>
                        <Description>
                            Very large, extremely rare motherlodes.  Each motherlode has many long slender branches - so thin that
                            parts of the branch won't contain any ore at all.  This, combined with the incredible length of the
                            branches, makes them more challenging to follow underground.  Once found, however, a motherlode contains
                            enough ore to keep a player supplied for a very long time.
                            The rarity of these veins might be too frustrating in a single-player setting.  In SMP, though, teamwork 
                            could make finding them much easier and the motherlodes are big enough to supply several people without
                            shortage.  This might be a good way to add challenge to multiplayer worlds.
                            Credit: based on feedback by dyrewulf from the MC forums.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60D2D1B6</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.85 * elcrNickelSize * _default_' range=':= 1 * 0.85 * elcrNickelSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 20' range=':= 10' type='normal' scaleTo='Biome' /> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.85 * elcrNickelSize * _default_' range=':= 1 * 0.85 * elcrNickelSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.85 * elcrNickelFreq * _default_'/>
                        <Setting name='BranchFrequency' avg=':= 0.85 * _default_'/>
                        <Setting name='BranchLength' avg=':= 0.75 * _default_' range=':= 1 * _default_'/>
                        <Setting name='BranchHeightLimit' avg=':= 10'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Nickel Huge Veins) Settings -->
                    <Veins name='elcrNickelPrefersVeins' block='ElectriCraft:electricraft_block_ore:3' inherits='elcrNickelBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60D2D1B6</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Swamp'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Nickel Huge Veins) Settings -->
                
                </IfCondition>
                <!-- End  Huge Veins distribution of Nickel -->
                
                
                <!-- Begin  StrategicCloud distribution of Nickel -->
                <IfCondition condition=':= elcrNickelDist = "strategicCloud"'>
                
                    <Cloud name='elcrNickelBaseCloud' block='ElectriCraft:electricraft_block_ore:3' inherits='PresetStrategicCloud'>
                        <Description>
                            Large irregular clouds filled lightly with ore.  These are huge, spanning several 
                            adjacent chunks, and consequently rather rare.  They contain a sizeable amount of 
                            ore, but it takes some time and effort to mine due to low density.
                            The intent for strategic clouds is that the player will need to actively search for
                            one and then set up a semi-permanent mining base and spend some time actually mining
                            the ore.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60D2D1B6</WireframeColor>
                        <Setting name='CloudRadius' avg=':= 1 * 0.8 * elcrNickelSize * _default_' range=':= 1 * 0.8 * elcrNickelSize * _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.8 * elcrNickelSize * _default_' range=':= 1 * 0.8 * elcrNickelSize * _default_'/>
                        <Setting name='CloudHeight' avg=':= _default_' range=':= _default_' type='normal' scaleTo='Biome'/>
                        <Setting name='OreDensity' avg=':= 1 * 0.3 * _default_' range=':= _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.8 * 0.8 * elcrNickelSize * _default_' range=':= 1 * 0.8 * 0.8 * elcrNickelSize  * _default_'/>
                        <Setting name='DistributionFrequency' avg=':= 1 * 4.5 * elcrNickelFreq *_default_'/>
                        <Replaces block='minecraft:stone'/>
                        
                        <!-- Begin Nickel Strategic Cloud Hint Veins -->
                        <Veins name='elcrNickelBaseHintVeins' block='ElectriCraft:electricraft_block_ore:3' inherits='PresetHintVeins'>
                            <Description>
                                Single blocks, generously scattered through all heights (density is about that of vanilla iron ore). 
                                They will replace dirt and sandstone (but not grass or sand), so they can be found nearer  
                                to the surface than most ores.  Intened to be used as a child distribution for large, rare strategic  
                                deposits that would otherwise be very difficult to find. 
                            </Description>
                            <DrawWireframe>:=drawWireframes</DrawWireframe>
                            <WireframeColor>0x60D2D1B6</WireframeColor>
                            <Replaces block='minecraft:dirt'/>
                            <Replaces block='minecraft:sandstone'/>
                            <Replaces block='minecraft:stone'/>
                        </Veins>
                        <!-- End Nickel Strategic Cloud Hint Veins -->

                    </Cloud>
                    
                
                </IfCondition>
                <!-- End  StrategicCloud distribution of Nickel -->
                
                
                <!-- Begin  Vanilla distribution of Nickel -->
                <IfCondition condition=':= elcrNickelDist = "vanillaStdGen"'>
                
                    <StandardGen name='elcrNickelBaseStandard' block='ElectriCraft:electricraft_block_ore:3' inherits='PresetStandardGen'>
                        <Description>
                            This mimics vanilla ore generation.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60D2D1B6</WireframeColor>
                        <Setting name='Size' avg=':= 1 * 0.5 * elcrNickelSize * _default_'/>
                        <Setting name='Height' avg=':= 12' range=':= 7' type='uniform'/> 
                        <Setting name='Frequency' avg=':= 1 * 0.33 * elcrNickelFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                    </StandardGen>
                    
                
                </IfCondition>
                <!-- End  Vanilla distribution of Nickel -->
                
                <!-- End Nickel Generation --> 

                
                <!-- Begin Aluminum Generation --> 
                
                <!-- Begin LayeredVeins distribution of Aluminum -->
                <IfCondition condition=':= elcrAluminumDist = "layeredVeins"'>
                
                    <Veins name='elcrAluminumBaseVeins' block='ElectriCraft:electricraft_block_ore:4' inherits='PresetLayeredVeins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60DAD9DB</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.6 * elcrAluminumSize * _default_' range=':= 1 * 0.6 * elcrAluminumSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 35' range=':= 20' type='normal' scaleTo='Biome'/> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.6 * elcrAluminumSize * _default_' range=':= 1 * 0.6 * elcrAluminumSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.85 * elcrAluminumFreq * _default_'/>
                        <Setting name='BranchFrequency' avg=':= 0.9 * _default_'/>
                        <Setting name='BranchLength' avg=':= 0.8 * _default_' range=':= 0.7 * _default_'/>
                        <Setting name='BranchHeightLimit' avg=':= 10.5'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Aluminum Layered Veins) Settings -->
                    <Veins name='elcrAluminumPrefersVeins' block='ElectriCraft:electricraft_block_ore:4' inherits='elcrAluminumBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60DAD9DB</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Forest'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Aluminum Layered Veins) Settings -->
                
                </IfCondition>
                <!-- End LayeredVeins distribution of Aluminum -->
                
                
                <!-- Begin  Huge Veins distribution of Aluminum -->
                <IfCondition condition=':= elcrAluminumDist = "hugeVeins"'>
                
                    <Veins name='elcrAluminumBaseVeins' block='ElectriCraft:electricraft_block_ore:4' inherits='PresetHugeVeins'>
                        <Description>
                            Very large, extremely rare motherlodes.  Each motherlode has many long slender branches - so thin that
                            parts of the branch won't contain any ore at all.  This, combined with the incredible length of the
                            branches, makes them more challenging to follow underground.  Once found, however, a motherlode contains
                            enough ore to keep a player supplied for a very long time.
                            The rarity of these veins might be too frustrating in a single-player setting.  In SMP, though, teamwork 
                            could make finding them much easier and the motherlodes are big enough to supply several people without
                            shortage.  This might be a good way to add challenge to multiplayer worlds.
                            Credit: based on feedback by dyrewulf from the MC forums.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60DAD9DB</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.6 * elcrAluminumSize * _default_' range=':= 1 * 0.6 * elcrAluminumSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 35' range=':= 20' type='normal' scaleTo='Biome' /> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.6 * elcrAluminumSize * _default_' range=':= 1 * 0.6 * elcrAluminumSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.85 * elcrAluminumFreq * _default_'/>
                        <Setting name='BranchFrequency' avg=':= 0.9 * _default_'/>
                        <Setting name='BranchLength' avg=':= 0.8 * _default_' range=':= 0.7 * _default_'/>
                        <Setting name='BranchHeightLimit' avg=':= 10.5'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Aluminum Huge Veins) Settings -->
                    <Veins name='elcrAluminumPrefersVeins' block='ElectriCraft:electricraft_block_ore:4' inherits='elcrAluminumBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60DAD9DB</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Forest'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Aluminum Huge Veins) Settings -->
                
                </IfCondition>
                <!-- End  Huge Veins distribution of Aluminum -->
                
                
                <!-- Begin  StrategicCloud distribution of Aluminum -->
                <IfCondition condition=':= elcrAluminumDist = "strategicCloud"'>
                
                    <Cloud name='elcrAluminumBaseCloud' block='ElectriCraft:electricraft_block_ore:4' inherits='PresetStrategicCloud'>
                        <Description>
                            Large irregular clouds filled lightly with ore.  These are huge, spanning several 
                            adjacent chunks, and consequently rather rare.  They contain a sizeable amount of 
                            ore, but it takes some time and effort to mine due to low density.
                            The intent for strategic clouds is that the player will need to actively search for
                            one and then set up a semi-permanent mining base and spend some time actually mining
                            the ore.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60DAD9DB</WireframeColor>
                        <Setting name='CloudRadius' avg=':= 1 * 0.7 * elcrAluminumSize * _default_' range=':= 1 * 0.7 * elcrAluminumSize * _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.7 * elcrAluminumSize * _default_' range=':= 1 * 0.7 * elcrAluminumSize * _default_'/>
                        <Setting name='CloudHeight' avg=':= _default_' range=':= _default_' type='normal' scaleTo='Biome'/>
                        <Setting name='OreDensity' avg=':= 1 * 0.3 * _default_' range=':= _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.8 * 0.7 * elcrAluminumSize * _default_' range=':= 1 * 0.8 * 0.7 * elcrAluminumSize  * _default_'/>
                        <Setting name='DistributionFrequency' avg=':= 1 * 7 * elcrAluminumFreq *_default_'/>
                        <Replaces block='minecraft:stone'/>
                        
                        <!-- Begin Aluminum Strategic Cloud Hint Veins -->
                        <Veins name='elcrAluminumBaseHintVeins' block='ElectriCraft:electricraft_block_ore:4' inherits='PresetHintVeins'>
                            <Description>
                                Single blocks, generously scattered through all heights (density is about that of vanilla iron ore). 
                                They will replace dirt and sandstone (but not grass or sand), so they can be found nearer  
                                to the surface than most ores.  Intened to be used as a child distribution for large, rare strategic  
                                deposits that would otherwise be very difficult to find. 
                            </Description>
                            <DrawWireframe>:=drawWireframes</DrawWireframe>
                            <WireframeColor>0x60DAD9DB</WireframeColor>
                            <Replaces block='minecraft:dirt'/>
                            <Replaces block='minecraft:sandstone'/>
                            <Replaces block='minecraft:stone'/>
                        </Veins>
                        <!-- End Aluminum Strategic Cloud Hint Veins -->

                    </Cloud>
                    
                
                </IfCondition>
                <!-- End  StrategicCloud distribution of Aluminum -->
                
                
                <!-- Begin  Vanilla distribution of Aluminum -->
                <IfCondition condition=':= elcrAluminumDist = "vanillaStdGen"'>
                
                    <StandardGen name='elcrAluminumBaseStandard' block='ElectriCraft:electricraft_block_ore:4' inherits='PresetStandardGen'>
                        <Description>
                            This mimics vanilla ore generation.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60DAD9DB</WireframeColor>
                        <Setting name='Size' avg=':= 1 * 3/4 * elcrAluminumSize * _default_'/>
                        <Setting name='Height' avg=':= 35' range=':= 30' type='uniform'/> 
                        <Setting name='Frequency' avg=':= 1 * 3/20 * elcrAluminumFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                    </StandardGen>
                    
                
                </IfCondition>
                <!-- End  Vanilla distribution of Aluminum -->
                
                <!-- End Aluminum Generation --> 

                
                <!-- Begin Platinum Generation --> 
                
                <!-- Begin LayeredVeins distribution of Platinum -->
                <IfCondition condition=':= elcrPlatinumDist = "layeredVeins"'>
                
                    <Veins name='elcrPlatinumBaseVeins' block='ElectriCraft:electricraft_block_ore:5' inherits='PresetLayeredVeins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x602D84E7</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.80 * elcrPlatinumSize * _default_' range=':= 1 * 0.80 * elcrPlatinumSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 16' range=':= 8' type='normal' scaleTo='Biome'/> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.80 * elcrPlatinumSize * _default_' range=':= 1 * 0.80 * elcrPlatinumSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.8 * elcrPlatinumFreq * _default_'/>
                        <Setting name='BranchFrequency' avg=':= 0.8 * _default_'/>
                        <Setting name='BranchLength' avg=':= 0.7 * _default_' range=':= 1 * _default_'/>
                        <Setting name='BranchHeightLimit' avg=':= 10'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Platinum Layered Veins) Settings -->
                    <Veins name='elcrPlatinumPrefersVeins' block='ElectriCraft:electricraft_block_ore:5' inherits='elcrPlatinumBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x602D84E7</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Forest'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Platinum Layered Veins) Settings -->
                
                </IfCondition>
                <!-- End LayeredVeins distribution of Platinum -->
                
                
                <!-- Begin  Huge Veins distribution of Platinum -->
                <IfCondition condition=':= elcrPlatinumDist = "hugeVeins"'>
                
                    <Veins name='elcrPlatinumBaseVeins' block='ElectriCraft:electricraft_block_ore:5' inherits='PresetHugeVeins'>
                        <Description>
                            Very large, extremely rare motherlodes.  Each motherlode has many long slender branches - so thin that
                            parts of the branch won't contain any ore at all.  This, combined with the incredible length of the
                            branches, makes them more challenging to follow underground.  Once found, however, a motherlode contains
                            enough ore to keep a player supplied for a very long time.
                            The rarity of these veins might be too frustrating in a single-player setting.  In SMP, though, teamwork 
                            could make finding them much easier and the motherlodes are big enough to supply several people without
                            shortage.  This might be a good way to add challenge to multiplayer worlds.
                            Credit: based on feedback by dyrewulf from the MC forums.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x602D84E7</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.80 * elcrPlatinumSize * _default_' range=':= 1 * 0.80 * elcrPlatinumSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 16' range=':= 8' type='normal' scaleTo='Biome' /> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.80 * elcrPlatinumSize * _default_' range=':= 1 * 0.80 * elcrPlatinumSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.8 * elcrPlatinumFreq * _default_'/>
                        <Setting name='BranchFrequency' avg=':= 0.8 * _default_'/>
                        <Setting name='BranchLength' avg=':= 0.7 * _default_' range=':= 1 * _default_'/>
                        <Setting name='BranchHeightLimit' avg=':= 10'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Platinum Huge Veins) Settings -->
                    <Veins name='elcrPlatinumPrefersVeins' block='ElectriCraft:electricraft_block_ore:5' inherits='elcrPlatinumBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x602D84E7</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Forest'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Platinum Huge Veins) Settings -->
                
                </IfCondition>
                <!-- End  Huge Veins distribution of Platinum -->
                
                
                <!-- Begin  StrategicCloud distribution of Platinum -->
                <IfCondition condition=':= elcrPlatinumDist = "strategicCloud"'>
                
                    <Cloud name='elcrPlatinumBaseCloud' block='ElectriCraft:electricraft_block_ore:5' inherits='PresetStrategicCloud'>
                        <Description>
                            Large irregular clouds filled lightly with ore.  These are huge, spanning several 
                            adjacent chunks, and consequently rather rare.  They contain a sizeable amount of 
                            ore, but it takes some time and effort to mine due to low density.
                            The intent for strategic clouds is that the player will need to actively search for
                            one and then set up a semi-permanent mining base and spend some time actually mining
                            the ore.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x602D84E7</WireframeColor>
                        <Setting name='CloudRadius' avg=':= 1 * 0.6 * elcrPlatinumSize * _default_' range=':= 1 * 0.6 * elcrPlatinumSize * _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.6 * elcrPlatinumSize * _default_' range=':= 1 * 0.6 * elcrPlatinumSize * _default_'/>
                        <Setting name='CloudHeight' avg=':= _default_' range=':= _default_' type='normal' scaleTo='Biome'/>
                        <Setting name='OreDensity' avg=':= 1 * 0.3 * _default_' range=':= _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.6 * 0.6 * elcrPlatinumSize * _default_' range=':= 1 * 0.6 * 0.6 * elcrPlatinumSize  * _default_'/>
                        <Setting name='DistributionFrequency' avg=':= 1 * 4.5 * elcrPlatinumFreq *_default_'/>
                        <Replaces block='minecraft:stone'/>
                        
                        <!-- Begin Platinum Strategic Cloud Hint Veins -->
                        <Veins name='elcrPlatinumBaseHintVeins' block='ElectriCraft:electricraft_block_ore:5' inherits='PresetHintVeins'>
                            <Description>
                                Single blocks, generously scattered through all heights (density is about that of vanilla iron ore). 
                                They will replace dirt and sandstone (but not grass or sand), so they can be found nearer  
                                to the surface than most ores.  Intened to be used as a child distribution for large, rare strategic  
                                deposits that would otherwise be very difficult to find. 
                            </Description>
                            <DrawWireframe>:=drawWireframes</DrawWireframe>
                            <WireframeColor>0x602D84E7</WireframeColor>
                            <Replaces block='minecraft:dirt'/>
                            <Replaces block='minecraft:sandstone'/>
                            <Replaces block='minecraft:stone'/>
                        </Veins>
                        <!-- End Platinum Strategic Cloud Hint Veins -->

                    </Cloud>
                    
                
                </IfCondition>
                <!-- End  StrategicCloud distribution of Platinum -->
                
                
                <!-- Begin  Vanilla distribution of Platinum -->
                <IfCondition condition=':= elcrPlatinumDist = "vanillaStdGen"'>
                
                    <StandardGen name='elcrPlatinumBaseStandard' block='ElectriCraft:electricraft_block_ore:5' inherits='PresetStandardGen'>
                        <Description>
                            This mimics vanilla ore generation.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x602D84E7</WireframeColor>
                        <Setting name='Size' avg=':= 1 * 0.5 * elcrPlatinumSize * _default_'/>
                        <Setting name='Height' avg=':= 12' range=':= 7' type='uniform'/> 
                        <Setting name='Frequency' avg=':= 1 * 0.30 * elcrPlatinumFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                    </StandardGen>
                    
                
                </IfCondition>
                <!-- End  Vanilla distribution of Platinum -->
                
                <!-- End Platinum Generation --> 

                <!-- Done adding ores -->
            
            </IfCondition>
            <!-- Overworld Setup Complete -->

        
        </ConfigSection>
        <!-- Configuration for Custom Ore Generation Complete! -->
    
    </IfModInstalled> 
 


<!-- This file was made using the Sprocket Configuration Generator. -->