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


<!-- Configuration by Reteo. -->




<!-- 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 Gen?' 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 Minecraft directly.'/>
      </OptionChoice>
      <OptionChoice name='cleanUpMekanism' displayName='Use Mekanism Cleanup?' default='true' displayState=':= if(?enableMekanism, "shown", "hidden")' displayGroup='groupMekanism'>
        <Description> Should Custom Ore Generation use the Substitution Pass to remove all instances of Mekanism ore from the world?  If the mod's oregen can be turned off in its configuration, then it's recommended to do so, as the substitution pass can slow the game significantly.  If this option is disabled without disabling the mod's own ore generation, you'll end up with two oregens working at once, flooding the world with ore.  Enabled by default to ensure the ores are completely removed. </Description>
        <Choice value=':= ?true' displayValue='Yes' description='Use the substitution pass to clean up Mekanism ores.'/>
        <Choice value=':= ?false' displayValue='No' description='Mekanism ores do not need to be cleaned up by a substitution pass.'/>
      </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>
          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock")) '>

          <Choice value='LayeredVeins' displayValue='Layered Veins'>
            <Description>
              Small, fairly rare motherlodes with 2-4 horizontal veins each.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock")) '>

          <Choice value='StrategicClouds' displayValue='Strategic Clouds'>
            <Description>
              Large irregular clouds filled lightly with ore.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock")) '>

          <Choice value='Vanilla' displayValue='Vanilla'>
            <Description>
              Simulates Vanilla Minecraft.
            </Description>
          </Choice>
          </IfCondition>

          <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 -->


      <!-- Mountain Osmium Configuration UI Starting -->
      <ConfigSection>
        <OptionChoice name='mknsMountainOsmiumDist'  displayState=':= if(?enableMekanism, "shown", "hidden")' displayGroup='groupMekanism'>
          <Description> Controls how Mountain Osmium is generated </Description>
          <DisplayName>Mekanism Mountain Osmium</DisplayName>
          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock")) '>

          <Choice value='LayeredVeins' displayValue='Layered Veins'>
            <Description>
              Small, fairly rare motherlodes with 2-4 horizontal veins each.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock")) '>

          <Choice value='StrategicClouds' displayValue='Strategic Clouds'>
            <Description>
              Large irregular clouds filled lightly with ore.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock")) '>

          <Choice value='Vanilla' displayValue='Vanilla'>
            <Description>
              Simulates Vanilla Minecraft.
            </Description>
          </Choice>
          </IfCondition>

          <Choice value='none' displayValue='None' description='Mountain Osmium is not generated in the world.'/>
        </OptionChoice>
        <OptionNumeric name='mknsMountainOsmiumFreq' default='1'  min='0' max='5' displayState=':= if(?enableMekanism, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupMekanism'>
          <Description> Frequency multiplier for Mekanism Mountain Osmium distributions </Description>
          <DisplayName>Mekanism Mountain Osmium Freq.</DisplayName>
        </OptionNumeric>
        <OptionNumeric name='mknsMountainOsmiumSize' default='1'  min='0' max='5' displayState=':= if(?enableMekanism, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupMekanism'>
          <Description> Size multiplier for Mekanism Mountain Osmium distributions </Description>
          <DisplayName>Mekanism Mountain Osmium Size</DisplayName>
        </OptionNumeric>
      </ConfigSection>
      <!-- Mountain 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>
          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock:1")) '>

          <Choice value='LayeredVeins' displayValue='Layered Veins'>
            <Description>
              Small, fairly rare motherlodes with 2-4 horizontal veins each.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock:1")) '>

          <Choice value='StrategicClouds' displayValue='Strategic Clouds'>
            <Description>
              Large irregular clouds filled lightly with ore.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock:1")) '>

          <Choice value='Vanilla' displayValue='Vanilla'>
            <Description>
              Simulates Vanilla Minecraft.
            </Description>
          </Choice>
          </IfCondition>

          <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 -->


      <!-- Mountain Copper Configuration UI Starting -->
      <ConfigSection>
        <OptionChoice name='mknsMountainCopperDist'  displayState=':= if(?enableMekanism, "shown", "hidden")' displayGroup='groupMekanism'>
          <Description> Controls how Mountain Copper is generated </Description>
          <DisplayName>Mekanism Mountain Copper</DisplayName>
          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock:1")) '>

          <Choice value='LayeredVeins' displayValue='Layered Veins'>
            <Description>
              Small, fairly rare motherlodes with 2-4 horizontal veins each.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock:1")) '>

          <Choice value='StrategicClouds' displayValue='Strategic Clouds'>
            <Description>
              Large irregular clouds filled lightly with ore.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock:1")) '>

          <Choice value='Vanilla' displayValue='Vanilla'>
            <Description>
              Simulates Vanilla Minecraft.
            </Description>
          </Choice>
          </IfCondition>

          <Choice value='none' displayValue='None' description='Mountain Copper is not generated in the world.'/>
        </OptionChoice>
        <OptionNumeric name='mknsMountainCopperFreq' default='1'  min='0' max='5' displayState=':= if(?enableMekanism, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupMekanism'>
          <Description> Frequency multiplier for Mekanism Mountain Copper distributions </Description>
          <DisplayName>Mekanism Mountain Copper Freq.</DisplayName>
        </OptionNumeric>
        <OptionNumeric name='mknsMountainCopperSize' default='1'  min='0' max='5' displayState=':= if(?enableMekanism, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupMekanism'>
          <Description> Size multiplier for Mekanism Mountain Copper distributions </Description>
          <DisplayName>Mekanism Mountain Copper Size</DisplayName>
        </OptionNumeric>
      </ConfigSection>
      <!-- Mountain 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>
          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock:2")) '>

          <Choice value='LayeredVeins' displayValue='Layered Veins'>
            <Description>
              Small, fairly rare motherlodes with 2-4 horizontal veins each.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock:2")) '>

          <Choice value='StrategicClouds' displayValue='Strategic Clouds'>
            <Description>
              Large irregular clouds filled lightly with ore.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock:2")) '>

          <Choice value='Vanilla' displayValue='Vanilla'>
            <Description>
              Simulates Vanilla Minecraft.
            </Description>
          </Choice>
          </IfCondition>

          <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 -->


      <!-- Mountain Tin Configuration UI Starting -->
      <ConfigSection>
        <OptionChoice name='mknsMountainTinDist'  displayState=':= if(?enableMekanism, "shown", "hidden")' displayGroup='groupMekanism'>
          <Description> Controls how Mountain Tin is generated </Description>
          <DisplayName>Mekanism Mountain Tin</DisplayName>
          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock:2")) '>

          <Choice value='LayeredVeins' displayValue='Layered Veins'>
            <Description>
              Small, fairly rare motherlodes with 2-4 horizontal veins each.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock:2")) '>

          <Choice value='StrategicClouds' displayValue='Strategic Clouds'>
            <Description>
              Large irregular clouds filled lightly with ore.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("Mekanism:OreBlock:2")) '>

          <Choice value='Vanilla' displayValue='Vanilla'>
            <Description>
              Simulates Vanilla Minecraft.
            </Description>
          </Choice>
          </IfCondition>

          <Choice value='none' displayValue='None' description='Mountain Tin is not generated in the world.'/>
        </OptionChoice>
        <OptionNumeric name='mknsMountainTinFreq' default='1'  min='0' max='5' displayState=':= if(?enableMekanism, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupMekanism'>
          <Description> Frequency multiplier for Mekanism Mountain Tin distributions </Description>
          <DisplayName>Mekanism Mountain Tin Freq.</DisplayName>
        </OptionNumeric>
        <OptionNumeric name='mknsMountainTinSize' default='1'  min='0' max='5' displayState=':= if(?enableMekanism, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupMekanism'>
          <Description> Size multiplier for Mekanism Mountain Tin distributions </Description>
          <DisplayName>Mekanism Mountain Tin Size</DisplayName>
        </OptionNumeric>
      </ConfigSection>
      <!-- Mountain Tin Configuration UI Complete -->

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

    <IfCondition condition=':= ?enableMekanism'>




      <!-- Overworld Setup Beginning -->

      <IfCondition condition=':= ?COGActive'>

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

        <IfCondition condition=':= ?cleanUpMekanism'>
          <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>
              <Replaces block='Mekanism:OreBlock' weight='1.0' />
              <Replaces block='Mekanism:OreBlock:1' weight='1.0' />
              <Replaces block='Mekanism:OreBlock:2' weight='1.0' />
            </Substitute>
          </IfCondition>
        </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' branchType='Bezier' drawWireframe=':= drawWireframes' wireframeColor='0x607CB3EE' drawBoundBox='false' boundBoxColor='0x607CB3EE'>
              <Description>
                Small, fairly rare motherlodes  with 2-4 horizontal
                veins each.
              </Description>
              <OreBlock block='Mekanism:OreBlock' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <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='SegmentPitch' 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 StrategicClouds Preset for Osmium. -->
        <ConfigSection>
          <IfCondition condition=':= mknsOsmiumDist = "StrategicClouds"'>
            <Cloud name='mknsOsmiumCloud'  inherits='PresetStrategicCloud' drawWireframe=':= drawWireframes' 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>
              <OreBlock block='Mekanism:OreBlock' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='CloudRadius' avg=':= 1.407 * _default_ * mknsOsmiumSize ' range=':= 1.407 * _default_ * mknsOsmiumSize ' type='normal' />
              <Setting name='CloudThickness' avg=':= 1.407 * _default_ * mknsOsmiumSize ' range=':= 1.407 * _default_ * mknsOsmiumSize ' type='normal' scaleTo='base' />
              <Setting name='DistributionFrequency' avg=':= 1.979 * _default_ * mknsOsmiumFreq ' range=':= 1.979 * _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' branchType='Bezier'  inherits='PresetHintVeins' drawWireframe=':= drawWireframes' 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>
                <OreBlock block='Mekanism:OreBlock' weight='1.0' />
                <Replaces block='minecraft:dirt' weight='1.0' />
                <Replaces block='minecraft:sandstone' weight='1.0' />
                <ReplacesOre block='stone' weight='1.0' />
                <Replaces block='minecraft:gravel' weight='1.0' />
                <Setting name='MotherlodeFrequency' avg=':= 1.734 * _default_ * mknsOsmiumFreq  * 0.1 ' range=':= 1.734 * _default_ * mknsOsmiumFreq  * 0.1 ' type='normal' scaleTo='base' />
              </Veins>
            </Cloud>
          </IfCondition>
        </ConfigSection>
        <!-- StrategicClouds Preset for Osmium is complete. -->


        <!-- Starting Vanilla Preset for Osmium. -->
        <ConfigSection>
          <IfCondition condition=':= mknsOsmiumDist = "Vanilla"'>
            <StandardGen name='mknsOsmiumStandard'  inherits='PresetStandardGen' drawWireframe=':= drawWireframes' wireframeColor='0x607CB3EE' drawBoundBox='false' boundBoxColor='0x607CB3EE'>
              <Description>
                A master preset for standardgen  ore distributions.
              </Description>
              <OreBlock block='Mekanism:OreBlock' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='Size' avg=':= 5.333 * oreSize * mknsOsmiumSize ' range=':= 2.67 * oreSize * mknsOsmiumSize ' type='normal' />
              <Setting name='Frequency' avg=':= 8.0 * oreFreq * mknsOsmiumFreq ' range=':= 4.0 * oreFreq * 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 Mountain Osmium Generation -->

        <!-- Starting LayeredVeins Preset for Mountain Osmium. -->
        <ConfigSection>
          <IfCondition condition=':= mknsMountainOsmiumDist = "LayeredVeins"'>
            <Veins name='mknsMountainOsmiumVeins'  inherits='PresetLayeredVeins' branchType='Bezier' drawWireframe=':= drawWireframes' wireframeColor='0x607CB3EE' drawBoundBox='false' boundBoxColor='0x607CB3EE'>
              <Description>
                Small, fairly rare motherlodes  with 2-4 horizontal
                veins each.
              </Description>
              <OreBlock block='Mekanism:OreBlock' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <BiomeType name='Mountain'  />
              <Setting name='MotherlodeFrequency' avg=':= 1.734 * _default_ * mknsMountainOsmiumFreq ' range=':= 1.734 * _default_ * mknsMountainOsmiumFreq ' type='normal' scaleTo='base' />
              <Setting name='MotherlodeSize' avg=':= 1.096 * _default_ * mknsMountainOsmiumSize ' range=':= 1.096 * _default_ * mknsMountainOsmiumSize ' type='normal' />
              <Setting name='MotherlodeHeight' avg=':= 163 ' range=':= 81 ' 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_ * mknsMountainOsmiumSize ' range=':= _default_ * mknsMountainOsmiumSize ' type='normal' />
              <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='SegmentPitch' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='SegmentRadius' avg=':= 1.147 * _default_ * mknsMountainOsmiumSize ' range=':= 1.147 * _default_ * mknsMountainOsmiumSize ' 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 Mountain Osmium is  complete. -->


        <!-- Starting StrategicClouds Preset for Mountain  Osmium. -->
        <ConfigSection>
          <IfCondition condition=':= mknsMountainOsmiumDist = "StrategicClouds"'>
            <Cloud name='mknsMountainOsmiumCloud'  inherits='PresetStrategicCloud' drawWireframe=':= drawWireframes' 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>
              <OreBlock block='Mekanism:OreBlock' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <BiomeType name='Mountain'  />
              <Setting name='CloudRadius' avg=':= 1.407 * _default_ * mknsMountainOsmiumSize ' range=':= 1.407 * _default_ * mknsMountainOsmiumSize ' type='normal' />
              <Setting name='CloudThickness' avg=':= 1.407 * _default_ * mknsMountainOsmiumSize ' range=':= 1.407 * _default_ * mknsMountainOsmiumSize ' type='normal' scaleTo='base' />
              <Setting name='DistributionFrequency' avg=':= 1.979 * _default_ * mknsMountainOsmiumFreq ' range=':= 1.979 * _default_ * mknsMountainOsmiumFreq ' type='normal' scaleTo='base' />
              <Setting name='CloudHeight' avg=':= 163 ' range=':= 81 ' 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='mknsMountainOsmiumHintVeins' branchType='Bezier'  inherits='PresetHintVeins' drawWireframe=':= drawWireframes' 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>
                <OreBlock block='Mekanism:OreBlock' weight='1.0' />
                <Replaces block='minecraft:dirt' weight='1.0' />
                <Replaces block='minecraft:sandstone' weight='1.0' />
                <ReplacesOre block='stone' weight='1.0' />
                <Replaces block='minecraft:gravel' weight='1.0' />
                <Setting name='MotherlodeFrequency' avg=':= 1.734 * _default_ * mknsMountainOsmiumFreq  * 0.1 ' range=':= 1.734 * _default_ * mknsMountainOsmiumFreq  * 0.1 ' type='normal' scaleTo='base' />
              </Veins>
            </Cloud>
          </IfCondition>
        </ConfigSection>
        <!-- StrategicClouds Preset for Mountain Osmium is  complete. -->


        <!-- Starting Vanilla Preset for Mountain Osmium. -->
        <ConfigSection>
          <IfCondition condition=':= mknsMountainOsmiumDist = "Vanilla"'>
            <StandardGen name='mknsMountainOsmiumStandard'  inherits='PresetStandardGen' drawWireframe=':= drawWireframes' wireframeColor='0x607CB3EE' drawBoundBox='false' boundBoxColor='0x607CB3EE'>
              <Description>
                A master preset for standardgen  ore distributions.
              </Description>
              <OreBlock block='Mekanism:OreBlock' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <BiomeType name='Mountain'  />
              <Setting name='Size' avg=':= 5.333 * oreSize * mknsMountainOsmiumSize ' range=':= 2.67 * oreSize * mknsMountainOsmiumSize ' type='normal' />
              <Setting name='Frequency' avg=':= 8.0 * oreFreq * mknsMountainOsmiumFreq ' range=':= 4.0 * oreFreq * mknsMountainOsmiumFreq ' type='normal' scaleTo='base' />
              <Setting name='Height' avg=':= 163 ' range=':= 81 ' type='normal' scaleTo='base' />
              <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
            </StandardGen>
          </IfCondition>
        </ConfigSection>
        <!-- Vanilla Preset for Mountain Osmium is complete. -->

        <!-- End Mountain Osmium Generation -->


        <!-- Begin Copper Generation -->

        <!-- Starting LayeredVeins Preset for Copper. -->
        <ConfigSection>
          <IfCondition condition=':= mknsCopperDist = "LayeredVeins"'>
            <Veins name='mknsCopperVeins'  inherits='PresetLayeredVeins' branchType='Bezier' drawWireframe=':= drawWireframes' wireframeColor='0x60AE4408' drawBoundBox='false' boundBoxColor='0x60AE4408'>
              <Description>
                Small, fairly rare motherlodes  with 2-4 horizontal
                veins each.
              </Description>
              <OreBlock block='Mekanism:OreBlock:1' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <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='SegmentPitch' 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 StrategicClouds Preset for Copper. -->
        <ConfigSection>
          <IfCondition condition=':= mknsCopperDist = "StrategicClouds"'>
            <Cloud name='mknsCopperCloud'  inherits='PresetStrategicCloud' drawWireframe=':= drawWireframes' 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>
              <OreBlock block='Mekanism:OreBlock:1' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='CloudRadius' avg=':= 1.512 * _default_ * mknsCopperSize ' range=':= 1.512 * _default_ * mknsCopperSize ' type='normal' />
              <Setting name='CloudThickness' avg=':= 1.512 * _default_ * mknsCopperSize ' range=':= 1.512 * _default_ * mknsCopperSize ' type='normal' scaleTo='base' />
              <Setting name='DistributionFrequency' avg=':= 2.286 * _default_ * mknsCopperFreq ' range=':= 2.286 * _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' branchType='Bezier'  inherits='PresetHintVeins' drawWireframe=':= drawWireframes' 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>
                <OreBlock block='Mekanism:OreBlock:1' weight='1.0' />
                <Replaces block='minecraft:dirt' weight='1.0' />
                <Replaces block='minecraft:sandstone' weight='1.0' />
                <ReplacesOre block='stone' weight='1.0' />
                <Replaces block='minecraft:gravel' weight='1.0' />
                <Setting name='MotherlodeFrequency' avg=':= 2.002 * _default_ * mknsCopperFreq  * 0.1 ' range=':= 2.002 * _default_ * mknsCopperFreq  * 0.1 ' type='normal' scaleTo='base' />
              </Veins>
            </Cloud>
          </IfCondition>
        </ConfigSection>
        <!-- StrategicClouds Preset for Copper is complete. -->


        <!-- Starting Vanilla Preset for Copper. -->
        <ConfigSection>
          <IfCondition condition=':= mknsCopperDist = "Vanilla"'>
            <StandardGen name='mknsCopperStandard'  inherits='PresetStandardGen' drawWireframe=':= drawWireframes' wireframeColor='0x60AE4408' drawBoundBox='false' boundBoxColor='0x60AE4408'>
              <Description>
                A master preset for standardgen  ore distributions.
              </Description>
              <OreBlock block='Mekanism:OreBlock:1' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='Size' avg=':= 5.333 * oreSize * mknsCopperSize ' range=':= 2.67 * oreSize * mknsCopperSize ' type='normal' />
              <Setting name='Frequency' avg=':= 10.667 * oreFreq * mknsCopperFreq ' range=':= 5.33 * oreFreq * 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 Mountain Copper Generation -->

        <!-- Starting LayeredVeins Preset for Mountain Copper. -->
        <ConfigSection>
          <IfCondition condition=':= mknsMountainCopperDist = "LayeredVeins"'>
            <Veins name='mknsMountainCopperVeins'  inherits='PresetLayeredVeins' branchType='Bezier' drawWireframe=':= drawWireframes' wireframeColor='0x60AE4408' drawBoundBox='false' boundBoxColor='0x60AE4408'>
              <Description>
                Small, fairly rare motherlodes  with 2-4 horizontal
                veins each.
              </Description>
              <OreBlock block='Mekanism:OreBlock:1' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <BiomeType name='Mountain'  />
              <Setting name='MotherlodeFrequency' avg=':= 2.002 * _default_ * mknsMountainCopperFreq ' range=':= 2.002 * _default_ * mknsMountainCopperFreq ' type='normal' scaleTo='base' />
              <Setting name='MotherlodeSize' avg=':= 1.123 * _default_ * mknsMountainCopperSize ' range=':= 1.123 * _default_ * mknsMountainCopperSize ' type='normal' />
              <Setting name='MotherlodeHeight' avg=':= 163 ' range=':= 81 ' 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_ * mknsMountainCopperSize ' range=':= _default_ * mknsMountainCopperSize ' type='normal' />
              <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='SegmentPitch' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='SegmentRadius' avg=':= 1.189 * _default_ * mknsMountainCopperSize ' range=':= 1.189 * _default_ * mknsMountainCopperSize ' 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 Mountain Copper is  complete. -->


        <!-- Starting StrategicClouds Preset for Mountain  Copper. -->
        <ConfigSection>
          <IfCondition condition=':= mknsMountainCopperDist = "StrategicClouds"'>
            <Cloud name='mknsMountainCopperCloud'  inherits='PresetStrategicCloud' drawWireframe=':= drawWireframes' 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>
              <OreBlock block='Mekanism:OreBlock:1' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <BiomeType name='Mountain'  />
              <Setting name='CloudRadius' avg=':= 1.512 * _default_ * mknsMountainCopperSize ' range=':= 1.512 * _default_ * mknsMountainCopperSize ' type='normal' />
              <Setting name='CloudThickness' avg=':= 1.512 * _default_ * mknsMountainCopperSize ' range=':= 1.512 * _default_ * mknsMountainCopperSize ' type='normal' scaleTo='base' />
              <Setting name='DistributionFrequency' avg=':= 2.286 * _default_ * mknsMountainCopperFreq ' range=':= 2.286 * _default_ * mknsMountainCopperFreq ' type='normal' scaleTo='base' />
              <Setting name='CloudHeight' avg=':= 163 ' range=':= 81 ' 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='mknsMountainCopperHintVeins' branchType='Bezier'  inherits='PresetHintVeins' drawWireframe=':= drawWireframes' 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>
                <OreBlock block='Mekanism:OreBlock:1' weight='1.0' />
                <Replaces block='minecraft:dirt' weight='1.0' />
                <Replaces block='minecraft:sandstone' weight='1.0' />
                <ReplacesOre block='stone' weight='1.0' />
                <Replaces block='minecraft:gravel' weight='1.0' />
                <Setting name='MotherlodeFrequency' avg=':= 2.002 * _default_ * mknsMountainCopperFreq  * 0.1 ' range=':= 2.002 * _default_ * mknsMountainCopperFreq  * 0.1 ' type='normal' scaleTo='base' />
              </Veins>
            </Cloud>
          </IfCondition>
        </ConfigSection>
        <!-- StrategicClouds Preset for Mountain Copper is  complete. -->


        <!-- Starting Vanilla Preset for Mountain Copper. -->
        <ConfigSection>
          <IfCondition condition=':= mknsMountainCopperDist = "Vanilla"'>
            <StandardGen name='mknsMountainCopperStandard'  inherits='PresetStandardGen' drawWireframe=':= drawWireframes' wireframeColor='0x60AE4408' drawBoundBox='false' boundBoxColor='0x60AE4408'>
              <Description>
                A master preset for standardgen  ore distributions.
              </Description>
              <OreBlock block='Mekanism:OreBlock:1' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <BiomeType name='Mountain'  />
              <Setting name='Size' avg=':= 5.333 * oreSize * mknsMountainCopperSize ' range=':= 2.67 * oreSize * mknsMountainCopperSize ' type='normal' />
              <Setting name='Frequency' avg=':= 10.667 * oreFreq * mknsMountainCopperFreq ' range=':= 5.33 * oreFreq * mknsMountainCopperFreq ' type='normal' scaleTo='base' />
              <Setting name='Height' avg=':= 163 ' range=':= 81 ' type='normal' scaleTo='base' />
              <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
            </StandardGen>
          </IfCondition>
        </ConfigSection>
        <!-- Vanilla Preset for Mountain Copper is complete. -->

        <!-- End Mountain Copper Generation -->


        <!-- Begin Tin Generation -->

        <!-- Starting LayeredVeins Preset for Tin. -->
        <ConfigSection>
          <IfCondition condition=':= mknsTinDist = "LayeredVeins"'>
            <Veins name='mknsTinVeins'  inherits='PresetLayeredVeins' branchType='Bezier' drawWireframe=':= drawWireframes' wireframeColor='0x60C1C8C8' drawBoundBox='false' boundBoxColor='0x60C1C8C8'>
              <Description>
                Small, fairly rare motherlodes  with 2-4 horizontal
                veins each.
              </Description>
              <OreBlock block='Mekanism:OreBlock:2' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <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='SegmentPitch' 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 StrategicClouds Preset for Tin. -->
        <ConfigSection>
          <IfCondition condition=':= mknsTinDist = "StrategicClouds"'>
            <Cloud name='mknsTinCloud'  inherits='PresetStrategicCloud' drawWireframe=':= drawWireframes' 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>
              <OreBlock block='Mekanism:OreBlock:2' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='CloudRadius' avg=':= 1.462 * _default_ * mknsTinSize ' range=':= 1.462 * _default_ * mknsTinSize ' type='normal' />
              <Setting name='CloudThickness' avg=':= 1.462 * _default_ * mknsTinSize ' range=':= 1.462 * _default_ * mknsTinSize ' type='normal' scaleTo='base' />
              <Setting name='DistributionFrequency' avg=':= 2.138 * _default_ * mknsTinFreq ' range=':= 2.138 * _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' branchType='Bezier'  inherits='PresetHintVeins' drawWireframe=':= drawWireframes' 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>
                <OreBlock block='Mekanism:OreBlock:2' weight='1.0' />
                <Replaces block='minecraft:dirt' weight='1.0' />
                <Replaces block='minecraft:sandstone' weight='1.0' />
                <ReplacesOre block='stone' weight='1.0' />
                <Replaces block='minecraft:gravel' weight='1.0' />
                <Setting name='MotherlodeFrequency' avg=':= 1.873 * _default_ * mknsTinFreq  * 0.1 ' range=':= 1.873 * _default_ * mknsTinFreq  * 0.1 ' type='normal' scaleTo='base' />
              </Veins>
            </Cloud>
          </IfCondition>
        </ConfigSection>
        <!-- StrategicClouds Preset for Tin is complete. -->


        <!-- Starting Vanilla Preset for Tin. -->
        <ConfigSection>
          <IfCondition condition=':= mknsTinDist = "Vanilla"'>
            <StandardGen name='mknsTinStandard'  inherits='PresetStandardGen' drawWireframe=':= drawWireframes' wireframeColor='0x60C1C8C8' drawBoundBox='false' boundBoxColor='0x60C1C8C8'>
              <Description>
                A master preset for standardgen  ore distributions.
              </Description>
              <OreBlock block='Mekanism:OreBlock:2' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='Size' avg=':= 5.333 * oreSize * mknsTinSize ' range=':= 2.67 * oreSize * mknsTinSize ' type='normal' />
              <Setting name='Frequency' avg=':= 9.333 * oreFreq * mknsTinFreq ' range=':= 4.67 * oreFreq * 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 -->


        <!-- Begin Mountain Tin Generation -->

        <!-- Starting LayeredVeins Preset for Mountain Tin. -->
        <ConfigSection>
          <IfCondition condition=':= mknsMountainTinDist = "LayeredVeins"'>
            <Veins name='mknsMountainTinVeins'  inherits='PresetLayeredVeins' branchType='Bezier' drawWireframe=':= drawWireframes' wireframeColor='0x60C1C8C8' drawBoundBox='false' boundBoxColor='0x60C1C8C8'>
              <Description>
                Small, fairly rare motherlodes  with 2-4 horizontal
                veins each.
              </Description>
              <OreBlock block='Mekanism:OreBlock:2' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <BiomeType name='Mountain'  />
              <Setting name='MotherlodeFrequency' avg=':= 1.873 * _default_ * mknsMountainTinFreq ' range=':= 1.873 * _default_ * mknsMountainTinFreq ' type='normal' scaleTo='base' />
              <Setting name='MotherlodeSize' avg=':= 1.110 * _default_ * mknsMountainTinSize ' range=':= 1.110 * _default_ * mknsMountainTinSize ' type='normal' />
              <Setting name='MotherlodeHeight' avg=':= 163 ' range=':= 81 ' 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_ * mknsMountainTinSize ' range=':= _default_ * mknsMountainTinSize ' type='normal' />
              <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='SegmentPitch' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='SegmentRadius' avg=':= 1.170 * _default_ * mknsMountainTinSize ' range=':= 1.170 * _default_ * mknsMountainTinSize ' 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 Mountain Tin is complete. -->


        <!-- Starting StrategicClouds Preset for Mountain Tin. -->
        <ConfigSection>
          <IfCondition condition=':= mknsMountainTinDist = "StrategicClouds"'>
            <Cloud name='mknsMountainTinCloud'  inherits='PresetStrategicCloud' drawWireframe=':= drawWireframes' 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>
              <OreBlock block='Mekanism:OreBlock:2' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <BiomeType name='Mountain'  />
              <Setting name='CloudRadius' avg=':= 1.462 * _default_ * mknsMountainTinSize ' range=':= 1.462 * _default_ * mknsMountainTinSize ' type='normal' />
              <Setting name='CloudThickness' avg=':= 1.462 * _default_ * mknsMountainTinSize ' range=':= 1.462 * _default_ * mknsMountainTinSize ' type='normal' scaleTo='base' />
              <Setting name='DistributionFrequency' avg=':= 2.138 * _default_ * mknsMountainTinFreq ' range=':= 2.138 * _default_ * mknsMountainTinFreq ' type='normal' scaleTo='base' />
              <Setting name='CloudHeight' avg=':= 163 ' range=':= 81 ' 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='mknsMountainTinHintVeins' branchType='Bezier'  inherits='PresetHintVeins' drawWireframe=':= drawWireframes' 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>
                <OreBlock block='Mekanism:OreBlock:2' weight='1.0' />
                <Replaces block='minecraft:dirt' weight='1.0' />
                <Replaces block='minecraft:sandstone' weight='1.0' />
                <ReplacesOre block='stone' weight='1.0' />
                <Replaces block='minecraft:gravel' weight='1.0' />
                <Setting name='MotherlodeFrequency' avg=':= 1.873 * _default_ * mknsMountainTinFreq  * 0.1 ' range=':= 1.873 * _default_ * mknsMountainTinFreq  * 0.1 ' type='normal' scaleTo='base' />
              </Veins>
            </Cloud>
          </IfCondition>
        </ConfigSection>
        <!-- StrategicClouds Preset for Mountain Tin is  complete. -->


        <!-- Starting Vanilla Preset for Mountain Tin. -->
        <ConfigSection>
          <IfCondition condition=':= mknsMountainTinDist = "Vanilla"'>
            <StandardGen name='mknsMountainTinStandard'  inherits='PresetStandardGen' drawWireframe=':= drawWireframes' wireframeColor='0x60C1C8C8' drawBoundBox='false' boundBoxColor='0x60C1C8C8'>
              <Description>
                A master preset for standardgen  ore distributions.
              </Description>
              <OreBlock block='Mekanism:OreBlock:2' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <BiomeType name='Mountain'  />
              <Setting name='Size' avg=':= 5.333 * oreSize * mknsMountainTinSize ' range=':= 2.67 * oreSize * mknsMountainTinSize ' type='normal' />
              <Setting name='Frequency' avg=':= 9.333 * oreFreq * mknsMountainTinFreq ' range=':= 4.67 * oreFreq * mknsMountainTinFreq ' type='normal' scaleTo='base' />
              <Setting name='Height' avg=':= 163 ' range=':= 81 ' type='normal' scaleTo='base' />
              <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
            </StandardGen>
          </IfCondition>
        </ConfigSection>
        <!-- Vanilla Preset for Mountain Tin is complete. -->

        <!-- End Mountain 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 Advanced 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
     ================================================================= -->
