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

Custom Ore Generation:   Project Red Module

Generates: 
Ruby, Sapphire, Peridot, Copper, Tin, Silver, Electrotine, Marble,
Basalt

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

    <!-- Mod detection -->
    <IfModInstalled name="ProjRed|Exploration">
    
        <!-- Starting Configuration for Custom Ore Generation. -->
        <ConfigSection>
        
            
            <!-- Setup Screen Configuration -->
            <ConfigSection>
                <OptionDisplayGroup name='groupProjectRed' displayName='Project Red' displayState='shown'> 
                    <Description>
                        Distribution options for Project Red Ores.
                    </Description>
                </OptionDisplayGroup>
                
                <!-- Ruby Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='predRubyDist'  displayState='shown' displayGroup='groupProjectRed'> 
                        <Description> Controls how Ruby is generated </Description> 
                        <DisplayName>Project Red Ruby</DisplayName>
                        <Choice value='pipeVeins' displayValue='Pipe Veins'>
                            <Description>
                                Pipe Veins.
                            </Description>
                        </Choice>
                        <Choice value='smallDeposits' displayValue='Small Deposits'>
                            <Description>
                                Small Deposits.
                            </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='Ruby is not generated in the world.'/>
                    </OptionChoice>
                    <OptionNumeric name='predRubyFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Frequency multiplier for Project Red Ruby distributions </Description>
                        <DisplayName>Project Red Ruby Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='predRubySize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Size multiplier for Project Red Ruby distributions </Description>
                        <DisplayName>Project Red Ruby Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Ruby Configuration UI Complete -->
                
                
                <!-- Sapphire Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='predSapphireDist'  displayState='shown' displayGroup='groupProjectRed'> 
                        <Description> Controls how Sapphire is generated </Description> 
                        <DisplayName>Project Red Sapphire</DisplayName>
                        <Choice value='pipeVeins' displayValue='Pipe Veins'>
                            <Description>
                                Pipe Veins.
                            </Description>
                        </Choice>
                        <Choice value='smallDeposits' displayValue='Small Deposits'>
                            <Description>
                                Small Deposits.
                            </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='Sapphire is not generated in the world.'/>
                    </OptionChoice>
                    <OptionNumeric name='predSapphireFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Frequency multiplier for Project Red Sapphire distributions </Description>
                        <DisplayName>Project Red Sapphire Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='predSapphireSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Size multiplier for Project Red Sapphire distributions </Description>
                        <DisplayName>Project Red Sapphire Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Sapphire Configuration UI Complete -->
                
                
                <!-- Peridot Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='predPeridotDist'  displayState='shown' displayGroup='groupProjectRed'> 
                        <Description> Controls how Peridot is generated </Description> 
                        <DisplayName>Project Red Peridot</DisplayName>
                        <Choice value='pipeVeins' displayValue='Pipe Veins'>
                            <Description>
                                Pipe Veins.
                            </Description>
                        </Choice>
                        <Choice value='smallDeposits' displayValue='Small Deposits'>
                            <Description>
                                Small Deposits.
                            </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='Peridot is not generated in the world.'/>
                    </OptionChoice>
                    <OptionNumeric name='predPeridotFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Frequency multiplier for Project Red Peridot distributions </Description>
                        <DisplayName>Project Red Peridot Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='predPeridotSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Size multiplier for Project Red Peridot distributions </Description>
                        <DisplayName>Project Red Peridot Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Peridot Configuration UI Complete -->
                
                
                <!-- Copper Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='predCopperDist'  displayState='shown' displayGroup='groupProjectRed'> 
                        <Description> Controls how Copper is generated </Description> 
                        <DisplayName>Project Red 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='predCopperFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Frequency multiplier for Project Red Copper distributions </Description>
                        <DisplayName>Project Red Copper Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='predCopperSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Size multiplier for Project Red Copper distributions </Description>
                        <DisplayName>Project Red Copper Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Copper Configuration UI Complete -->
                
                
                <!-- Tin Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='predTinDist'  displayState='shown' displayGroup='groupProjectRed'> 
                        <Description> Controls how Tin is generated </Description> 
                        <DisplayName>Project Red 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='predTinFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Frequency multiplier for Project Red Tin distributions </Description>
                        <DisplayName>Project Red Tin Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='predTinSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Size multiplier for Project Red Tin distributions </Description>
                        <DisplayName>Project Red Tin Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Tin Configuration UI Complete -->
                
                
                <!-- Silver Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='predSilverDist'  displayState='shown' displayGroup='groupProjectRed'> 
                        <Description> Controls how Silver is generated </Description> 
                        <DisplayName>Project Red 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='predSilverFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Frequency multiplier for Project Red Silver distributions </Description>
                        <DisplayName>Project Red Silver Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='predSilverSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Size multiplier for Project Red Silver distributions </Description>
                        <DisplayName>Project Red Silver Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Silver Configuration UI Complete -->
                
                
                <!-- Electrotine Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='predElectrotineDist'  displayState='shown' displayGroup='groupProjectRed'> 
                        <Description> Controls how Electrotine is generated </Description> 
                        <DisplayName>Project Red Electrotine</DisplayName>
                        <Choice value='verticalVeins' displayValue='Vertical Veins'>
                            <Description>
                                Vertical Veins.
                            </Description>
                        </Choice>
                        <Choice value='smallDeposits' displayValue='Small Deposits'>
                            <Description>
                                Small Deposits.
                            </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='Electrotine is not generated in the world.'/>
                    </OptionChoice>
                    <OptionNumeric name='predElectrotineFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Frequency multiplier for Project Red Electrotine distributions </Description>
                        <DisplayName>Project Red Electrotine Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='predElectrotineSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Size multiplier for Project Red Electrotine distributions </Description>
                        <DisplayName>Project Red Electrotine Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Electrotine Configuration UI Complete -->
                
                
                <!-- Marble Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='predMarbleDist'  displayState='shown' displayGroup='groupProjectRed'> 
                        <Description> Controls how Marble is generated </Description> 
                        <DisplayName>Project Red Marble</DisplayName>
                        <Choice value='layeredVeins' displayValue='Layered Veins'>
                            <Description>
                                Layered Veins.
                            </Description>
                        </Choice>
                        <Choice value='none' displayValue='None' description='Marble is not generated in the world.'/>
                    </OptionChoice>
                    <OptionNumeric name='predMarbleFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Frequency multiplier for Project Red Marble distributions </Description>
                        <DisplayName>Project Red Marble Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='predMarbleSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Size multiplier for Project Red Marble distributions </Description>
                        <DisplayName>Project Red Marble Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Marble Configuration UI Complete -->
                
                
                <!-- Basalt Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='predBasaltDist'  displayState='shown' displayGroup='groupProjectRed'> 
                        <Description> Controls how Basalt is generated </Description> 
                        <DisplayName>Project Red Basalt</DisplayName>
                        <Choice value='layeredVeins' displayValue='Layered Veins'>
                            <Description>
                                Layered Veins.
                            </Description>
                        </Choice>
                        <Choice value='none' displayValue='None' description='Basalt is not generated in the world.'/>
                    </OptionChoice>
                    <OptionNumeric name='predBasaltFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Frequency multiplier for Project Red Basalt distributions </Description>
                        <DisplayName>Project Red Basalt Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='predBasaltSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupProjectRed'>
                        <Description> Size multiplier for Project Red Basalt distributions </Description>
                        <DisplayName>Project Red Basalt Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Basalt Configuration UI Complete -->
                
            </ConfigSection>
            <!-- Setup Screen Complete -->


            <!-- Setup Overworld -->
            <IfCondition condition=':= ?COGActive'>
                
                <!-- Starting Original Overworld Ore Removal -->
                <Substitute name='predOverworldOreSubstitute0' 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='ProjRed|Exploration:projectred.exploration.ore:0' />
                    <Replaces block='ProjRed|Exploration:projectred.exploration.ore:1' />
                    <Replaces block='ProjRed|Exploration:projectred.exploration.ore:2' />
                    <Replaces block='ProjRed|Exploration:projectred.exploration.ore:3' />
                    <Replaces block='ProjRed|Exploration:projectred.exploration.ore:4' />
                    <Replaces block='ProjRed|Exploration:projectred.exploration.ore:5' />
                    <Replaces block='ProjRed|Exploration:projectred.exploration.ore:6' />
                    <Replaces block='ProjRed|Exploration:projectred.exploration.stone:0' />
                    <Replaces block='ProjRed|Exploration:projectred.exploration.stone:3' />
                </Substitute>
                <!-- Original Overworld Ore Removal Complete -->
                
                <!-- Adding ores --> 
                
                <!-- Begin Ruby Generation --> 
                
                <!-- Begin PipeVeins distribution of Ruby -->
                <IfCondition condition=':= predRubyDist = "pipeVeins"'>
                
                    
                    <!-- Begin Ruby Ore Configuration -->
                    <Veins name='predRubyBaseVeins' block='ProjRed|Exploration:projectred.exploration.ore' inherits='PresetPipeVeins' seed='0xE23A'>
                        <Description>
                            Short sparsely filled veins sloping up from near the bottom of the map.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60900113</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 1 * predRubySize * _default_' range=':= 1 * 1 * predRubySize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= _default_' range=':= _default_' type='uniform' scaleTo='SeaLevel' />
                        <Setting name='SegmentRadius' avg=':= 1 * 1 * predRubySize * _default_' range=':= 1 * 1 * predRubySize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1.5 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 1.5 * predRubyFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Mountain'/>
                    </Veins>
                    <!-- End Ruby Ore Configuration -->
                    
                    
                    <!-- Begin Ruby Pipe Configuration -->
                    <Veins name= 'predRubyBasePipe' block='minecraft:stone' inherits='predRubyBaseVeins' seed='0xE23A'>
                        <Description>
                            Fills center of each tube with Pipe material.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60900113</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 0.5 * 1 * 1 * predRubySize * _default_' range=':= 0.5 * 1 * 1 * predRubySize * _default_'/>
                        <Setting name='SegmentRadius' avg=':= 0.5 * 1 * 1 * predRubySize * _default_' range=':= 0.5 * 1 * 1 * predRubySize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1.5 * _default_' range=':= _default_'/>
                        <Replaces block='minecraft:stone'/>
                        <Replaces block='minecraft:dirt'/>
                        <Replaces block='minecraft:stone'/>
                        <Replaces block='minecraft:gravel'/>
                        <Replaces block='minecraft:netherrack'/>
                        <Replaces block='minecraft:end_stone'/>
                        <BiomeType name='Mountain'/>
                    </Veins>
                    <!-- End Ruby Pipe Configuration -->
                    
                
                </IfCondition>
                <!-- End PipeVeins distribution of Ruby -->
                
                
                <!-- Begin  Small Deposits distribution of Ruby -->
                <IfCondition condition=':= predRubyDist = "smallDeposits"'>
                
                    <Veins name='predRubyBaseVeins' block='ProjRed|Exploration:projectred.exploration.ore' inherits='PresetSmallDeposits'>
                        <Description>
                            Small motherlodes without any branches.
                            Similar to the deposits produced by StandardGen distributions.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60900113</WireframeColor>
                        <Setting name='MotherlodeHeight' avg=':= _default_' range=':= _default_' type='uniform' scaleTo='SeaLevel' /> 
                        <Setting name='MotherlodeSize' avg=':= 1 * 1 * predRubySize * _default_' range=':= 1 * 1 * predRubySize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1.5 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 1.5 * predRubyFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Mountain'/>
                    </Veins>
                
                </IfCondition>
                <!-- End  Small Deposits distribution of Ruby -->
                
                
                <!-- Begin  StrategicCloud distribution of Ruby -->
                <IfCondition condition=':= predRubyDist = "strategicCloud"'>
                
                    <Cloud name='predRubyBaseCloud' block='ProjRed|Exploration:projectred.exploration.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>0x60900113</WireframeColor>
                        <Setting name='CloudRadius' avg=':= 1 * 0.4 * predRubySize * _default_' range=':= 1 * 0.4 * predRubySize * _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.4 * predRubySize * _default_' range=':= 1 * 0.4 * predRubySize * _default_'/>
                        <Setting name='CloudHeight' avg=':= 15' range=':= 5' type='uniform' scaleTo='SeaLevel'/>
                        <Setting name='OreDensity' avg=':= 1 * 0.8 * _default_' range=':= _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.2 * 0.4 * predRubySize * _default_' range=':= 1 * 0.2 * 0.4 * predRubySize  * _default_'/>
                        <Setting name='DistributionFrequency' avg=':= 1 * 35 * predRubyFreq *_default_'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Mountain'/>
                        
                        <!-- Begin Ruby Strategic Cloud Hint Veins -->
                        <Veins name='predRubyBaseHintVeins' block='ProjRed|Exploration:projectred.exploration.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>0x60900113</WireframeColor>
                            <Replaces block='minecraft:dirt'/>
                            <Replaces block='minecraft:sandstone'/>
                            <Replaces block='minecraft:stone'/>
                            <BiomeType name='Mountain'/>
                        </Veins>
                        <!-- End Ruby Strategic Cloud Hint Veins -->

                    </Cloud>
                
                </IfCondition>
                <!-- End  StrategicCloud distribution of Ruby -->
                
                
                <!-- Begin  Vanilla distribution of Ruby -->
                <IfCondition condition=':= predRubyDist = "vanillaStdGen"'>
                
                    <StandardGen name='predRubyBaseStandard' block='ProjRed|Exploration:projectred.exploration.ore' inherits='PresetStandardGen'>
                        <Description>
                            This mimics vanilla ore generation.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60900113</WireframeColor>
                        <Setting name='Size' avg=':= 1 * 7/8 * predRubySize * _default_'/>
                        <Setting name='Height' avg=':= 24' range=':= 24' type='uniform'/> 
                        <Setting name='Frequency' avg=':= 1 * 0.1 * predRubyFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Mountain'/>
                    </StandardGen>
                
                </IfCondition>
                <!-- End  Vanilla distribution of Ruby -->
                
                <!-- End Ruby Generation --> 

                
                <!-- Begin Sapphire Generation --> 
                
                <!-- Begin PipeVeins distribution of Sapphire -->
                <IfCondition condition=':= predSapphireDist = "pipeVeins"'>
                
                    
                    <!-- Begin Sapphire Ore Configuration -->
                    <Veins name='predSapphireBaseVeins' block='ProjRed|Exploration:projectred.exploration.ore:1' inherits='PresetPipeVeins' seed='0x5196'>
                        <Description>
                            Short sparsely filled veins sloping up from near the bottom of the map.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x600011C8</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 1 * predSapphireSize * _default_' range=':= 1 * 1 * predSapphireSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= _default_' range=':= _default_' type='uniform' scaleTo='SeaLevel' />
                        <Setting name='SegmentRadius' avg=':= 1 * 1 * predSapphireSize * _default_' range=':= 1 * 1 * predSapphireSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1.5 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 1.5 * predSapphireFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Mountain'/>
                    </Veins>
                    <!-- End Sapphire Ore Configuration -->
                    
                    
                    <!-- Begin Sapphire Pipe Configuration -->
                    <Veins name= 'predSapphireBasePipe' block='minecraft:stone' inherits='predSapphireBaseVeins' seed='0x5196'>
                        <Description>
                            Fills center of each tube with Pipe material.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x600011C8</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 0.5 * 1 * 1 * predSapphireSize * _default_' range=':= 0.5 * 1 * 1 * predSapphireSize * _default_'/>
                        <Setting name='SegmentRadius' avg=':= 0.5 * 1 * 1 * predSapphireSize * _default_' range=':= 0.5 * 1 * 1 * predSapphireSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1.5 * _default_' range=':= _default_'/>
                        <Replaces block='minecraft:stone'/>
                        <Replaces block='minecraft:dirt'/>
                        <Replaces block='minecraft:stone'/>
                        <Replaces block='minecraft:gravel'/>
                        <Replaces block='minecraft:netherrack'/>
                        <Replaces block='minecraft:end_stone'/>
                        <BiomeType name='Mountain'/>
                    </Veins>
                    <!-- End Sapphire Pipe Configuration -->
                    
                
                </IfCondition>
                <!-- End PipeVeins distribution of Sapphire -->
                
                
                <!-- Begin  Small Deposits distribution of Sapphire -->
                <IfCondition condition=':= predSapphireDist = "smallDeposits"'>
                
                    <Veins name='predSapphireBaseVeins' block='ProjRed|Exploration:projectred.exploration.ore:1' inherits='PresetSmallDeposits'>
                        <Description>
                            Small motherlodes without any branches.
                            Similar to the deposits produced by StandardGen distributions.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x600011C8</WireframeColor>
                        <Setting name='MotherlodeHeight' avg=':= _default_' range=':= _default_' type='uniform' scaleTo='SeaLevel' /> 
                        <Setting name='MotherlodeSize' avg=':= 1 * 1 * predSapphireSize * _default_' range=':= 1 * 1 * predSapphireSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1.5 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 1.5 * predSapphireFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Mountain'/>
                    </Veins>
                
                </IfCondition>
                <!-- End  Small Deposits distribution of Sapphire -->
                
                
                <!-- Begin  StrategicCloud distribution of Sapphire -->
                <IfCondition condition=':= predSapphireDist = "strategicCloud"'>
                
                    <Cloud name='predSapphireBaseCloud' block='ProjRed|Exploration:projectred.exploration.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>0x600011C8</WireframeColor>
                        <Setting name='CloudRadius' avg=':= 1 * 0.4 * predSapphireSize * _default_' range=':= 1 * 0.4 * predSapphireSize * _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.4 * predSapphireSize * _default_' range=':= 1 * 0.4 * predSapphireSize * _default_'/>
                        <Setting name='CloudHeight' avg=':= 15' range=':= 5' type='uniform' scaleTo='SeaLevel'/>
                        <Setting name='OreDensity' avg=':= 1 * 0.8 * _default_' range=':= _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.2 * 0.4 * predSapphireSize * _default_' range=':= 1 * 0.2 * 0.4 * predSapphireSize  * _default_'/>
                        <Setting name='DistributionFrequency' avg=':= 1 * 35 * predSapphireFreq *_default_'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Mountain'/>
                        
                        <!-- Begin Sapphire Strategic Cloud Hint Veins -->
                        <Veins name='predSapphireBaseHintVeins' block='ProjRed|Exploration:projectred.exploration.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>0x600011C8</WireframeColor>
                            <Replaces block='minecraft:dirt'/>
                            <Replaces block='minecraft:sandstone'/>
                            <Replaces block='minecraft:stone'/>
                            <BiomeType name='Mountain'/>
                        </Veins>
                        <!-- End Sapphire Strategic Cloud Hint Veins -->

                    </Cloud>
                
                </IfCondition>
                <!-- End  StrategicCloud distribution of Sapphire -->
                
                
                <!-- Begin  Vanilla distribution of Sapphire -->
                <IfCondition condition=':= predSapphireDist = "vanillaStdGen"'>
                
                    <StandardGen name='predSapphireBaseStandard' block='ProjRed|Exploration:projectred.exploration.ore:1' inherits='PresetStandardGen'>
                        <Description>
                            This mimics vanilla ore generation.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x600011C8</WireframeColor>
                        <Setting name='Size' avg=':= 1 * 7/8 * predSapphireSize * _default_'/>
                        <Setting name='Height' avg=':= 24' range=':= 24' type='uniform'/> 
                        <Setting name='Frequency' avg=':= 1 * 0.1 * predSapphireFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Mountain'/>
                    </StandardGen>
                
                </IfCondition>
                <!-- End  Vanilla distribution of Sapphire -->
                
                <!-- End Sapphire Generation --> 

                
                <!-- Begin Peridot Generation --> 
                
                <!-- Begin PipeVeins distribution of Peridot -->
                <IfCondition condition=':= predPeridotDist = "pipeVeins"'>
                
                    
                    <!-- Begin Peridot Ore Configuration -->
                    <Veins name='predPeridotBaseVeins' block='ProjRed|Exploration:projectred.exploration.ore:2' inherits='PresetPipeVeins' seed='0x8759'>
                        <Description>
                            Short sparsely filled veins sloping up from near the bottom of the map.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60057529</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 1 * predPeridotSize * _default_' range=':= 1 * 1 * predPeridotSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= _default_' range=':= _default_' type='uniform' scaleTo='SeaLevel' />
                        <Setting name='SegmentRadius' avg=':= 1 * 1 * predPeridotSize * _default_' range=':= 1 * 1 * predPeridotSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1.5 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 1.5 * predPeridotFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Mountain'/>
                    </Veins>
                    <!-- End Peridot Ore Configuration -->
                    
                    
                    <!-- Begin Peridot Pipe Configuration -->
                    <Veins name= 'predPeridotBasePipe' block='minecraft:stone' inherits='predPeridotBaseVeins' seed='0x8759'>
                        <Description>
                            Fills center of each tube with Pipe material.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60057529</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 0.5 * 1 * 1 * predPeridotSize * _default_' range=':= 0.5 * 1 * 1 * predPeridotSize * _default_'/>
                        <Setting name='SegmentRadius' avg=':= 0.5 * 1 * 1 * predPeridotSize * _default_' range=':= 0.5 * 1 * 1 * predPeridotSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1.5 * _default_' range=':= _default_'/>
                        <Replaces block='minecraft:stone'/>
                        <Replaces block='minecraft:dirt'/>
                        <Replaces block='minecraft:stone'/>
                        <Replaces block='minecraft:gravel'/>
                        <Replaces block='minecraft:netherrack'/>
                        <Replaces block='minecraft:end_stone'/>
                        <BiomeType name='Mountain'/>
                    </Veins>
                    <!-- End Peridot Pipe Configuration -->
                    
                
                </IfCondition>
                <!-- End PipeVeins distribution of Peridot -->
                
                
                <!-- Begin  Small Deposits distribution of Peridot -->
                <IfCondition condition=':= predPeridotDist = "smallDeposits"'>
                
                    <Veins name='predPeridotBaseVeins' block='ProjRed|Exploration:projectred.exploration.ore:2' inherits='PresetSmallDeposits'>
                        <Description>
                            Small motherlodes without any branches.
                            Similar to the deposits produced by StandardGen distributions.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60057529</WireframeColor>
                        <Setting name='MotherlodeHeight' avg=':= _default_' range=':= _default_' type='uniform' scaleTo='SeaLevel' /> 
                        <Setting name='MotherlodeSize' avg=':= 1 * 1 * predPeridotSize * _default_' range=':= 1 * 1 * predPeridotSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1.5 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 1.5 * predPeridotFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Mountain'/>
                    </Veins>
                
                </IfCondition>
                <!-- End  Small Deposits distribution of Peridot -->
                
                
                <!-- Begin  StrategicCloud distribution of Peridot -->
                <IfCondition condition=':= predPeridotDist = "strategicCloud"'>
                
                    <Cloud name='predPeridotBaseCloud' block='ProjRed|Exploration:projectred.exploration.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>0x60057529</WireframeColor>
                        <Setting name='CloudRadius' avg=':= 1 * 0.4 * predPeridotSize * _default_' range=':= 1 * 0.4 * predPeridotSize * _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.4 * predPeridotSize * _default_' range=':= 1 * 0.4 * predPeridotSize * _default_'/>
                        <Setting name='CloudHeight' avg=':= 15' range=':= 5' type='uniform' scaleTo='SeaLevel'/>
                        <Setting name='OreDensity' avg=':= 1 * 0.8 * _default_' range=':= _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.2 * 0.4 * predPeridotSize * _default_' range=':= 1 * 0.2 * 0.4 * predPeridotSize  * _default_'/>
                        <Setting name='DistributionFrequency' avg=':= 1 * 35 * predPeridotFreq *_default_'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Mountain'/>
                        
                        <!-- Begin Peridot Strategic Cloud Hint Veins -->
                        <Veins name='predPeridotBaseHintVeins' block='ProjRed|Exploration:projectred.exploration.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>0x60057529</WireframeColor>
                            <Replaces block='minecraft:dirt'/>
                            <Replaces block='minecraft:sandstone'/>
                            <Replaces block='minecraft:stone'/>
                            <BiomeType name='Mountain'/>
                        </Veins>
                        <!-- End Peridot Strategic Cloud Hint Veins -->

                    </Cloud>
                
                </IfCondition>
                <!-- End  StrategicCloud distribution of Peridot -->
                
                
                <!-- Begin  Vanilla distribution of Peridot -->
                <IfCondition condition=':= predPeridotDist = "vanillaStdGen"'>
                
                    <StandardGen name='predPeridotBaseStandard' block='ProjRed|Exploration:projectred.exploration.ore:2' inherits='PresetStandardGen'>
                        <Description>
                            This mimics vanilla ore generation.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60057529</WireframeColor>
                        <Setting name='Size' avg=':= 1 * 7/8 * predPeridotSize * _default_'/>
                        <Setting name='Height' avg=':= 24' range=':= 24' type='uniform'/> 
                        <Setting name='Frequency' avg=':= 1 * 0.1 * predPeridotFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Mountain'/>
                    </StandardGen>
                
                </IfCondition>
                <!-- End  Vanilla distribution of Peridot -->
                
                <!-- End Peridot Generation --> 

                
                <!-- Begin Copper Generation --> 
                
                <!-- Begin Layered Veins distribution of Copper -->
                <IfCondition condition=':= predCopperDist = "layeredVeins"'>
                
                    <Veins name='predCopperBaseVeins' block='ProjRed|Exploration:projectred.exploration.ore:3' inherits='PresetLayeredVeins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60FF8E2B</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.9 * predCopperSize * _default_' range=':= 1 * 0.9 * predCopperSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 45' range=':= 10' type='uniform' scaleTo='SeaLevel'/> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.9 * predCopperSize * _default_' range=':= 1 * 0.9 * predCopperSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.9 * predCopperFreq * _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='predCopperPrefersVeins' block='ProjRed|Exploration:projectred.exploration.ore:3' inherits='predCopperBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60FF8E2B</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Jungle'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Copper Layered Veins) Settings -->
                
                </IfCondition>
                <!-- End Layered Veins distribution of Copper -->
                
                
                <!-- Begin  Huge Veins distribution of Copper -->
                <IfCondition condition=':= predCopperDist = "hugeVeins"'>
                
                    <Veins name='predCopperBaseVeins' block='ProjRed|Exploration:projectred.exploration.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>0x60FF8E2B</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.9 * predCopperSize * _default_' range=':= 1 * 0.9 * predCopperSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 45' range=':= 10' type='uniform' scaleTo='SeaLevel' /> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.9 * predCopperSize * _default_' range=':= 1 * 0.9 * predCopperSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.9 * predCopperFreq * _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='predCopperPrefersVeins' block='ProjRed|Exploration:projectred.exploration.ore:3' inherits='predCopperBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60FF8E2B</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=':= predCopperDist = "strategicCloud"'>
                
                    <Cloud name='predCopperBaseCloud' block='ProjRed|Exploration:projectred.exploration.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>0x60FF8E2B</WireframeColor>
                        <Setting name='CloudRadius' avg=':= 1 * 0.95 * predCopperSize * _default_' range=':= 1 * 0.95 * predCopperSize * _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.95 * predCopperSize * _default_' range=':= 1 * 0.95 * predCopperSize * _default_'/>
                        <Setting name='CloudHeight' avg=':= _default_' range=':= _default_' type='uniform' scaleTo='SeaLevel'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.95 * 0.95 * predCopperSize * _default_' range=':= 1 * 0.95 * 0.95 * predCopperSize  * _default_'/>
                        <Setting name='DistributionFrequency' avg=':= 1 * 2.5 * predCopperFreq *_default_'/>
                        <Replaces block='minecraft:stone'/>
                        
                        <!-- Begin Copper Strategic Cloud Hint Veins -->
                        <Veins name='predCopperBaseHintVeins' block='ProjRed|Exploration:projectred.exploration.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>0x60FF8E2B</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=':= predCopperDist = "vanillaStdGen"'>
                
                    <StandardGen name='predCopperBaseStandard' block='ProjRed|Exploration:projectred.exploration.ore:3' inherits='PresetStandardGen'>
                        <Description>
                            This mimics vanilla ore generation.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60FF8E2B</WireframeColor>
                        <Setting name='Size' avg=':= 1 * 1 * predCopperSize * _default_'/>
                        <Setting name='Height' avg=':= 57' range=':= 17' type='uniform'/> 
                        <Setting name='Frequency' avg=':= 1 * 1.2 * predCopperFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                    </StandardGen>
                    
                
                </IfCondition>
                <!-- End  Vanilla distribution of Copper -->
                
                <!-- End Copper Generation --> 

                
                <!-- Begin Tin Generation --> 
                
                <!-- Begin Layered Veins distribution of Tin -->
                <IfCondition condition=':= predTinDist = "layeredVeins"'>
                
                    <Veins name='predTinBaseVeins' block='ProjRed|Exploration:projectred.exploration.ore:4' inherits='PresetLayeredVeins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60E8E8E8</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.85 * predTinSize * _default_' range=':= 1 * 0.85 * predTinSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 30' range=':= 11' type='uniform' scaleTo='SeaLevel'/> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.85 * predTinSize * _default_' range=':= 1 * 0.85 * predTinSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.85 * predTinFreq * _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='predTinPrefersVeins' block='ProjRed|Exploration:projectred.exploration.ore:4' inherits='predTinBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60E8E8E8</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Plains'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Tin Layered Veins) Settings -->
                
                </IfCondition>
                <!-- End Layered Veins distribution of Tin -->
                
                
                <!-- Begin  Huge Veins distribution of Tin -->
                <IfCondition condition=':= predTinDist = "hugeVeins"'>
                
                    <Veins name='predTinBaseVeins' block='ProjRed|Exploration:projectred.exploration.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>0x60E8E8E8</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.85 * predTinSize * _default_' range=':= 1 * 0.85 * predTinSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 30' range=':= 11' type='uniform' scaleTo='SeaLevel' /> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.85 * predTinSize * _default_' range=':= 1 * 0.85 * predTinSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.85 * predTinFreq * _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='predTinPrefersVeins' block='ProjRed|Exploration:projectred.exploration.ore:4' inherits='predTinBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60E8E8E8</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=':= predTinDist = "strategicCloud"'>
                
                    <Cloud name='predTinBaseCloud' block='ProjRed|Exploration:projectred.exploration.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>0x60E8E8E8</WireframeColor>
                        <Setting name='CloudRadius' avg=':= 1 * 0.9 * predTinSize * _default_' range=':= 1 * 0.9 * predTinSize * _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.9 * predTinSize * _default_' range=':= 1 * 0.9 * predTinSize * _default_'/>
                        <Setting name='CloudHeight' avg=':= _default_' range=':= _default_' type='uniform' scaleTo='SeaLevel'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.9 * 0.9 * predTinSize * _default_' range=':= 1 * 0.9 * 0.9 * predTinSize  * _default_'/>
                        <Setting name='DistributionFrequency' avg=':= 1 * 2.5 * predTinFreq *_default_'/>
                        <Replaces block='minecraft:stone'/>
                        
                        <!-- Begin Tin Strategic Cloud Hint Veins -->
                        <Veins name='predTinBaseHintVeins' block='ProjRed|Exploration:projectred.exploration.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>0x60E8E8E8</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=':= predTinDist = "vanillaStdGen"'>
                
                    <StandardGen name='predTinBaseStandard' block='ProjRed|Exploration:projectred.exploration.ore:4' inherits='PresetStandardGen'>
                        <Description>
                            This mimics vanilla ore generation.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60E8E8E8</WireframeColor>
                        <Setting name='Size' avg=':= 1 * 1 * predTinSize * _default_'/>
                        <Setting name='Height' avg=':= 37' range=':= 17' type='uniform'/> 
                        <Setting name='Frequency' avg=':= 1 * 0.75 * predTinFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                    </StandardGen>
                    
                
                </IfCondition>
                <!-- End  Vanilla distribution of Tin -->
                
                <!-- End Tin Generation --> 

                
                <!-- Begin Silver Generation --> 
                
                <!-- Begin Layered Veins distribution of Silver -->
                <IfCondition condition=':= predSilverDist = "layeredVeins"'>
                
                    <Veins name='predSilverBaseVeins' block='ProjRed|Exploration:projectred.exploration.ore:5' inherits='PresetLayeredVeins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60E3F2F7</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.85 * predSilverSize * _default_' range=':= 1 * 0.85 * predSilverSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 20' range=':= 10' type='uniform' scaleTo='SeaLevel'/> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.85 * predSilverSize * _default_' range=':= 1 * 0.85 * predSilverSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.85 * predSilverFreq * _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='predSilverPrefersVeins' block='ProjRed|Exploration:projectred.exploration.ore:5' inherits='predSilverBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60E3F2F7</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Mountain'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Silver Layered Veins) Settings -->
                
                </IfCondition>
                <!-- End Layered Veins distribution of Silver -->
                
                
                <!-- Begin  Huge Veins distribution of Silver -->
                <IfCondition condition=':= predSilverDist = "hugeVeins"'>
                
                    <Veins name='predSilverBaseVeins' block='ProjRed|Exploration:projectred.exploration.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>0x60E3F2F7</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 0.85 * predSilverSize * _default_' range=':= 1 * 0.85 * predSilverSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 20' range=':= 10' type='uniform' scaleTo='SeaLevel' /> 
                        <Setting name='SegmentRadius' avg=':= 1 * 0.85 * predSilverSize * _default_' range=':= 1 * 0.85 * predSilverSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 0.85 * predSilverFreq * _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='predSilverPrefersVeins' block='ProjRed|Exploration:projectred.exploration.ore:5' inherits='predSilverBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60E3F2F7</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=':= predSilverDist = "strategicCloud"'>
                
                    <Cloud name='predSilverBaseCloud' block='ProjRed|Exploration:projectred.exploration.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>0x60E3F2F7</WireframeColor>
                        <Setting name='CloudRadius' avg=':= 1 * 0.8 * predSilverSize * _default_' range=':= 1 * 0.8 * predSilverSize * _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.8 * predSilverSize * _default_' range=':= 1 * 0.8 * predSilverSize * _default_'/>
                        <Setting name='CloudHeight' avg=':= _default_' range=':= _default_' type='uniform' scaleTo='SeaLevel'/>
                        <Setting name='OreDensity' avg=':= 1 * 0.5 * _default_' range=':= _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 0.8 * 0.8 * predSilverSize * _default_' range=':= 1 * 0.8 * 0.8 * predSilverSize  * _default_'/>
                        <Setting name='DistributionFrequency' avg=':= 1 * 4.5 * predSilverFreq *_default_'/>
                        <Replaces block='minecraft:stone'/>
                        
                        <!-- Begin Silver Strategic Cloud Hint Veins -->
                        <Veins name='predSilverBaseHintVeins' block='ProjRed|Exploration:projectred.exploration.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>0x60E3F2F7</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=':= predSilverDist = "vanillaStdGen"'>
                
                    <StandardGen name='predSilverBaseStandard' block='ProjRed|Exploration:projectred.exploration.ore:5' inherits='PresetStandardGen'>
                        <Description>
                            This mimics vanilla ore generation.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60E3F2F7</WireframeColor>
                        <Setting name='Size' avg=':= 1 * 1 * predSilverSize * _default_'/>
                        <Setting name='Height' avg=':= 18' range=':= 12' type='uniform'/> 
                        <Setting name='Frequency' avg=':= 1 * 0.15 * predSilverFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                    </StandardGen>
                    
                
                </IfCondition>
                <!-- End  Vanilla distribution of Silver -->
                
                <!-- End Silver Generation --> 

                
                <!-- Begin Electrotine Generation --> 
                
                <!-- Begin VerticalVeins distribution of Electrotine -->
                <IfCondition condition=':= predElectrotineDist = "verticalVeins"'>
                
                    <Veins name='predElectrotineBaseParentVeins' block='ProjRed|Exploration:projectred.exploration.ore:6' inherits='PresetVerticalVeins'>
                        <Description>
                            Single vertical veins that occur with no motherlodes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x6001FFFC</WireframeColor>
                        <Setting name='MotherlodeHeight' avg=':= _default_' range=':= _default_' type='uniform' scaleTo='SeaLevel' /> 
                        <Setting name='SegmentRadius' avg=':= 1 * 1 * predElectrotineSize * _default_' range=':= 1 * 1 * predElectrotineSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':=  1 * 1.3 * predElectrotineFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                        <Veins name='predElectrotineBaseChildVeins' block='ProjRed|Exploration:projectred.exploration.ore:6' inherits='PresetVerticalVeins'>
                            <Description>
                                Single vertical veins that occur with no motherlodes.
                            </Description>
                            <DrawWireframe>:=drawWireframes</DrawWireframe>
                            <WireframeColor>0x6001FFFC</WireframeColor>
                            <Setting name='MotherlodeHeight' avg=':= _default_' range=':= _default_' type='uniform' scaleTo='SeaLevel' /> 
                            <Setting name='SegmentRadius' avg=':= 1 * 1 * predElectrotineSize * _default_' range=':= 1 * 1 * predElectrotineSize * _default_'/>
                            <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                            <Setting name='MotherlodeFrequency' avg=':= 1 * 1.3 * predElectrotineFreq * 3 * _default_'/>
                            <Replaces block='minecraft:stone'/>
                        </Veins>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Electrotine Vertical Veins) Settings -->
                    <Veins name='predElectrotinePrefersParentVeins' block='ProjRed|Exploration:projectred.exploration.ore:6' inherits='predElectrotineBaseParentVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x6001FFFC</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Desert'/>
                        <Veins name='predElectrotinePrefersChildVeins' block='ProjRed|Exploration:projectred.exploration.ore:6' inherits='predElectrotineBaseChildVeins'>
                            <Description>
                                Spawns 2 more times in preferred biomes.
                            </Description>
                            <DrawWireframe>:=drawWireframes</DrawWireframe>
                            <WireframeColor>0x6001FFFC</WireframeColor>
                            <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                            <BiomeType name='Desert'/>
                        </Veins>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Electrotine Vertical Veins) Settings -->
                
                </IfCondition>
                <!-- End VerticalVeins distribution of Electrotine -->
                
                
                <!-- Begin  Small Deposits distribution of Electrotine -->
                <IfCondition condition=':= predElectrotineDist = "smallDeposits"'>
                
                    <Veins name='predElectrotineBaseVeins' block='ProjRed|Exploration:projectred.exploration.ore:6' inherits='PresetSmallDeposits'>
                        <Description>
                            Small motherlodes without any branches.
                            Similar to the deposits produced by StandardGen distributions.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x6001FFFC</WireframeColor>
                        <Setting name='MotherlodeHeight' avg=':= _default_' range=':= _default_' type='uniform' scaleTo='SeaLevel' /> 
                        <Setting name='MotherlodeSize' avg=':= 1 * 1 * predElectrotineSize * _default_' range=':= 1 * 1 * predElectrotineSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 1.3 * predElectrotineFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Electrotine Small Deposits) Settings -->
                    <Veins name='predElectrotinePrefersVeins' block='ProjRed|Exploration:projectred.exploration.ore:6' inherits='predElectrotineBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x6001FFFC</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Desert'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Electrotine Small Deposits) Settings -->
                
                </IfCondition>
                <!-- End  Small Deposits distribution of Electrotine -->
                
                
                <!-- Begin  StrategicCloud distribution of Electrotine -->
                <IfCondition condition=':= predElectrotineDist = "strategicCloud"'>
                
                    <Cloud name='predElectrotineBaseCloud' block='ProjRed|Exploration:projectred.exploration.ore:6' 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>0x6001FFFC</WireframeColor>
                        <Setting name='CloudRadius' avg=':= 1 * 1.2 * predElectrotineSize * _default_' range=':= 1 * 1.2 * predElectrotineSize * _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 1.2 * predElectrotineSize * _default_' range=':= 1 * 1.2 * predElectrotineSize * _default_'/>
                        <Setting name='CloudHeight' avg=':= _default_' range=':= _default_' type='uniform' scaleTo='SeaLevel'/>
                        <Setting name='OreDensity' avg=':= 1 * 0.75 * _default_' range=':= _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 1 * 1.2 * predElectrotineSize * _default_' range=':= 1 * 1 * 1.2 * predElectrotineSize  * _default_'/>
                        <Setting name='DistributionFrequency' avg=':= 1 * 5 * predElectrotineFreq *_default_'/>
                        <Replaces block='minecraft:stone'/>
                        
                        <!-- Begin Electrotine Strategic Cloud Hint Veins -->
                        <Veins name='predElectrotineBaseHintVeins' block='ProjRed|Exploration:projectred.exploration.ore:6' 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>0x6001FFFC</WireframeColor>
                            <Replaces block='minecraft:dirt'/>
                            <Replaces block='minecraft:sandstone'/>
                            <Replaces block='minecraft:stone'/>
                        </Veins>
                        <!-- End Electrotine Strategic Cloud Hint Veins -->

                    </Cloud>
                    
                
                </IfCondition>
                <!-- End  StrategicCloud distribution of Electrotine -->
                
                
                <!-- Begin  Vanilla distribution of Electrotine -->
                <IfCondition condition=':= predElectrotineDist = "vanillaStdGen"'>
                
                    <StandardGen name='predElectrotineBaseStandard' block='ProjRed|Exploration:projectred.exploration.ore:6' inherits='PresetStandardGen'>
                        <Description>
                            This mimics vanilla ore generation.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x6001FFFC</WireframeColor>
                        <Setting name='Size' avg=':= 1 * 7/8 * predElectrotineSize * _default_'/>
                        <Setting name='Height' avg=':= 8' range=':= 8' type='uniform'/> 
                        <Setting name='Frequency' avg=':= 1 * 0.4 * predElectrotineFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                    </StandardGen>
                    
                
                </IfCondition>
                <!-- End  Vanilla distribution of Electrotine -->
                
                <!-- End Electrotine Generation --> 

                
                <!-- Begin Marble Generation --> 
                
                <!-- Begin Layered Veins distribution of Marble -->
                <IfCondition condition=':= predMarbleDist = "layeredVeins"'>
                
                    <Veins name='predMarbleBaseVeins' block='ProjRed|Exploration:projectred.exploration.stone' inherits='PresetLayeredVeins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60FFFFFF</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 1 * predMarbleSize * _default_' range=':= 1 * 1 * predMarbleSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 128' range=':= 128' type='uniform' scaleTo='SeaLevel'/> 
                        <Setting name='SegmentRadius' avg=':= 1 * 1 * predMarbleSize * _default_' range=':= 1 * 1 * predMarbleSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 3 * 1 * predMarbleFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Marble Layered Veins) Settings -->
                    <Veins name='predMarblePrefersVeins' block='ProjRed|Exploration:projectred.exploration.stone' inherits='predMarbleBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60FFFFFF</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='mountain'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Marble Layered Veins) Settings -->
                
                </IfCondition>
                <!-- End Layered Veins distribution of Marble -->
                
                <!-- End Marble Generation --> 

                
                <!-- Begin Basalt Generation --> 
                
                <!-- Begin Layered Veins distribution of Basalt -->
                <IfCondition condition=':= predBasaltDist = "layeredVeins"'>
                
                    <Veins name='predBasaltBaseVeins' block='ProjRed|Exploration:projectred.exploration.stone:3' inherits='PresetLayeredVeins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60111111</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 1 * predBasaltSize * _default_' range=':= 1 * 1 * predBasaltSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 128' range=':= 128' type='uniform' scaleTo='SeaLevel'/> 
                        <Setting name='SegmentRadius' avg=':= 1 * 1 * predBasaltSize * _default_' range=':= 1 * 1 * predBasaltSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 3 * 1 * predBasaltFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Basalt Layered Veins) Settings -->
                    <Veins name='predBasaltPrefersVeins' block='ProjRed|Exploration:projectred.exploration.stone:3' inherits='predBasaltBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60111111</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='mountain'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Basalt Layered Veins) Settings -->
                
                </IfCondition>
                <!-- End Layered Veins distribution of Basalt -->
                
                <!-- End Basalt 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. -->