<!-- =================================================================
     Custom Ore Generation "Mekanism" Module: This configuration
     covers osmium, copper, and tin.
     ================================================================= -->






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

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





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

            <!-- Osmium Configuration UI Starting -->
            <ConfigSection>
                <OptionChoice name='mknsOsmiumDist'  displayState=':= if(?enableMekanism, "shown", "hidden")' displayGroup='groupMekanism'>
                    <Description> Controls how Osmium is generated </Description>
                    <DisplayName>Mekanism Osmium</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='Osmium is not generated in the world.'/>
                </OptionChoice>
                <OptionNumeric name='mknsOsmiumFreq' default='1'  min='0' max='5' displayState=':= if(?enableMekanism, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupMekanism'>
                    <Description> Frequency multiplier for Mekanism Osmium distributions </Description>
                    <DisplayName>Mekanism Osmium Freq.</DisplayName>
                </OptionNumeric>
                <OptionNumeric name='mknsOsmiumSize' default='1'  min='0' max='5' displayState=':= if(?enableMekanism, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupMekanism'>
                    <Description> Size multiplier for Mekanism Osmium distributions </Description>
                    <DisplayName>Mekanism Osmium Size</DisplayName>
                </OptionNumeric>
            </ConfigSection>
            <!-- Osmium Configuration UI Complete -->


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


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

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

        <IfCondition condition=':= ?enableMekanism'>




            <!-- Overworld Setup Beginning -->

            <IfCondition condition=':= ?COGActive'>

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

                <IfCondition condition=':= ?blockExists("minecraft:stone")'>
                    <Substitute name='mknsOverworldBlockSubstitute0' 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("Mekanism:OreBlock")'> <Replaces block='Mekanism:OreBlock' weight='1.0' /> </IfCondition>
                        <IfCondition condition=':= ?blockExists("Mekanism:OreBlock:1")'> <Replaces block='Mekanism:OreBlock:1' weight='1.0' /> </IfCondition>
                        <IfCondition condition=':= ?blockExists("Mekanism:OreBlock:2")'> <Replaces block='Mekanism:OreBlock:2' weight='1.0' /> </IfCondition>
                    </Substitute>
                </IfCondition>

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

                <!-- Adding blocks -->

                <!-- Begin Osmium Generation -->

                <!-- Starting LayeredVeins Preset for Osmium. -->
                <ConfigSection>
                    <IfCondition condition=':= mknsOsmiumDist = "LayeredVeins"'>
                        <Veins name='mknsOsmiumVeins'  inherits='PresetLayeredVeins' drawWireframe='true' wireframeColor='0x607CB3EE' drawBoundBox='false' boundBoxColor='0x607CB3EE'>
                            <Description>
                                Small, fairly rare motherlodes  with
                                2-4 horizontal veins each.
                            </Description>
                            <IfCondition condition=':= ?blockExists("Mekanism:OreBlock")'> <OreBlock block='Mekanism:OreBlock' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='MotherlodeFrequency' avg=':= 1.734 * _default_ * mknsOsmiumFreq ' range=':= 1.734 * _default_ * mknsOsmiumFreq ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeSize' avg=':= 1.096 * _default_ * mknsOsmiumSize ' range=':= 1.096 * _default_ * mknsOsmiumSize ' 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.317 * _default_ ' range=':= 1.317 * _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_ * mknsOsmiumSize ' range=':= _default_ * mknsOsmiumSize ' type='normal' />
                            <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentRadius' avg=':= 1.147 * _default_ * mknsOsmiumSize ' range=':= 1.147 * _default_ * mknsOsmiumSize ' 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 Osmium is complete. -->


                <!-- Starting Cloud Preset for Osmium. -->
                <ConfigSection>
                    <IfCondition condition=':= mknsOsmiumDist = "Cloud"'>
                        <Cloud name='mknsOsmiumCloud'  inherits='PresetStrategicCloud' drawWireframe='true' wireframeColor='0x607CB3EE' drawBoundBox='false' boundBoxColor='0x607CB3EE'>
                            <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("Mekanism:OreBlock")'> <OreBlock block='Mekanism:OreBlock' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='CloudRadius' avg=':= 1.232 * _default_ * mknsOsmiumSize ' range=':= 1.232 * _default_ * mknsOsmiumSize ' type='normal' />
                            <Setting name='CloudThickness' avg=':= 1.232 * _default_ * mknsOsmiumSize ' range=':= 1.232 * _default_ * mknsOsmiumSize ' type='normal' scaleTo='base' />
                            <Setting name='DistributionFrequency' avg=':= 1.517 * _default_ * mknsOsmiumFreq ' range=':= 1.517 * _default_ * mknsOsmiumFreq ' 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='mknsOsmiumHintVeins'  inherits='PresetHintVeins' drawWireframe='true' wireframeColor='0x607CB3EE' drawBoundBox='false' boundBoxColor='0x607CB3EE'>
                                <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("Mekanism:OreBlock")'> <OreBlock block='Mekanism:OreBlock' 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 Osmium is complete. -->


                <!-- Starting Vanilla Preset for Osmium. -->
                <ConfigSection>
                    <IfCondition condition=':= mknsOsmiumDist = "Vanilla"'>
                        <StandardGen name='mknsOsmiumStandard'  inherits='PresetStandardGen' drawWireframe='true' wireframeColor='0x607CB3EE' drawBoundBox='false' boundBoxColor='0x607CB3EE'>
                            <Description>
                                A master preset for standardgen  ore
                                distributions.
                            </Description>
                            <IfCondition condition=':= ?blockExists("Mekanism:OreBlock")'> <OreBlock block='Mekanism:OreBlock' 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 * mknsOsmiumSize ' range=':= _default_ * mknsOsmiumSize ' type='normal' />
                            <Setting name='Frequency' avg=':= 12.000 * mknsOsmiumFreq ' range=':= _default_ * mknsOsmiumFreq ' 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 Osmium is complete. -->

                <!-- End Osmium Generation -->


                <!-- Begin Copper Generation -->

                <!-- Starting LayeredVeins Preset for Copper. -->
                <ConfigSection>
                    <IfCondition condition=':= mknsCopperDist = "LayeredVeins"'>
                        <Veins name='mknsCopperVeins'  inherits='PresetLayeredVeins' drawWireframe='true' wireframeColor='0x60AE4408' drawBoundBox='false' boundBoxColor='0x60AE4408'>
                            <Description>
                                Small, fairly rare motherlodes  with
                                2-4 horizontal veins each.
                            </Description>
                            <IfCondition condition=':= ?blockExists("Mekanism:OreBlock:1")'> <OreBlock block='Mekanism:OreBlock:1' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='MotherlodeFrequency' avg=':= 2.002 * _default_ * mknsCopperFreq ' range=':= 2.002 * _default_ * mknsCopperFreq ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeSize' avg=':= 1.123 * _default_ * mknsCopperSize ' range=':= 1.123 * _default_ * mknsCopperSize ' 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.415 * _default_ ' range=':= 1.415 * _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_ * mknsCopperSize ' range=':= _default_ * mknsCopperSize ' type='normal' />
                            <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentRadius' avg=':= 1.189 * _default_ * mknsCopperSize ' range=':= 1.189 * _default_ * mknsCopperSize ' 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=':= mknsCopperDist = "Cloud"'>
                        <Cloud name='mknsCopperCloud'  inherits='PresetStrategicCloud' drawWireframe='true' wireframeColor='0x60AE4408' drawBoundBox='false' boundBoxColor='0x60AE4408'>
                            <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("Mekanism:OreBlock:1")'> <OreBlock block='Mekanism:OreBlock: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.323 * _default_ * mknsCopperSize ' range=':= 1.323 * _default_ * mknsCopperSize ' type='normal' />
                            <Setting name='CloudThickness' avg=':= 1.323 * _default_ * mknsCopperSize ' range=':= 1.323 * _default_ * mknsCopperSize ' type='normal' scaleTo='base' />
                            <Setting name='DistributionFrequency' avg=':= 1.752 * _default_ * mknsCopperFreq ' range=':= 1.752 * _default_ * mknsCopperFreq ' 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='mknsCopperHintVeins'  inherits='PresetHintVeins' drawWireframe='true' wireframeColor='0x60AE4408' drawBoundBox='false' boundBoxColor='0x60AE4408'>
                                <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("Mekanism:OreBlock:1")'> <OreBlock block='Mekanism:OreBlock: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 Copper is complete. -->


                <!-- Starting Vanilla Preset for Copper. -->
                <ConfigSection>
                    <IfCondition condition=':= mknsCopperDist = "Vanilla"'>
                        <StandardGen name='mknsCopperStandard'  inherits='PresetStandardGen' drawWireframe='true' wireframeColor='0x60AE4408' drawBoundBox='false' boundBoxColor='0x60AE4408'>
                            <Description>
                                A master preset for standardgen  ore
                                distributions.
                            </Description>
                            <IfCondition condition=':= ?blockExists("Mekanism:OreBlock:1")'> <OreBlock block='Mekanism:OreBlock: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 * mknsCopperSize ' range=':= _default_ * mknsCopperSize ' type='normal' />
                            <Setting name='Frequency' avg=':= 16.000 * mknsCopperFreq ' range=':= _default_ * mknsCopperFreq ' 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 Copper is complete. -->

                <!-- End Copper Generation -->


                <!-- Begin Tin Generation -->

                <!-- Starting LayeredVeins Preset for Tin. -->
                <ConfigSection>
                    <IfCondition condition=':= mknsTinDist = "LayeredVeins"'>
                        <Veins name='mknsTinVeins'  inherits='PresetLayeredVeins' drawWireframe='true' wireframeColor='0x60C1C8C8' drawBoundBox='false' boundBoxColor='0x60C1C8C8'>
                            <Description>
                                Small, fairly rare motherlodes  with
                                2-4 horizontal veins each.
                            </Description>
                            <IfCondition condition=':= ?blockExists("Mekanism:OreBlock:2")'> <OreBlock block='Mekanism:OreBlock:2' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='MotherlodeFrequency' avg=':= 1.873 * _default_ * mknsTinFreq ' range=':= 1.873 * _default_ * mknsTinFreq ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeSize' avg=':= 1.110 * _default_ * mknsTinSize ' range=':= 1.110 * _default_ * mknsTinSize ' 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.368 * _default_ ' range=':= 1.368 * _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_ * mknsTinSize ' range=':= _default_ * mknsTinSize ' type='normal' />
                            <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentRadius' avg=':= 1.170 * _default_ * mknsTinSize ' range=':= 1.170 * _default_ * mknsTinSize ' 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=':= mknsTinDist = "Cloud"'>
                        <Cloud name='mknsTinCloud'  inherits='PresetStrategicCloud' drawWireframe='true' wireframeColor='0x60C1C8C8' drawBoundBox='false' boundBoxColor='0x60C1C8C8'>
                            <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("Mekanism:OreBlock:2")'> <OreBlock block='Mekanism:OreBlock: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_ * mknsTinSize ' range=':= 1.280 * _default_ * mknsTinSize ' type='normal' />
                            <Setting name='CloudThickness' avg=':= 1.280 * _default_ * mknsTinSize ' range=':= 1.280 * _default_ * mknsTinSize ' type='normal' scaleTo='base' />
                            <Setting name='DistributionFrequency' avg=':= 1.638 * _default_ * mknsTinFreq ' range=':= 1.638 * _default_ * mknsTinFreq ' 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='mknsTinHintVeins'  inherits='PresetHintVeins' drawWireframe='true' wireframeColor='0x60C1C8C8' drawBoundBox='false' boundBoxColor='0x60C1C8C8'>
                                <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("Mekanism:OreBlock:2")'> <OreBlock block='Mekanism:OreBlock: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 Tin is complete. -->


                <!-- Starting Vanilla Preset for Tin. -->
                <ConfigSection>
                    <IfCondition condition=':= mknsTinDist = "Vanilla"'>
                        <StandardGen name='mknsTinStandard'  inherits='PresetStandardGen' drawWireframe='true' wireframeColor='0x60C1C8C8' drawBoundBox='false' boundBoxColor='0x60C1C8C8'>
                            <Description>
                                A master preset for standardgen  ore
                                distributions.
                            </Description>
                            <IfCondition condition=':= ?blockExists("Mekanism:OreBlock:2")'> <OreBlock block='Mekanism:OreBlock: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.000 * mknsTinSize ' range=':= _default_ * mknsTinSize ' type='normal' />
                            <Setting name='Frequency' avg=':= 14.000 * mknsTinFreq ' range=':= _default_ * mknsTinFreq ' 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 -->

                <!-- Finished adding blocks -->

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



        </IfCondition>

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

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