<!-- =================================================================
     Custom Ore Generation "Galacticraft" Module: This configuration
     covers copper, tin, aluminum, and silicon.
     ================================================================= -->






<!-- Is the "Galacticraft" mod on the system?  Let's find out! -->
<IfModInstalled name="GalacticraftCore">

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





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

            <!-- Copper Configuration UI Starting -->
            <ConfigSection>
                <OptionChoice name='glctCopperDist'  displayState=':= if(?enableGalacticraft, "shown", "hidden")' displayGroup='groupGalacticraft'>
                    <Description> Controls how Copper is generated </Description>
                    <DisplayName>Galacticraft 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='glctCopperFreq' default='1'  min='0' max='5' displayState=':= if(?enableGalacticraft, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupGalacticraft'>
                    <Description> Frequency multiplier for Galacticraft Copper distributions </Description>
                    <DisplayName>Galacticraft Copper Freq.</DisplayName>
                </OptionNumeric>
                <OptionNumeric name='glctCopperSize' default='1'  min='0' max='5' displayState=':= if(?enableGalacticraft, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupGalacticraft'>
                    <Description> Size multiplier for Galacticraft Copper distributions </Description>
                    <DisplayName>Galacticraft Copper Size</DisplayName>
                </OptionNumeric>
            </ConfigSection>
            <!-- Copper Configuration UI Complete -->


            <!-- Tin Configuration UI Starting -->
            <ConfigSection>
                <OptionChoice name='glctTinDist'  displayState=':= if(?enableGalacticraft, "shown", "hidden")' displayGroup='groupGalacticraft'>
                    <Description> Controls how Tin is generated </Description>
                    <DisplayName>Galacticraft 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='glctTinFreq' default='1'  min='0' max='5' displayState=':= if(?enableGalacticraft, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupGalacticraft'>
                    <Description> Frequency multiplier for Galacticraft Tin distributions </Description>
                    <DisplayName>Galacticraft Tin Freq.</DisplayName>
                </OptionNumeric>
                <OptionNumeric name='glctTinSize' default='1'  min='0' max='5' displayState=':= if(?enableGalacticraft, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupGalacticraft'>
                    <Description> Size multiplier for Galacticraft Tin distributions </Description>
                    <DisplayName>Galacticraft Tin Size</DisplayName>
                </OptionNumeric>
            </ConfigSection>
            <!-- Tin Configuration UI Complete -->


            <!-- Aluminum Configuration UI Starting -->
            <ConfigSection>
                <OptionChoice name='glctAluminumDist'  displayState=':= if(?enableGalacticraft, "shown", "hidden")' displayGroup='groupGalacticraft'>
                    <Description> Controls how Aluminum is generated </Description>
                    <DisplayName>Galacticraft Aluminum</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='Aluminum is not generated in the world.'/>
                </OptionChoice>
                <OptionNumeric name='glctAluminumFreq' default='1'  min='0' max='5' displayState=':= if(?enableGalacticraft, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupGalacticraft'>
                    <Description> Frequency multiplier for Galacticraft Aluminum distributions </Description>
                    <DisplayName>Galacticraft Aluminum Freq.</DisplayName>
                </OptionNumeric>
                <OptionNumeric name='glctAluminumSize' default='1'  min='0' max='5' displayState=':= if(?enableGalacticraft, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupGalacticraft'>
                    <Description> Size multiplier for Galacticraft Aluminum distributions </Description>
                    <DisplayName>Galacticraft Aluminum Size</DisplayName>
                </OptionNumeric>
            </ConfigSection>
            <!-- Aluminum Configuration UI Complete -->


            <!-- Silicon Configuration UI Starting -->
            <ConfigSection>
                <OptionChoice name='glctSiliconDist'  displayState=':= if(?enableGalacticraft, "shown", "hidden")' displayGroup='groupGalacticraft'>
                    <Description> Controls how Silicon is generated </Description>
                    <DisplayName>Galacticraft Silicon</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='Silicon is not generated in the world.'/>
                </OptionChoice>
                <OptionNumeric name='glctSiliconFreq' default='1'  min='0' max='5' displayState=':= if(?enableGalacticraft, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupGalacticraft'>
                    <Description> Frequency multiplier for Galacticraft Silicon distributions </Description>
                    <DisplayName>Galacticraft Silicon Freq.</DisplayName>
                </OptionNumeric>
                <OptionNumeric name='glctSiliconSize' default='1'  min='0' max='5' displayState=':= if(?enableGalacticraft, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupGalacticraft'>
                    <Description> Size multiplier for Galacticraft Silicon distributions </Description>
                    <DisplayName>Galacticraft Silicon Size</DisplayName>
                </OptionNumeric>
            </ConfigSection>
            <!-- Silicon Configuration UI Complete -->

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

        <IfCondition condition=':= ?enableGalacticraft'>




            <!-- Overworld Setup Beginning -->

            <IfCondition condition=':= ?COGActive'>

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

                <IfCondition condition=':= ?blockExists("minecraft:stone")'>
                    <Substitute name='glctOverworldBlockSubstitute0' 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("GalacticraftCore:tile.gcBlockCore:5")'> <Replaces block='GalacticraftCore:tile.gcBlockCore:5' weight='1.0' /> </IfCondition>
                        <IfCondition condition=':= ?blockExists("GalacticraftCore:tile.gcBlockCore:6")'> <Replaces block='GalacticraftCore:tile.gcBlockCore:6' weight='1.0' /> </IfCondition>
                        <IfCondition condition=':= ?blockExists("GalacticraftCore:tile.gcBlockCore:7")'> <Replaces block='GalacticraftCore:tile.gcBlockCore:7' weight='1.0' /> </IfCondition>
                        <IfCondition condition=':= ?blockExists("GalacticraftCore:tile.gcBlockCore:8")'> <Replaces block='GalacticraftCore:tile.gcBlockCore:8' weight='1.0' /> </IfCondition>
                    </Substitute>
                </IfCondition>

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

                <!-- Adding blocks -->

                <!-- Begin Copper Generation -->

                <!-- Starting LayeredVeins Preset for Copper. -->
                <ConfigSection>
                    <IfCondition condition=':= glctCopperDist = "LayeredVeins"'>
                        <Veins name='glctCopperVeins'  inherits='PresetLayeredVeins' drawWireframe='true' wireframeColor='0x60C17B40' drawBoundBox='false' boundBoxColor='0x60C17B40'>
                            <Description>
                                Small, fairly rare motherlodes  with
                                2-4 horizontal veins each.
                            </Description>
                            <IfCondition condition=':= ?blockExists("GalacticraftCore:tile.gcBlockCore:5")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore:5' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='MotherlodeFrequency' avg=':= 2.294 * _default_ * glctCopperFreq ' range=':= 2.294 * _default_ * glctCopperFreq ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeSize' avg=':= 1.148 * _default_ * glctCopperSize ' range=':= 1.148 * _default_ * glctCopperSize ' type='normal' />
                            <Setting name='MotherlodeHeight' avg=':= 40 ' range=':= 35 ' 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.514 * _default_ ' range=':= 1.514 * _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_ * glctCopperSize ' range=':= _default_ * glctCopperSize ' type='normal' />
                            <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentRadius' avg=':= 1.231 * _default_ * glctCopperSize ' range=':= 1.231 * _default_ * glctCopperSize ' 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=':= glctCopperDist = "Cloud"'>
                        <Cloud name='glctCopperCloud'  inherits='PresetStrategicCloud' drawWireframe='true' wireframeColor='0x60C17B40' drawBoundBox='false' boundBoxColor='0x60C17B40'>
                            <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("GalacticraftCore:tile.gcBlockCore:5")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore:5' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='CloudRadius' avg=':= 1.417 * _default_ * glctCopperSize ' range=':= 1.417 * _default_ * glctCopperSize ' type='normal' />
                            <Setting name='CloudThickness' avg=':= 1.417 * _default_ * glctCopperSize ' range=':= 1.417 * _default_ * glctCopperSize ' type='normal' scaleTo='base' />
                            <Setting name='DistributionFrequency' avg=':= 2.007 * _default_ * glctCopperFreq ' range=':= 2.007 * _default_ * glctCopperFreq ' type='normal' scaleTo='base' />
                            <Setting name='CloudHeight' avg=':= 40 ' range=':= 35 ' 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='glctCopperHintVeins'  inherits='PresetHintVeins' drawWireframe='true' wireframeColor='0x60C17B40' drawBoundBox='false' boundBoxColor='0x60C17B40'>
                                <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("GalacticraftCore:tile.gcBlockCore:5")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore: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 Copper is complete. -->


                <!-- Starting Vanilla Preset for Copper. -->
                <ConfigSection>
                    <IfCondition condition=':= glctCopperDist = "Vanilla"'>
                        <StandardGen name='glctCopperStandard'  inherits='PresetStandardGen' drawWireframe='true' wireframeColor='0x60C17B40' drawBoundBox='false' boundBoxColor='0x60C17B40'>
                            <Description>
                                A master preset for standardgen  ore
                                distributions.
                            </Description>
                            <IfCondition condition=':= ?blockExists("GalacticraftCore:tile.gcBlockCore:5")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore:5' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='Size' avg=':= 7.000 * glctCopperSize ' range=':= _default_ * glctCopperSize ' type='normal' />
                            <Setting name='Frequency' avg=':= 24.000 * glctCopperFreq ' range=':= _default_ * glctCopperFreq ' type='normal' scaleTo='base' />
                            <Setting name='Height' avg=':= 40 ' range=':= 35 ' type='normal' 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=':= glctTinDist = "LayeredVeins"'>
                        <Veins name='glctTinVeins'  inherits='PresetLayeredVeins' drawWireframe='true' wireframeColor='0x60C9C9C9' drawBoundBox='false' boundBoxColor='0x60C9C9C9'>
                            <Description>
                                Small, fairly rare motherlodes  with
                                2-4 horizontal veins each.
                            </Description>
                            <IfCondition condition=':= ?blockExists("GalacticraftCore:tile.gcBlockCore:6")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore:6' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='MotherlodeFrequency' avg=':= 2.196 * _default_ * glctTinFreq ' range=':= 2.196 * _default_ * glctTinFreq ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeSize' avg=':= 1.140 * _default_ * glctTinSize ' range=':= 1.140 * _default_ * glctTinSize ' type='normal' />
                            <Setting name='MotherlodeHeight' avg=':= 33 ' range=':= 27 ' 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.482 * _default_ ' range=':= 1.482 * _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_ * glctTinSize ' range=':= _default_ * glctTinSize ' type='normal' />
                            <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentRadius' avg=':= 1.217 * _default_ * glctTinSize ' range=':= 1.217 * _default_ * glctTinSize ' 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=':= glctTinDist = "Cloud"'>
                        <Cloud name='glctTinCloud'  inherits='PresetStrategicCloud' drawWireframe='true' wireframeColor='0x60C9C9C9' drawBoundBox='false' boundBoxColor='0x60C9C9C9'>
                            <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("GalacticraftCore:tile.gcBlockCore:6")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore:6' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='CloudRadius' avg=':= 1.386 * _default_ * glctTinSize ' range=':= 1.386 * _default_ * glctTinSize ' type='normal' />
                            <Setting name='CloudThickness' avg=':= 1.386 * _default_ * glctTinSize ' range=':= 1.386 * _default_ * glctTinSize ' type='normal' scaleTo='base' />
                            <Setting name='DistributionFrequency' avg=':= 1.921 * _default_ * glctTinFreq ' range=':= 1.921 * _default_ * glctTinFreq ' type='normal' scaleTo='base' />
                            <Setting name='CloudHeight' avg=':= 33 ' range=':= 27 ' 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='glctTinHintVeins'  inherits='PresetHintVeins' drawWireframe='true' wireframeColor='0x60C9C9C9' drawBoundBox='false' boundBoxColor='0x60C9C9C9'>
                                <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("GalacticraftCore:tile.gcBlockCore:6")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore:6' 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=':= glctTinDist = "Vanilla"'>
                        <StandardGen name='glctTinStandard'  inherits='PresetStandardGen' drawWireframe='true' wireframeColor='0x60C9C9C9' drawBoundBox='false' boundBoxColor='0x60C9C9C9'>
                            <Description>
                                A master preset for standardgen  ore
                                distributions.
                            </Description>
                            <IfCondition condition=':= ?blockExists("GalacticraftCore:tile.gcBlockCore:6")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore:6' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='Size' avg=':= 7.000 * glctTinSize ' range=':= _default_ * glctTinSize ' type='normal' />
                            <Setting name='Frequency' avg=':= 22.000 * glctTinFreq ' range=':= _default_ * glctTinFreq ' type='normal' scaleTo='base' />
                            <Setting name='Height' avg=':= 33 ' range=':= 27 ' 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 Aluminum Generation -->

                <!-- Starting LayeredVeins Preset for Aluminum. -->
                <ConfigSection>
                    <IfCondition condition=':= glctAluminumDist = "LayeredVeins"'>
                        <Veins name='glctAluminumVeins'  inherits='PresetLayeredVeins' drawWireframe='true' wireframeColor='0x609CACB8' drawBoundBox='false' boundBoxColor='0x609CACB8'>
                            <Description>
                                Small, fairly rare motherlodes  with
                                2-4 horizontal veins each.
                            </Description>
                            <IfCondition condition=':= ?blockExists("GalacticraftCore:tile.gcBlockCore:7")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore:7' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='MotherlodeFrequency' avg=':= 1.986 * _default_ * glctAluminumFreq ' range=':= 1.986 * _default_ * glctAluminumFreq ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeSize' avg=':= 1.121 * _default_ * glctAluminumSize ' range=':= 1.121 * _default_ * glctAluminumSize ' type='normal' />
                            <Setting name='MotherlodeHeight' avg=':= 25 ' range=':= 20 ' 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.409 * _default_ ' range=':= 1.409 * _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_ * glctAluminumSize ' range=':= _default_ * glctAluminumSize ' type='normal' />
                            <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentRadius' avg=':= 1.187 * _default_ * glctAluminumSize ' range=':= 1.187 * _default_ * glctAluminumSize ' 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 Aluminum is complete. -->


                <!-- Starting Cloud Preset for Aluminum. -->
                <ConfigSection>
                    <IfCondition condition=':= glctAluminumDist = "Cloud"'>
                        <Cloud name='glctAluminumCloud'  inherits='PresetStrategicCloud' drawWireframe='true' wireframeColor='0x609CACB8' drawBoundBox='false' boundBoxColor='0x609CACB8'>
                            <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("GalacticraftCore:tile.gcBlockCore:7")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore:7' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='CloudRadius' avg=':= 1.318 * _default_ * glctAluminumSize ' range=':= 1.318 * _default_ * glctAluminumSize ' type='normal' />
                            <Setting name='CloudThickness' avg=':= 1.318 * _default_ * glctAluminumSize ' range=':= 1.318 * _default_ * glctAluminumSize ' type='normal' scaleTo='base' />
                            <Setting name='DistributionFrequency' avg=':= 1.738 * _default_ * glctAluminumFreq ' range=':= 1.738 * _default_ * glctAluminumFreq ' type='normal' scaleTo='base' />
                            <Setting name='CloudHeight' avg=':= 25 ' range=':= 20 ' 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='glctAluminumHintVeins'  inherits='PresetHintVeins' drawWireframe='true' wireframeColor='0x609CACB8' drawBoundBox='false' boundBoxColor='0x609CACB8'>
                                <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("GalacticraftCore:tile.gcBlockCore:7")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore:7' 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 Aluminum is complete. -->


                <!-- Starting Vanilla Preset for Aluminum. -->
                <ConfigSection>
                    <IfCondition condition=':= glctAluminumDist = "Vanilla"'>
                        <StandardGen name='glctAluminumStandard'  inherits='PresetStandardGen' drawWireframe='true' wireframeColor='0x609CACB8' drawBoundBox='false' boundBoxColor='0x609CACB8'>
                            <Description>
                                A master preset for standardgen  ore
                                distributions.
                            </Description>
                            <IfCondition condition=':= ?blockExists("GalacticraftCore:tile.gcBlockCore:7")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore:7' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='Size' avg=':= 7.000 * glctAluminumSize ' range=':= _default_ * glctAluminumSize ' type='normal' />
                            <Setting name='Frequency' avg=':= 18.000 * glctAluminumFreq ' range=':= _default_ * glctAluminumFreq ' type='normal' scaleTo='base' />
                            <Setting name='Height' avg=':= 25 ' range=':= 20 ' type='normal' scaleTo='base' />
                            <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                        </StandardGen>
                    </IfCondition>
                </ConfigSection>
                <!-- Vanilla Preset for Aluminum is complete. -->

                <!-- End Aluminum Generation -->


                <!-- Begin Silicon Generation -->

                <!-- Starting LayeredVeins Preset for Silicon. -->
                <ConfigSection>
                    <IfCondition condition=':= glctSiliconDist = "LayeredVeins"'>
                        <Veins name='glctSiliconVeins'  inherits='PresetLayeredVeins' drawWireframe='true' wireframeColor='0x602A2A2A' drawBoundBox='false' boundBoxColor='0x602A2A2A'>
                            <Description>
                                Small, fairly rare motherlodes  with
                                2-4 horizontal veins each.
                            </Description>
                            <IfCondition condition=':= ?blockExists("GalacticraftCore:tile.gcBlockCore:8")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore:8' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='MotherlodeFrequency' avg=':= 0.811 * _default_ * glctSiliconFreq ' range=':= 0.811 * _default_ * glctSiliconFreq ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeSize' avg=':= 0.966 * _default_ * glctSiliconSize ' range=':= 0.966 * _default_ * glctSiliconSize ' type='normal' />
                            <Setting name='MotherlodeHeight' avg=':= 15 ' range=':= 10 ' 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.900 * _default_ ' range=':= 0.900 * _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_ * glctSiliconSize ' range=':= _default_ * glctSiliconSize ' type='normal' />
                            <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentRadius' avg=':= 0.949 * _default_ * glctSiliconSize ' range=':= 0.949 * _default_ * glctSiliconSize ' 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 Silicon is complete. -->


                <!-- Starting Cloud Preset for Silicon. -->
                <ConfigSection>
                    <IfCondition condition=':= glctSiliconDist = "Cloud"'>
                        <Cloud name='glctSiliconCloud'  inherits='PresetStrategicCloud' drawWireframe='true' wireframeColor='0x602A2A2A' drawBoundBox='false' boundBoxColor='0x602A2A2A'>
                            <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("GalacticraftCore:tile.gcBlockCore:8")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore:8' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='CloudRadius' avg=':= 0.842 * _default_ * glctSiliconSize ' range=':= 0.842 * _default_ * glctSiliconSize ' type='normal' />
                            <Setting name='CloudThickness' avg=':= 0.842 * _default_ * glctSiliconSize ' range=':= 0.842 * _default_ * glctSiliconSize ' type='normal' scaleTo='base' />
                            <Setting name='DistributionFrequency' avg=':= 0.709 * _default_ * glctSiliconFreq ' range=':= 0.709 * _default_ * glctSiliconFreq ' type='normal' scaleTo='base' />
                            <Setting name='CloudHeight' avg=':= 15 ' range=':= 10 ' 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='glctSiliconHintVeins'  inherits='PresetHintVeins' drawWireframe='true' wireframeColor='0x602A2A2A' drawBoundBox='false' boundBoxColor='0x602A2A2A'>
                                <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("GalacticraftCore:tile.gcBlockCore:8")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore:8' 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 Silicon is complete. -->


                <!-- Starting Vanilla Preset for Silicon. -->
                <ConfigSection>
                    <IfCondition condition=':= glctSiliconDist = "Vanilla"'>
                        <StandardGen name='glctSiliconStandard'  inherits='PresetStandardGen' drawWireframe='true' wireframeColor='0x602A2A2A' drawBoundBox='false' boundBoxColor='0x602A2A2A'>
                            <Description>
                                A master preset for standardgen  ore
                                distributions.
                            </Description>
                            <IfCondition condition=':= ?blockExists("GalacticraftCore:tile.gcBlockCore:8")'> <OreBlock block='GalacticraftCore:tile.gcBlockCore:8' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='Size' avg=':= 7.000 * glctSiliconSize ' range=':= _default_ * glctSiliconSize ' type='normal' />
                            <Setting name='Frequency' avg=':= 3.000 * glctSiliconFreq ' range=':= _default_ * glctSiliconFreq ' type='normal' scaleTo='base' />
                            <Setting name='Height' avg=':= 15 ' range=':= 10 ' type='normal' scaleTo='base' />
                            <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                        </StandardGen>
                    </IfCondition>
                </ConfigSection>
                <!-- Vanilla Preset for Silicon is complete. -->

                <!-- End Silicon Generation -->

                <!-- Finished adding blocks -->

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



        </IfCondition>

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

</IfModInstalled>
<!-- The "Galacticraft" 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
     ================================================================= -->
