<!-- =================================================================
     Custom Ore Generation "Thermal Foundation" Module: This
     configuration covers copper, tin, silver, lead, nickel, and
     platinum.
     ================================================================= -->


<!-- Thermal Foundation is the basis upon which "Thermal Expansion"
     depends.  Included in this foundation are the six ores that are
     heavily used by all associated mods. -->




<!-- Is the "Thermal Foundation" mod on the system?  Let's find out! -->
<IfModInstalled name="ThermalFoundation">

    <!-- Starting Configuration for Custom Ore Generation. -->
    <ConfigSection>





        <!-- Setup Screen Configuration -->
        <ConfigSection>
            <OptionDisplayGroup name='groupThermalFoundation' displayName='Thermal Foundation' displayState='shown'>
                <Description>
                    Distribution options for Thermal Foundation Ores.
                </Description>
            </OptionDisplayGroup>
            <OptionChoice name='enableThermalFoundation' displayName='Handle Thermal Foundation Setup?' default='true' displayState='shown_dynamic' displayGroup='groupThermalFoundation'>
                <Description> Should Custom Ore Generation handle Thermal Foundation ore generation? </Description>
                <Choice value=':= ?true' displayValue='Yes' description='Use Custom Ore Generation to handle Thermal Foundation ores.'/>
                <Choice value=':= ?false' displayValue='No' description='Thermal Foundation ores will be handled by the mod itself.'/>
            </OptionChoice>

            <!-- Copper Configuration UI Starting -->
            <ConfigSection>
                <OptionChoice name='thfoCopperDist'  displayState=':= if(?enableThermalFoundation, "shown", "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Controls how Copper is generated </Description>
                    <DisplayName>Thermal Foundation Copper</DisplayName>
                    <Choice value='LayeredVeins' displayValue='Layered Veins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                    </Choice>
                    <Choice value='Cloud' displayValue='Strategic Cloud'>
                        <Description>
                            Large irregular clouds filled lightly with ore.
                        </Description>
                    </Choice>
                    <Choice value='Vanilla' displayValue='Vanilla'>
                        <Description>
                            Simulates Vanilla Minecraft.
                        </Description>
                    </Choice>
                    <Choice value='none' displayValue='None' description='Copper is not generated in the world.'/>
                </OptionChoice>
                <OptionNumeric name='thfoCopperFreq' default='1'  min='0' max='5' displayState=':= if(?enableThermalFoundation, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Frequency multiplier for Thermal Foundation Copper distributions </Description>
                    <DisplayName>Thermal Foundation Copper Freq.</DisplayName>
                </OptionNumeric>
                <OptionNumeric name='thfoCopperSize' default='1'  min='0' max='5' displayState=':= if(?enableThermalFoundation, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Size multiplier for Thermal Foundation Copper distributions </Description>
                    <DisplayName>Thermal Foundation Copper Size</DisplayName>
                </OptionNumeric>
            </ConfigSection>
            <!-- Copper Configuration UI Complete -->


            <!-- Tin Configuration UI Starting -->
            <ConfigSection>
                <OptionChoice name='thfoTinDist'  displayState=':= if(?enableThermalFoundation, "shown", "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Controls how Tin is generated </Description>
                    <DisplayName>Thermal Foundation Tin</DisplayName>
                    <Choice value='LayeredVeins' displayValue='Layered Veins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                    </Choice>
                    <Choice value='Cloud' displayValue='Strategic Cloud'>
                        <Description>
                            Large irregular clouds filled lightly with ore.
                        </Description>
                    </Choice>
                    <Choice value='Vanilla' displayValue='Vanilla'>
                        <Description>
                            Simulates Vanilla Minecraft.
                        </Description>
                    </Choice>
                    <Choice value='none' displayValue='None' description='Tin is not generated in the world.'/>
                </OptionChoice>
                <OptionNumeric name='thfoTinFreq' default='1'  min='0' max='5' displayState=':= if(?enableThermalFoundation, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Frequency multiplier for Thermal Foundation Tin distributions </Description>
                    <DisplayName>Thermal Foundation Tin Freq.</DisplayName>
                </OptionNumeric>
                <OptionNumeric name='thfoTinSize' default='1'  min='0' max='5' displayState=':= if(?enableThermalFoundation, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Size multiplier for Thermal Foundation Tin distributions </Description>
                    <DisplayName>Thermal Foundation Tin Size</DisplayName>
                </OptionNumeric>
            </ConfigSection>
            <!-- Tin Configuration UI Complete -->


            <!-- Silver Configuration UI Starting -->
            <ConfigSection>
                <OptionChoice name='thfoSilverDist'  displayState=':= if(?enableThermalFoundation, "shown", "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Controls how Silver is generated </Description>
                    <DisplayName>Thermal Foundation Silver</DisplayName>
                    <Choice value='LayeredVeins' displayValue='Layered Veins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                    </Choice>
                    <Choice value='Cloud' displayValue='Strategic Cloud'>
                        <Description>
                            Large irregular clouds filled lightly with ore.
                        </Description>
                    </Choice>
                    <Choice value='Vanilla' displayValue='Vanilla'>
                        <Description>
                            Simulates Vanilla Minecraft.
                        </Description>
                    </Choice>
                    <Choice value='none' displayValue='None' description='Silver is not generated in the world.'/>
                </OptionChoice>
                <OptionNumeric name='thfoSilverFreq' default='1'  min='0' max='5' displayState=':= if(?enableThermalFoundation, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Frequency multiplier for Thermal Foundation Silver distributions </Description>
                    <DisplayName>Thermal Foundation Silver Freq.</DisplayName>
                </OptionNumeric>
                <OptionNumeric name='thfoSilverSize' default='1'  min='0' max='5' displayState=':= if(?enableThermalFoundation, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Size multiplier for Thermal Foundation Silver distributions </Description>
                    <DisplayName>Thermal Foundation Silver Size</DisplayName>
                </OptionNumeric>
            </ConfigSection>
            <!-- Silver Configuration UI Complete -->


            <!-- Lead Configuration UI Starting -->
            <ConfigSection>
                <OptionChoice name='thfoLeadDist'  displayState=':= if(?enableThermalFoundation, "shown", "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Controls how Lead is generated </Description>
                    <DisplayName>Thermal Foundation Lead</DisplayName>
                    <Choice value='LayeredVeins' displayValue='Layered Veins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                    </Choice>
                    <Choice value='Cloud' displayValue='Strategic Cloud'>
                        <Description>
                            Large irregular clouds filled lightly with ore.
                        </Description>
                    </Choice>
                    <Choice value='Vanilla' displayValue='Vanilla'>
                        <Description>
                            Simulates Vanilla Minecraft.
                        </Description>
                    </Choice>
                    <Choice value='none' displayValue='None' description='Lead is not generated in the world.'/>
                </OptionChoice>
                <OptionNumeric name='thfoLeadFreq' default='1'  min='0' max='5' displayState=':= if(?enableThermalFoundation, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Frequency multiplier for Thermal Foundation Lead distributions </Description>
                    <DisplayName>Thermal Foundation Lead Freq.</DisplayName>
                </OptionNumeric>
                <OptionNumeric name='thfoLeadSize' default='1'  min='0' max='5' displayState=':= if(?enableThermalFoundation, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Size multiplier for Thermal Foundation Lead distributions </Description>
                    <DisplayName>Thermal Foundation Lead Size</DisplayName>
                </OptionNumeric>
            </ConfigSection>
            <!-- Lead Configuration UI Complete -->


            <!-- Nickel Configuration UI Starting -->
            <ConfigSection>
                <OptionChoice name='thfoNickelDist'  displayState=':= if(?enableThermalFoundation, "shown", "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Controls how Nickel is generated </Description>
                    <DisplayName>Thermal Foundation Nickel</DisplayName>
                    <Choice value='LayeredVeins' displayValue='Layered Veins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                    </Choice>
                    <Choice value='Cloud' displayValue='Strategic Cloud'>
                        <Description>
                            Large irregular clouds filled lightly with ore.
                        </Description>
                    </Choice>
                    <Choice value='Vanilla' displayValue='Vanilla'>
                        <Description>
                            Simulates Vanilla Minecraft.
                        </Description>
                    </Choice>
                    <Choice value='none' displayValue='None' description='Nickel is not generated in the world.'/>
                </OptionChoice>
                <OptionNumeric name='thfoNickelFreq' default='1'  min='0' max='5' displayState=':= if(?enableThermalFoundation, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Frequency multiplier for Thermal Foundation Nickel distributions </Description>
                    <DisplayName>Thermal Foundation Nickel Freq.</DisplayName>
                </OptionNumeric>
                <OptionNumeric name='thfoNickelSize' default='1'  min='0' max='5' displayState=':= if(?enableThermalFoundation, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Size multiplier for Thermal Foundation Nickel distributions </Description>
                    <DisplayName>Thermal Foundation Nickel Size</DisplayName>
                </OptionNumeric>
            </ConfigSection>
            <!-- Nickel Configuration UI Complete -->


            <!-- Platinum Configuration UI Starting -->
            <ConfigSection>
                <OptionChoice name='thfoPlatinumDist'  displayState=':= if(?enableThermalFoundation, "shown", "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Controls how Platinum is generated </Description>
                    <DisplayName>Thermal Foundation Platinum</DisplayName>
                    <Choice value='LayeredVeins' displayValue='Layered Veins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                    </Choice>
                    <Choice value='Cloud' displayValue='Strategic Cloud'>
                        <Description>
                            Large irregular clouds filled lightly with ore.
                        </Description>
                    </Choice>
                    <Choice value='Vanilla' displayValue='Vanilla'>
                        <Description>
                            Simulates Vanilla Minecraft.
                        </Description>
                    </Choice>
                    <Choice value='none' displayValue='None' description='Platinum is not generated in the world.'/>
                </OptionChoice>
                <OptionNumeric name='thfoPlatinumFreq' default='1'  min='0' max='5' displayState=':= if(?enableThermalFoundation, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Frequency multiplier for Thermal Foundation Platinum distributions </Description>
                    <DisplayName>Thermal Foundation Platinum Freq.</DisplayName>
                </OptionNumeric>
                <OptionNumeric name='thfoPlatinumSize' default='1'  min='0' max='5' displayState=':= if(?enableThermalFoundation, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupThermalFoundation'>
                    <Description> Size multiplier for Thermal Foundation Platinum distributions </Description>
                    <DisplayName>Thermal Foundation Platinum Size</DisplayName>
                </OptionNumeric>
            </ConfigSection>
            <!-- Platinum Configuration UI Complete -->

        </ConfigSection>
        <!-- Setup Screen Complete -->

        <IfCondition condition=':= ?enableThermalFoundation'>




            <!-- Overworld Setup Beginning -->

            <IfCondition condition=':= ?COGActive'>

                <!-- Starting Original "Overworld" Block Removal -->

                <IfCondition condition=':= ?blockExists("minecraft:stone")'>
                    <Substitute name='thfoOverworldBlockSubstitute0' 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>
                        <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore")'> <Replaces block='ThermalFoundation:Ore' weight='1.0' /> </IfCondition>
                        <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:1")'> <Replaces block='ThermalFoundation:Ore:1' weight='1.0' /> </IfCondition>
                        <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:2")'> <Replaces block='ThermalFoundation:Ore:2' weight='1.0' /> </IfCondition>
                        <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:3")'> <Replaces block='ThermalFoundation:Ore:3' weight='1.0' /> </IfCondition>
                        <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:4")'> <Replaces block='ThermalFoundation:Ore:4' weight='1.0' /> </IfCondition>
                        <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:5")'> <Replaces block='ThermalFoundation:Ore:5' weight='1.0' /> </IfCondition>
                    </Substitute>
                </IfCondition>

                <!-- Original "Overworld" Block Removal Complete -->

                <!-- Adding blocks -->

                <!-- Begin Copper Generation -->

                <!-- Starting LayeredVeins Preset for Copper. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoCopperDist = "LayeredVeins"'>
                        <Veins name='thfoCopperVeins'  inherits='PresetLayeredVeins' drawWireframe='true' wireframeColor='0x60FF8E2B' drawBoundBox='false' boundBoxColor='0x60FF8E2B'>
                            <Description>
                                Small, fairly rare motherlodes  with
                                2-4 horizontal veins each.
                            </Description>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore")'> <OreBlock block='ThermalFoundation:Ore' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='MotherlodeFrequency' avg=':= 1.583 * _default_ * thfoCopperFreq ' range=':= 1.583 * _default_ * thfoCopperFreq ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeSize' avg=':= 1.080 * _default_ * thfoCopperSize ' range=':= 1.080 * _default_ * thfoCopperSize ' type='normal' />
                            <Setting name='MotherlodeHeight' avg=':= 68 ' range=':= 28 ' type='uniform' scaleTo='base' />
                            <Setting name='MotherlodeRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchLength' avg=':= 1.258 * _default_ ' range=':= 1.258 * _default_ ' type='normal' />
                            <Setting name='BranchHeightLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' scaleTo='base' />
                            <Setting name='SegmentForkFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentForkLengthMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentLength' avg=':= _default_ * thfoCopperSize ' range=':= _default_ * thfoCopperSize ' type='normal' />
                            <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentRadius' avg=':= 1.122 * _default_ * thfoCopperSize ' range=':= 1.122 * _default_ * thfoCopperSize ' type='normal' />
                            <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                        </Veins>
                    </IfCondition>
                </ConfigSection>
                <!-- LayeredVeins Preset for Copper is complete. -->


                <!-- Starting Cloud Preset for Copper. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoCopperDist = "Cloud"'>
                        <Cloud name='thfoCopperCloud'  inherits='PresetStrategicCloud' drawWireframe='true' wireframeColor='0x60FF8E2B' drawBoundBox='false' boundBoxColor='0x60FF8E2B'>
                            <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>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore")'> <OreBlock block='ThermalFoundation:Ore' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='CloudRadius' avg=':= 1.177 * _default_ * thfoCopperSize ' range=':= 1.177 * _default_ * thfoCopperSize ' type='normal' />
                            <Setting name='CloudThickness' avg=':= 1.177 * _default_ * thfoCopperSize ' range=':= 1.177 * _default_ * thfoCopperSize ' type='normal' scaleTo='base' />
                            <Setting name='DistributionFrequency' avg=':= 1.385 * _default_ * thfoCopperFreq ' range=':= 1.385 * _default_ * thfoCopperFreq ' type='normal' scaleTo='base' />
                            <Setting name='CloudHeight' avg=':= 68 ' range=':= 28 ' type='uniform' scaleTo='base' />
                            <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='CloudSizeNoise' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='CloudInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' scaleTo='base' />
                            <Setting name='OreVolumeNoiseCutoff' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Veins name='thfoCopperHintVeins'  inherits='PresetHintVeins' drawWireframe='true' wireframeColor='0x60FF8E2B' drawBoundBox='false' boundBoxColor='0x60FF8E2B'>
                                <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.  Note that the  frequency
                                    is multiplied by  ground level to
                                    maintain a  constant density, but
                                    not by  ore frequency because it
                                    is  assumed that the frequency of
                                    the parent distribution will
                                    already be scaled by that.
                                </Description>
                                <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore")'> <OreBlock block='ThermalFoundation:Ore' weight='1.0' /> </IfCondition>
                                <IfCondition condition=':= ?blockExists("minecraft:dirt")'> <Replaces block='minecraft:dirt' weight='1.0' /> </IfCondition>
                                <IfCondition condition=':= ?blockExists("minecraft:sandstone")'> <Replaces block='minecraft:sandstone' weight='1.0' /> </IfCondition>
                            </Veins>
                        </Cloud>
                    </IfCondition>
                </ConfigSection>
                <!-- Cloud Preset for Copper is complete. -->


                <!-- Starting Vanilla Preset for Copper. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoCopperDist = "Vanilla"'>
                        <StandardGen name='thfoCopperStandard'  inherits='PresetStandardGen' drawWireframe='true' wireframeColor='0x60FF8E2B' drawBoundBox='false' boundBoxColor='0x60FF8E2B'>
                            <Description>
                                A master preset for standardgen  ore
                                distributions.
                            </Description>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore")'> <OreBlock block='ThermalFoundation:Ore' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='Size' avg=':= 8.000 * thfoCopperSize ' range=':= _default_ * thfoCopperSize ' type='normal' />
                            <Setting name='Frequency' avg=':= 10.000 * thfoCopperFreq ' range=':= _default_ * thfoCopperFreq ' type='normal' scaleTo='base' />
                            <Setting name='Height' avg=':= 68 ' range=':= 28 ' type='uniform' scaleTo='base' />
                            <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                        </StandardGen>
                    </IfCondition>
                </ConfigSection>
                <!-- Vanilla Preset for Copper is complete. -->

                <!-- End Copper Generation -->


                <!-- Begin Tin Generation -->

                <!-- Starting LayeredVeins Preset for Tin. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoTinDist = "LayeredVeins"'>
                        <Veins name='thfoTinVeins'  inherits='PresetLayeredVeins' drawWireframe='true' wireframeColor='0x60E8E8E8' drawBoundBox='false' boundBoxColor='0x60E8E8E8'>
                            <Description>
                                Small, fairly rare motherlodes  with
                                2-4 horizontal veins each.
                            </Description>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:1")'> <OreBlock block='ThermalFoundation:Ore:1' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='MotherlodeFrequency' avg=':= 1.416 * _default_ * thfoTinFreq ' range=':= 1.416 * _default_ * thfoTinFreq ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeSize' avg=':= 1.060 * _default_ * thfoTinSize ' range=':= 1.060 * _default_ * thfoTinSize ' type='normal' />
                            <Setting name='MotherlodeHeight' avg=':= 38 ' range=':= 17 ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchLength' avg=':= 1.190 * _default_ ' range=':= 1.190 * _default_ ' type='normal' />
                            <Setting name='BranchHeightLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' scaleTo='base' />
                            <Setting name='SegmentForkFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentForkLengthMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentLength' avg=':= _default_ * thfoTinSize ' range=':= _default_ * thfoTinSize ' type='normal' />
                            <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentRadius' avg=':= 1.091 * _default_ * thfoTinSize ' range=':= 1.091 * _default_ * thfoTinSize ' type='normal' />
                            <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                        </Veins>
                    </IfCondition>
                </ConfigSection>
                <!-- LayeredVeins Preset for Tin is complete. -->


                <!-- Starting Cloud Preset for Tin. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoTinDist = "Cloud"'>
                        <Cloud name='thfoTinCloud'  inherits='PresetStrategicCloud' drawWireframe='true' wireframeColor='0x60E8E8E8' drawBoundBox='false' boundBoxColor='0x60E8E8E8'>
                            <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>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:1")'> <OreBlock block='ThermalFoundation:Ore:1' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='CloudRadius' avg=':= 1.113 * _default_ * thfoTinSize ' range=':= 1.113 * _default_ * thfoTinSize ' type='normal' />
                            <Setting name='CloudThickness' avg=':= 1.113 * _default_ * thfoTinSize ' range=':= 1.113 * _default_ * thfoTinSize ' type='normal' scaleTo='base' />
                            <Setting name='DistributionFrequency' avg=':= 1.239 * _default_ * thfoTinFreq ' range=':= 1.239 * _default_ * thfoTinFreq ' type='normal' scaleTo='base' />
                            <Setting name='CloudHeight' avg=':= 38 ' range=':= 17 ' type='normal' scaleTo='base' />
                            <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='CloudSizeNoise' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='CloudInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' scaleTo='base' />
                            <Setting name='OreVolumeNoiseCutoff' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Veins name='thfoTinHintVeins'  inherits='PresetHintVeins' drawWireframe='true' wireframeColor='0x60E8E8E8' drawBoundBox='false' boundBoxColor='0x60E8E8E8'>
                                <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.  Note that the  frequency
                                    is multiplied by  ground level to
                                    maintain a  constant density, but
                                    not by  ore frequency because it
                                    is  assumed that the frequency of
                                    the parent distribution will
                                    already be scaled by that.
                                </Description>
                                <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:1")'> <OreBlock block='ThermalFoundation:Ore:1' weight='1.0' /> </IfCondition>
                                <IfCondition condition=':= ?blockExists("minecraft:dirt")'> <Replaces block='minecraft:dirt' weight='1.0' /> </IfCondition>
                                <IfCondition condition=':= ?blockExists("minecraft:sandstone")'> <Replaces block='minecraft:sandstone' weight='1.0' /> </IfCondition>
                            </Veins>
                        </Cloud>
                    </IfCondition>
                </ConfigSection>
                <!-- Cloud Preset for Tin is complete. -->


                <!-- Starting Vanilla Preset for Tin. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoTinDist = "Vanilla"'>
                        <StandardGen name='thfoTinStandard'  inherits='PresetStandardGen' drawWireframe='true' wireframeColor='0x60E8E8E8' drawBoundBox='false' boundBoxColor='0x60E8E8E8'>
                            <Description>
                                A master preset for standardgen  ore
                                distributions.
                            </Description>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:1")'> <OreBlock block='ThermalFoundation:Ore:1' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='Size' avg=':= 8.000 * thfoTinSize ' range=':= _default_ * thfoTinSize ' type='normal' />
                            <Setting name='Frequency' avg=':= 8.000 * thfoTinFreq ' range=':= _default_ * thfoTinFreq ' type='normal' scaleTo='base' />
                            <Setting name='Height' avg=':= 38 ' range=':= 17 ' type='normal' scaleTo='base' />
                            <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                        </StandardGen>
                    </IfCondition>
                </ConfigSection>
                <!-- Vanilla Preset for Tin is complete. -->

                <!-- End Tin Generation -->


                <!-- Begin Silver Generation -->

                <!-- Starting LayeredVeins Preset for Silver. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoSilverDist = "LayeredVeins"'>
                        <Veins name='thfoSilverVeins'  inherits='PresetLayeredVeins' drawWireframe='true' wireframeColor='0x60E3F2F7' drawBoundBox='false' boundBoxColor='0x60E3F2F7'>
                            <Description>
                                Small, fairly rare motherlodes  with
                                2-4 horizontal veins each.
                            </Description>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:2")'> <OreBlock block='ThermalFoundation:Ore:2' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='MotherlodeFrequency' avg=':= 0.821 * _default_ * thfoSilverFreq ' range=':= _default_ * thfoSilverFreq ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeSize' avg=':= 0.968 * _default_ * thfoSilverSize ' range=':= _default_ * thfoSilverSize ' type='normal' />
                            <Setting name='MotherlodeHeight' avg=':= 18 ' range=':= 12 ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchLength' avg=':= 0.906 * _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchHeightLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' scaleTo='base' />
                            <Setting name='SegmentForkFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentForkLengthMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentLength' avg=':= _default_ * thfoSilverSize ' range=':= _default_ * thfoSilverSize ' type='normal' />
                            <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentRadius' avg=':= 0.952 * _default_ * thfoSilverSize ' range=':= _default_ * thfoSilverSize ' type='normal' />
                            <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                        </Veins>
                    </IfCondition>
                </ConfigSection>
                <!-- LayeredVeins Preset for Silver is complete. -->


                <!-- Starting Cloud Preset for Silver. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoSilverDist = "Cloud"'>
                        <Cloud name='thfoSilverCloud'  inherits='PresetStrategicCloud' drawWireframe='true' wireframeColor='0x60E3F2F7' drawBoundBox='false' boundBoxColor='0x60E3F2F7'>
                            <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>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:2")'> <OreBlock block='ThermalFoundation:Ore:2' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='CloudRadius' avg=':= 1.280 * _default_ * thfoSilverSize ' range=':= _default_ * thfoSilverSize ' type='normal' />
                            <Setting name='CloudThickness' avg=':= 1.280 * _default_ * thfoSilverSize ' range=':= _default_ * thfoSilverSize ' type='normal' scaleTo='base' />
                            <Setting name='DistributionFrequency' avg=':= 1.638  * _default_ * thfoSilverFreq ' range=':= _default_ * thfoSilverFreq ' type='normal' scaleTo='base' />
                            <Setting name='CloudHeight' avg=':= 18 ' range=':= 12 ' type='normal' scaleTo='base' />
                            <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='CloudSizeNoise' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='CloudInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' scaleTo='base' />
                            <Setting name='OreVolumeNoiseCutoff' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Veins name='thfoSilverHintVeins'  inherits='PresetHintVeins' drawWireframe='true' wireframeColor='0x60E3F2F7' drawBoundBox='false' boundBoxColor='0x60E3F2F7'>
                                <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.  Note that the  frequency
                                    is multiplied by  ground level to
                                    maintain a  constant density, but
                                    not by  ore frequency because it
                                    is  assumed that the frequency of
                                    the parent distribution will
                                    already be scaled by that.
                                </Description>
                                <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:2")'> <OreBlock block='ThermalFoundation:Ore:2' weight='1.0' /> </IfCondition>
                                <IfCondition condition=':= ?blockExists("minecraft:dirt")'> <Replaces block='minecraft:dirt' weight='1.0' /> </IfCondition>
                                <IfCondition condition=':= ?blockExists("minecraft:sandstone")'> <Replaces block='minecraft:sandstone' weight='1.0' /> </IfCondition>
                            </Veins>
                        </Cloud>
                    </IfCondition>
                </ConfigSection>
                <!-- Cloud Preset for Silver is complete. -->


                <!-- Starting Vanilla Preset for Silver. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoSilverDist = "Vanilla"'>
                        <StandardGen name='thfoSilverStandard'  inherits='PresetStandardGen' drawWireframe='true' wireframeColor='0x60E3F2F7' drawBoundBox='false' boundBoxColor='0x60E3F2F7'>
                            <Description>
                                A master preset for standardgen  ore
                                distributions.
                            </Description>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:2")'> <OreBlock block='ThermalFoundation:Ore:2' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='Size' avg=':= 8 * thfoSilverSize ' range=':= _default_ * thfoSilverSize ' type='normal' />
                            <Setting name='Frequency' avg=':= 6 * thfoSilverFreq ' range=':= _default_ * thfoSilverFreq ' type='normal' scaleTo='base' />
                            <Setting name='Height' avg=':= 18 ' range=':= 12 ' type='normal' scaleTo='base' />
                            <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                        </StandardGen>
                    </IfCondition>
                </ConfigSection>
                <!-- Vanilla Preset for Silver is complete. -->

                <!-- End Silver Generation -->


                <!-- Begin Lead Generation -->

                <!-- Starting LayeredVeins Preset for Lead. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoLeadDist = "LayeredVeins"'>
                        <Veins name='thfoLeadVeins'  inherits='PresetLayeredVeins' drawWireframe='true' wireframeColor='0x60818EBE' drawBoundBox='false' boundBoxColor='0x60818EBE'>
                            <Description>
                                Small, fairly rare motherlodes  with
                                2-4 horizontal veins each.
                            </Description>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:3")'> <OreBlock block='ThermalFoundation:Ore:3' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='MotherlodeFrequency' avg=':= 1.416 * _default_ * thfoLeadFreq ' range=':= 1.416 * _default_ * thfoLeadFreq ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeSize' avg=':= 1.060 * _default_ * thfoLeadSize ' range=':= 1.060 * _default_ * thfoLeadSize ' type='normal' />
                            <Setting name='MotherlodeHeight' avg=':= 23 ' range=':= 12 ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchLength' avg=':= 1.190 * _default_ ' range=':= 1.190 * _default_ ' type='normal' />
                            <Setting name='BranchHeightLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' scaleTo='base' />
                            <Setting name='SegmentForkFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentForkLengthMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentLength' avg=':= _default_ * thfoLeadSize ' range=':= _default_ * thfoLeadSize ' type='normal' />
                            <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentRadius' avg=':= 1.091 * _default_ * thfoLeadSize ' range=':= 1.091 * _default_ * thfoLeadSize ' type='normal' />
                            <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                        </Veins>
                    </IfCondition>
                </ConfigSection>
                <!-- LayeredVeins Preset for Lead is complete. -->


                <!-- Starting Cloud Preset for Lead. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoLeadDist = "Cloud"'>
                        <Cloud name='thfoLeadCloud'  inherits='PresetStrategicCloud' drawWireframe='true' wireframeColor='0x60818EBE' drawBoundBox='false' boundBoxColor='0x60818EBE'>
                            <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>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:3")'> <OreBlock block='ThermalFoundation:Ore:3' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='CloudRadius' avg=':= 1.113 * _default_ * thfoLeadSize ' range=':= 1.113 * _default_ * thfoLeadSize ' type='normal' />
                            <Setting name='CloudThickness' avg=':= 1.113 * _default_ * thfoLeadSize ' range=':= 1.113 * _default_ * thfoLeadSize ' type='normal' scaleTo='base' />
                            <Setting name='DistributionFrequency' avg=':= 1.239 * _default_ * thfoLeadFreq ' range=':= 1.239 * _default_ * thfoLeadFreq ' type='normal' scaleTo='base' />
                            <Setting name='CloudHeight' avg=':= 23 ' range=':= 12 ' type='normal' scaleTo='base' />
                            <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='CloudSizeNoise' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='CloudInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' scaleTo='base' />
                            <Setting name='OreVolumeNoiseCutoff' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Veins name='thfoLeadHintVeins'  inherits='PresetHintVeins' drawWireframe='true' wireframeColor='0x60818EBE' drawBoundBox='false' boundBoxColor='0x60818EBE'>
                                <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.  Note that the  frequency
                                    is multiplied by  ground level to
                                    maintain a  constant density, but
                                    not by  ore frequency because it
                                    is  assumed that the frequency of
                                    the parent distribution will
                                    already be scaled by that.
                                </Description>
                                <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:3")'> <OreBlock block='ThermalFoundation:Ore:3' weight='1.0' /> </IfCondition>
                                <IfCondition condition=':= ?blockExists("minecraft:dirt")'> <Replaces block='minecraft:dirt' weight='1.0' /> </IfCondition>
                                <IfCondition condition=':= ?blockExists("minecraft:sandstone")'> <Replaces block='minecraft:sandstone' weight='1.0' /> </IfCondition>
                            </Veins>
                        </Cloud>
                    </IfCondition>
                </ConfigSection>
                <!-- Cloud Preset for Lead is complete. -->


                <!-- Starting Vanilla Preset for Lead. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoLeadDist = "Vanilla"'>
                        <StandardGen name='thfoLeadStandard'  inherits='PresetStandardGen' drawWireframe='true' wireframeColor='0x60818EBE' drawBoundBox='false' boundBoxColor='0x60818EBE'>
                            <Description>
                                A master preset for standardgen  ore
                                distributions.
                            </Description>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:3")'> <OreBlock block='ThermalFoundation:Ore:3' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='Size' avg=':= 8.000 * thfoLeadSize ' range=':= _default_ * thfoLeadSize ' type='normal' />
                            <Setting name='Frequency' avg=':= 8.000 * thfoLeadFreq ' range=':= _default_ * thfoLeadFreq ' type='normal' scaleTo='base' />
                            <Setting name='Height' avg=':= 23 ' range=':= 12 ' type='normal' scaleTo='base' />
                            <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                        </StandardGen>
                    </IfCondition>
                </ConfigSection>
                <!-- Vanilla Preset for Lead is complete. -->

                <!-- End Lead Generation -->


                <!-- Begin Nickel Generation -->

                <!-- Starting LayeredVeins Preset for Nickel. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoNickelDist = "LayeredVeins"'>
                        <Veins name='thfoNickelVeins'  inherits='PresetLayeredVeins' drawWireframe='true' wireframeColor='0x60BCBDAB' drawBoundBox='false' boundBoxColor='0x60BCBDAB'>
                            <Description>
                                Small, fairly rare motherlodes  with
                                2-4 horizontal veins each.
                            </Description>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:4")'> <OreBlock block='ThermalFoundation:Ore:4' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='MotherlodeFrequency' avg=':= 0.613 * _default_ * thfoNickelFreq ' range=':= 0.613 * _default_ * thfoNickelFreq ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeSize' avg=':= 0.922 * _default_ * thfoNickelSize ' range=':= 0.922 * _default_ * thfoNickelSize ' type='normal' />
                            <Setting name='MotherlodeHeight' avg=':= 13 ' range=':= 7 ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchLength' avg=':= 0.783 * _default_ ' range=':= 0.783 * _default_ ' type='normal' />
                            <Setting name='BranchHeightLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' scaleTo='base' />
                            <Setting name='SegmentForkFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentForkLengthMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentLength' avg=':= _default_ * thfoNickelSize ' range=':= _default_ * thfoNickelSize ' type='normal' />
                            <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentRadius' avg=':= 0.885 * _default_ * thfoNickelSize ' range=':= 0.885 * _default_ * thfoNickelSize ' type='normal' />
                            <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                        </Veins>
                    </IfCondition>
                </ConfigSection>
                <!-- LayeredVeins Preset for Nickel is complete. -->


                <!-- Starting Cloud Preset for Nickel. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoNickelDist = "Cloud"'>
                        <Cloud name='thfoNickelCloud'  inherits='PresetStrategicCloud' drawWireframe='true' wireframeColor='0x60BCBDAB' drawBoundBox='false' boundBoxColor='0x60BCBDAB'>
                            <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>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:4")'> <OreBlock block='ThermalFoundation:Ore:4' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='CloudRadius' avg=':= 0.732 * _default_ * thfoNickelSize ' range=':= 0.732 * _default_ * thfoNickelSize ' type='normal' />
                            <Setting name='CloudThickness' avg=':= 0.732 * _default_ * thfoNickelSize ' range=':= 0.732 * _default_ * thfoNickelSize ' type='normal' scaleTo='base' />
                            <Setting name='DistributionFrequency' avg=':= 0.536 * _default_ * thfoNickelFreq ' range=':= 0.536 * _default_ * thfoNickelFreq ' type='normal' scaleTo='base' />
                            <Setting name='CloudHeight' avg=':= 13 ' range=':= 7 ' type='normal' scaleTo='base' />
                            <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='CloudSizeNoise' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='CloudInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' scaleTo='base' />
                            <Setting name='OreVolumeNoiseCutoff' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Veins name='thfoNickelHintVeins'  inherits='PresetHintVeins' drawWireframe='true' wireframeColor='0x60BCBDAB' drawBoundBox='false' boundBoxColor='0x60BCBDAB'>
                                <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.  Note that the  frequency
                                    is multiplied by  ground level to
                                    maintain a  constant density, but
                                    not by  ore frequency because it
                                    is  assumed that the frequency of
                                    the parent distribution will
                                    already be scaled by that.
                                </Description>
                                <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:4")'> <OreBlock block='ThermalFoundation:Ore:4' weight='1.0' /> </IfCondition>
                                <IfCondition condition=':= ?blockExists("minecraft:dirt")'> <Replaces block='minecraft:dirt' weight='1.0' /> </IfCondition>
                                <IfCondition condition=':= ?blockExists("minecraft:sandstone")'> <Replaces block='minecraft:sandstone' weight='1.0' /> </IfCondition>
                            </Veins>
                        </Cloud>
                    </IfCondition>
                </ConfigSection>
                <!-- Cloud Preset for Nickel is complete. -->


                <!-- Starting Vanilla Preset for Nickel. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoNickelDist = "Vanilla"'>
                        <StandardGen name='thfoNickelStandard'  inherits='PresetStandardGen' drawWireframe='true' wireframeColor='0x60BCBDAB' drawBoundBox='false' boundBoxColor='0x60BCBDAB'>
                            <Description>
                                A master preset for standardgen  ore
                                distributions.
                            </Description>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:4")'> <OreBlock block='ThermalFoundation:Ore:4' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='Size' avg=':= 4.000 * thfoNickelSize ' range=':= _default_ * thfoNickelSize ' type='normal' />
                            <Setting name='Frequency' avg=':= 3.000 * thfoNickelFreq ' range=':= _default_ * thfoNickelFreq ' type='normal' scaleTo='base' />
                            <Setting name='Height' avg=':= 13 ' range=':= 7 ' type='normal' scaleTo='base' />
                            <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                        </StandardGen>
                    </IfCondition>
                </ConfigSection>
                <!-- Vanilla Preset for Nickel is complete. -->

                <!-- End Nickel Generation -->


                <!-- Begin Platinum Generation -->

                <!-- Starting LayeredVeins Preset for Platinum. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoPlatinumDist = "LayeredVeins"'>
                        <Veins name='thfoPlatinumVeins'  inherits='PresetLayeredVeins' drawWireframe='true' wireframeColor='0x606FE5F3' drawBoundBox='false' boundBoxColor='0x606FE5F3'>
                            <Description>
                                Small, fairly rare motherlodes  with
                                2-4 horizontal veins each.
                            </Description>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:5")'> <OreBlock block='ThermalFoundation:Ore:5' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='MotherlodeFrequency' avg=':= 0.306 * _default_ * thfoPlatinumFreq ' range=':= 0.306 * _default_ * thfoPlatinumFreq ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeSize' avg=':= 0.821 * _default_ * thfoPlatinumSize ' range=':= 0.821 * _default_ * thfoPlatinumSize ' type='normal' />
                            <Setting name='MotherlodeHeight' avg=':= 18 ' range=':= 12 ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='BranchLength' avg=':= 0.554 * _default_ ' range=':= 0.554 * _default_ ' type='normal' />
                            <Setting name='BranchHeightLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' scaleTo='base' />
                            <Setting name='SegmentForkFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentForkLengthMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentLength' avg=':= _default_ * thfoPlatinumSize ' range=':= _default_ * thfoPlatinumSize ' type='normal' />
                            <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentRadius' avg=':= 0.744 * _default_ * thfoPlatinumSize ' range=':= 0.744 * _default_ * thfoPlatinumSize ' type='normal' />
                            <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                        </Veins>
                    </IfCondition>
                </ConfigSection>
                <!-- LayeredVeins Preset for Platinum is complete. -->


                <!-- Starting Cloud Preset for Platinum. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoPlatinumDist = "Cloud"'>
                        <Cloud name='thfoPlatinumCloud'  inherits='PresetStrategicCloud' drawWireframe='true' wireframeColor='0x606FE5F3' drawBoundBox='false' boundBoxColor='0x606FE5F3'>
                            <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>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:5")'> <OreBlock block='ThermalFoundation:Ore:5' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='CloudRadius' avg=':= 0.518 * _default_ * thfoPlatinumSize ' range=':= 0.518 * _default_ * thfoPlatinumSize ' type='normal' />
                            <Setting name='CloudThickness' avg=':= 0.518 * _default_ * thfoPlatinumSize ' range=':= 0.518 * _default_ * thfoPlatinumSize ' type='normal' scaleTo='base' />
                            <Setting name='DistributionFrequency' avg=':= 0.268 * _default_ * thfoPlatinumFreq ' range=':= 0.268 * _default_ * thfoPlatinumFreq ' type='normal' scaleTo='base' />
                            <Setting name='CloudHeight' avg=':= 18 ' range=':= 12 ' type='normal' scaleTo='base' />
                            <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='CloudSizeNoise' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='CloudInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' scaleTo='base' />
                            <Setting name='OreVolumeNoiseCutoff' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Veins name='thfoPlatinumHintVeins'  inherits='PresetHintVeins' drawWireframe='true' wireframeColor='0x606FE5F3' drawBoundBox='false' boundBoxColor='0x606FE5F3'>
                                <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.  Note that the  frequency
                                    is multiplied by  ground level to
                                    maintain a  constant density, but
                                    not by  ore frequency because it
                                    is  assumed that the frequency of
                                    the parent distribution will
                                    already be scaled by that.
                                </Description>
                                <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:5")'> <OreBlock block='ThermalFoundation:Ore:5' weight='1.0' /> </IfCondition>
                                <IfCondition condition=':= ?blockExists("minecraft:dirt")'> <Replaces block='minecraft:dirt' weight='1.0' /> </IfCondition>
                                <IfCondition condition=':= ?blockExists("minecraft:sandstone")'> <Replaces block='minecraft:sandstone' weight='1.0' /> </IfCondition>
                            </Veins>
                        </Cloud>
                    </IfCondition>
                </ConfigSection>
                <!-- Cloud Preset for Platinum is complete. -->


                <!-- Starting Vanilla Preset for Platinum. -->
                <ConfigSection>
                    <IfCondition condition=':= thfoPlatinumDist = "Vanilla"'>
                        <StandardGen name='thfoPlatinumStandard'  inherits='PresetStandardGen' drawWireframe='true' wireframeColor='0x606FE5F3' drawBoundBox='false' boundBoxColor='0x606FE5F3'>
                            <Description>
                                A master preset for standardgen  ore
                                distributions.
                            </Description>
                            <IfCondition condition=':= ?blockExists("ThermalFoundation:Ore:5")'> <OreBlock block='ThermalFoundation:Ore:5' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='Size' avg=':= 3.000 * thfoPlatinumSize ' range=':= _default_ * thfoPlatinumSize ' type='normal' />
                            <Setting name='Frequency' avg=':= 1.000 * thfoPlatinumFreq ' range=':= _default_ * thfoPlatinumFreq ' type='normal' scaleTo='base' />
                            <Setting name='Height' avg=':= 18 ' range=':= 12 ' type='normal' scaleTo='base' />
                            <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                        </StandardGen>
                    </IfCondition>
                </ConfigSection>
                <!-- Vanilla Preset for Platinum is complete. -->

                <!-- End Platinum Generation -->

                <!-- Finished adding blocks -->

            </IfCondition>
            <!-- Overworld Setup Complete -->



        </IfCondition>

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

</IfModInstalled>
<!-- The "Thermal Foundation" mod is now configured. -->





<!-- =================================================================
     This file was made using the Sprocket Configuration Generator.
     If you wish to make your own configurations for a mod not
     currently supported by Custom Ore Generation, and you don't want
     the hassle of writing XML, you can find the generator script at
     its GitHub page: http://https://github.com/reteo/Sprocket
     ================================================================= -->
