<!-- =================================================================
     Custom Ore Generation "MineChem" Module: This configuration
     covers uranium and mountain uranium.
     ================================================================= -->


<!-- Minechem includes uranium ore in the case it's installed without
     IC2 or Atomic Science also installed.  Configuration by Reteo. -->




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

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





    <!-- Setup Screen Configuration -->
    <ConfigSection>
      <OptionDisplayGroup name='groupMineChem' displayName='MineChem' displayState='shown'>
        <Description>
          Distribution options for MineChem Ores.
        </Description>
      </OptionDisplayGroup>
      <OptionChoice name='enableMineChem' displayName='Handle MineChem Gen?' default='true' displayState='shown_dynamic' displayGroup='groupMineChem'>
        <Description> Should Custom Ore Generation handle MineChem ore generation? </Description>
        <Choice value=':= ?true' displayValue='Yes' description='Use Custom Ore Generation to handle MineChem ores.'/>
        <Choice value=':= ?false' displayValue='No' description='MineChem ores will be handled by Minecraft directly.'/>
      </OptionChoice>
      <OptionChoice name='cleanUpMineChem' displayName='Use MineChem Cleanup?' default='true' displayState=':= if(?enableMineChem, "shown", "hidden")' displayGroup='groupMineChem'>
        <Description> Should Custom Ore Generation use the Substitution Pass to remove all instances of MineChem 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 MineChem ores.'/>
        <Choice value=':= ?false' displayValue='No' description='MineChem ores do not need to be cleaned up by a substitution pass.'/>
      </OptionChoice>

      <!-- Uranium Configuration UI Starting -->
      <ConfigSection>
        <OptionChoice name='mchmUraniumDist'  displayState=':= if(?enableMineChem, "shown", "hidden")' displayGroup='groupMineChem'>
          <Description> Controls how Uranium is generated </Description>
          <DisplayName>MineChem Uranium</DisplayName>
          <IfCondition condition=':= (?blockExists("minechem:tile.oreUranium")) '>

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

          <IfCondition condition=':= (?blockExists("minechem:tile.oreUranium")) '>

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

          <IfCondition condition=':= (?blockExists("minechem:tile.oreUranium")) '>

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

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


      <!-- Mountain Uranium Configuration UI Starting -->
      <ConfigSection>
        <OptionChoice name='mchmMountainUraniumDist'  displayState=':= if(?enableMineChem, "shown", "hidden")' displayGroup='groupMineChem'>
          <Description> Controls how Mountain Uranium is generated </Description>
          <DisplayName>MineChem Mountain Uranium</DisplayName>
          <IfCondition condition=':= (?blockExists("minechem:tile.oreUranium")) '>

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

          <IfCondition condition=':= (?blockExists("minechem:tile.oreUranium")) '>

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

          <IfCondition condition=':= (?blockExists("minechem:tile.oreUranium")) '>

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

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

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

    <IfCondition condition=':= ?enableMineChem'>




      <!-- Overworld Setup Beginning -->

      <IfCondition condition=':= ?COGActive'>

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

        <IfCondition condition=':= ?cleanUpMineChem'>
          <IfCondition condition=':= ?blockExists("minecraft:stone")'>
            <Substitute name='mchmOverworldBlockSubstitute0' 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='minechem:tile.oreUranium' weight='1.0' />
            </Substitute>
          </IfCondition>
        </IfCondition>

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

        <!-- Adding blocks -->

        <!-- Begin Uranium Generation -->

        <!-- Starting LayeredVeins Preset for Uranium. -->
        <ConfigSection>
          <IfCondition condition=':= mchmUraniumDist = "LayeredVeins"'>
            <Veins name='mchmUraniumVeins'  inherits='PresetLayeredVeins' branchType='Bezier' drawWireframe=':= drawWireframes' wireframeColor='0x60ACFE91' drawBoundBox='false' boundBoxColor='0x60ACFE91'>
              <Description>
                Small, fairly rare motherlodes  with 2-4 horizontal
                veins each.
              </Description>
              <OreBlock block='minechem:tile.oreUranium' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='MotherlodeFrequency' avg=':= 0.500 * _default_ * mchmUraniumFreq ' range=':= 0.500 * _default_ * mchmUraniumFreq ' type='normal' scaleTo='base' />
              <Setting name='MotherlodeSize' avg=':= 0.891 * _default_ * mchmUraniumSize ' range=':= 0.891 * _default_ * mchmUraniumSize ' type='normal' />
              <Setting name='MotherlodeHeight' avg=':= 17.5 ' range=':= 12.5 ' type='normal' scaleTo='base' />
              <Setting name='MotherlodeRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='BranchFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='BranchInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='BranchLength' avg=':= 0.707 * _default_ ' range=':= 0.707 * _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_ * mchmUraniumSize ' range=':= _default_ * mchmUraniumSize ' type='normal' />
              <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='SegmentPitch' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='SegmentRadius' avg=':= 0.841 * _default_ * mchmUraniumSize ' range=':= 0.841 * _default_ * mchmUraniumSize ' 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 Uranium is complete. -->


        <!-- Starting StrategicClouds Preset for Uranium. -->
        <ConfigSection>
          <IfCondition condition=':= mchmUraniumDist = "StrategicClouds"'>
            <Cloud name='mchmUraniumCloud'  inherits='PresetStrategicCloud' drawWireframe=':= drawWireframes' wireframeColor='0x60ACFE91' drawBoundBox='false' boundBoxColor='0x60ACFE91'>
              <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='minechem:tile.oreUranium' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='CloudRadius' avg=':= 0.756 * _default_ * mchmUraniumSize ' range=':= 0.756 * _default_ * mchmUraniumSize ' type='normal' />
              <Setting name='CloudThickness' avg=':= 0.756 * _default_ * mchmUraniumSize ' range=':= 0.756 * _default_ * mchmUraniumSize ' type='normal' scaleTo='base' />
              <Setting name='DistributionFrequency' avg=':= 0.571 * _default_ * mchmUraniumFreq ' range=':= 0.571 * _default_ * mchmUraniumFreq ' type='normal' scaleTo='base' />
              <Setting name='CloudHeight' avg=':= 17.5 ' range=':= 12.5 ' 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='mchmUraniumHintVeins' branchType='Bezier'  inherits='PresetHintVeins' drawWireframe=':= drawWireframes' wireframeColor='0x60ACFE91' drawBoundBox='false' boundBoxColor='0x60ACFE91'>
                <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='minechem:tile.oreUranium' 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=':= 0.500 * _default_ * mchmUraniumFreq  * 0.1 ' range=':= 0.500 * _default_ * mchmUraniumFreq  * 0.1 ' type='normal' scaleTo='base' />
              </Veins>
            </Cloud>
          </IfCondition>
        </ConfigSection>
        <!-- StrategicClouds Preset for Uranium is complete. -->


        <!-- Starting Vanilla Preset for Uranium. -->
        <ConfigSection>
          <IfCondition condition=':= mchmUraniumDist = "Vanilla"'>
            <StandardGen name='mchmUraniumStandard'  inherits='PresetStandardGen' drawWireframe=':= drawWireframes' wireframeColor='0x60ACFE91' drawBoundBox='false' boundBoxColor='0x60ACFE91'>
              <Description>
                A master preset for standardgen  ore distributions.
              </Description>
              <OreBlock block='minechem:tile.oreUranium' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='Size' avg=':= 2.667 * oreSize * mchmUraniumSize ' range=':= 1.33 * oreSize * mchmUraniumSize ' type='normal' />
              <Setting name='Frequency' avg=':= 1.333 * oreFreq * mchmUraniumFreq ' range=':= 0.67 * oreFreq * mchmUraniumFreq ' type='normal' scaleTo='base' />
              <Setting name='Height' avg=':= 17.5 ' range=':= 12.5 ' type='normal' scaleTo='base' />
              <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
            </StandardGen>
          </IfCondition>
        </ConfigSection>
        <!-- Vanilla Preset for Uranium is complete. -->

        <!-- End Uranium Generation -->


        <!-- Begin Mountain Uranium Generation -->

        <!-- Starting LayeredVeins Preset for Mountain  Uranium. -->
        <ConfigSection>
          <IfCondition condition=':= mchmMountainUraniumDist = "LayeredVeins"'>
            <Veins name='mchmMountainUraniumVeins'  inherits='PresetLayeredVeins' branchType='Bezier' drawWireframe=':= drawWireframes' wireframeColor='0x60ACFE91' drawBoundBox='false' boundBoxColor='0x60ACFE91'>
              <Description>
                Small, fairly rare motherlodes  with 2-4 horizontal
                veins each.
              </Description>
              <OreBlock block='minechem:tile.oreUranium' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <BiomeType name='Mountain'  />
              <Setting name='MotherlodeFrequency' avg=':= 0.500 * _default_ * mchmMountainUraniumFreq ' range=':= 0.500 * _default_ * mchmMountainUraniumFreq ' type='normal' scaleTo='base' />
              <Setting name='MotherlodeSize' avg=':= 0.891 * _default_ * mchmMountainUraniumSize ' range=':= 0.891 * _default_ * mchmMountainUraniumSize ' type='normal' />
              <Setting name='MotherlodeHeight' avg=':= 116.5 ' range=':= 37.5 ' type='normal' scaleTo='base' />
              <Setting name='MotherlodeRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='BranchFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='BranchInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='BranchLength' avg=':= 0.707 * _default_ ' range=':= 0.707 * _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_ * mchmMountainUraniumSize ' range=':= _default_ * mchmMountainUraniumSize ' type='normal' />
              <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='SegmentPitch' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='SegmentRadius' avg=':= 0.841 * _default_ * mchmMountainUraniumSize ' range=':= 0.841 * _default_ * mchmMountainUraniumSize ' 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 Uranium is  complete. -->


        <!-- Starting StrategicClouds Preset for Mountain  Uranium. -->
        <ConfigSection>
          <IfCondition condition=':= mchmMountainUraniumDist = "StrategicClouds"'>
            <Cloud name='mchmMountainUraniumCloud'  inherits='PresetStrategicCloud' drawWireframe=':= drawWireframes' wireframeColor='0x60ACFE91' drawBoundBox='false' boundBoxColor='0x60ACFE91'>
              <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='minechem:tile.oreUranium' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <BiomeType name='Mountain'  />
              <Setting name='CloudRadius' avg=':= 0.756 * _default_ * mchmMountainUraniumSize ' range=':= 0.756 * _default_ * mchmMountainUraniumSize ' type='normal' />
              <Setting name='CloudThickness' avg=':= 0.756 * _default_ * mchmMountainUraniumSize ' range=':= 0.756 * _default_ * mchmMountainUraniumSize ' type='normal' scaleTo='base' />
              <Setting name='DistributionFrequency' avg=':= 0.571 * _default_ * mchmMountainUraniumFreq ' range=':= 0.571 * _default_ * mchmMountainUraniumFreq ' type='normal' scaleTo='base' />
              <Setting name='CloudHeight' avg=':= 116.5 ' range=':= 37.5 ' 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='mchmMountainUraniumHintVeins' branchType='Bezier'  inherits='PresetHintVeins' drawWireframe=':= drawWireframes' wireframeColor='0x60ACFE91' drawBoundBox='false' boundBoxColor='0x60ACFE91'>
                <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='minechem:tile.oreUranium' 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=':= 0.500 * _default_ * mchmMountainUraniumFreq  * 0.1 ' range=':= 0.500 * _default_ * mchmMountainUraniumFreq  * 0.1 ' type='normal' scaleTo='base' />
              </Veins>
            </Cloud>
          </IfCondition>
        </ConfigSection>
        <!-- StrategicClouds Preset for Mountain Uranium is  complete. -->


        <!-- Starting Vanilla Preset for Mountain Uranium. -->
        <ConfigSection>
          <IfCondition condition=':= mchmMountainUraniumDist = "Vanilla"'>
            <StandardGen name='mchmMountainUraniumStandard'  inherits='PresetStandardGen' drawWireframe=':= drawWireframes' wireframeColor='0x60ACFE91' drawBoundBox='false' boundBoxColor='0x60ACFE91'>
              <Description>
                A master preset for standardgen  ore distributions.
              </Description>
              <OreBlock block='minechem:tile.oreUranium' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <BiomeType name='Mountain'  />
              <Setting name='Size' avg=':= 2.667 * oreSize * mchmMountainUraniumSize ' range=':= 1.33 * oreSize * mchmMountainUraniumSize ' type='normal' />
              <Setting name='Frequency' avg=':= 1.333 * oreFreq * mchmMountainUraniumFreq ' range=':= 0.67 * oreFreq * mchmMountainUraniumFreq ' type='normal' scaleTo='base' />
              <Setting name='Height' avg=':= 116.5 ' range=':= 37.5 ' type='normal' scaleTo='base' />
              <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
            </StandardGen>
          </IfCondition>
        </ConfigSection>
        <!-- Vanilla Preset for Mountain Uranium is complete. -->

        <!-- End Mountain Uranium Generation -->

        <!-- Finished adding blocks -->

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

    </IfCondition>

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

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