<!-- =================================================================
     Custom Ore Generation "Tinkers Construct" Module: This
     configuration covers cobalt and ardite.
     ================================================================= -->


<!-- A mod centering around tool manufacturing, the smelting of ores
     plays a large part.  Configuration by Reteo. -->




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

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





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

      <!-- Cobalt Configuration UI Starting -->
      <ConfigSection>
        <OptionChoice name='ticoCobaltDist'  displayState=':= if(?enableTinkersConstruct, "shown", "hidden")' displayGroup='groupTinkersConstruct'>
          <Description> Controls how Cobalt is generated </Description>
          <DisplayName>Tinkers Construct Cobalt</DisplayName>
          <IfCondition condition=':= (?blockExists("tconstruct:ore")) '>

          <Choice value='SmallDeposits' displayValue='Small Deposits'>
            <Description>
              Small motherlodes without any branches.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("tconstruct:ore")) '>

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

          <IfCondition condition=':= (?blockExists("tconstruct:ore")) '>

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

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


      <!-- Ardite Configuration UI Starting -->
      <ConfigSection>
        <OptionChoice name='ticoArditeDist'  displayState=':= if(?enableTinkersConstruct, "shown", "hidden")' displayGroup='groupTinkersConstruct'>
          <Description> Controls how Ardite is generated </Description>
          <DisplayName>Tinkers Construct Ardite</DisplayName>
          <IfCondition condition=':= (?blockExists("tconstruct:ore:1")) '>

          <Choice value='SmallDeposits' displayValue='Small Deposits'>
            <Description>
              Small motherlodes without any branches.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("tconstruct:ore:1")) '>

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

          <IfCondition condition=':= (?blockExists("tconstruct:ore:1")) '>

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

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

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

    <IfCondition condition=':= ?enableTinkersConstruct'>




      <!-- Nether Setup Beginning -->

      <IfCondition condition=':= dimension = "Nether"'>

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

        <IfCondition condition=':= ?cleanUpTinkersConstruct'>
          <IfCondition condition=':= ?blockExists("minecraft:netherrack")'>
            <Substitute name='ticoNetherBlockSubstitute0' block='minecraft:netherrack'>
              <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='tconstruct:ore' weight='1.0' />
              <Replaces block='tconstruct:ore:1' weight='1.0' />
            </Substitute>
          </IfCondition>
        </IfCondition>

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

        <!-- Adding blocks -->

        <!-- Begin Cobalt Generation -->

        <!-- Starting SmallDeposits Preset for Cobalt. -->
        <ConfigSection>
          <IfCondition condition=':= ticoCobaltDist = "SmallDeposits"'>
            <Veins name='ticoCobaltVeins'  inherits='PresetSmallDeposits' branchType='Bezier' drawWireframe=':= drawWireframes' wireframeColor='0x601D62B8' drawBoundBox='false' boundBoxColor='0x601D62B8'>
              <Description>
                Small motherlodes without any  branches.  Similar to
                the  deposits produced by StandardGen  distributions.
              </Description>
              <OreBlock block='tconstruct:ore' weight='1.0' />
              <Replaces block='minecraft:netherrack' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='MotherlodeFrequency' avg=':= 1.084 * _default_ * ticoCobaltFreq ' range=':= 1.084 * _default_ * ticoCobaltFreq ' type='normal' scaleTo='base' />
              <Setting name='MotherlodeSize' avg=':= 1.014 * _default_ * ticoCobaltSize ' range=':= 1.014 * _default_ * ticoCobaltSize ' type='normal' />
              <Setting name='MotherlodeHeight' avg=':= 64 ' range=':= 64 ' type='uniform' scaleTo='base' />
              <Setting name='MotherlodeRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='BranchFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='BranchInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='BranchLength' avg=':= 0 * _default_ ' range=':= 0 * _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_ * ticoCobaltSize ' range=':= _default_ * ticoCobaltSize ' 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 * _default_ * ticoCobaltSize ' range=':= 0 * _default_ * ticoCobaltSize ' type='normal' />
              <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
            </Veins>
          </IfCondition>
        </ConfigSection>
        <!-- SmallDeposits Preset for Cobalt is complete. -->


        <!-- Starting StrategicClouds Preset for Cobalt. -->
        <ConfigSection>
          <IfCondition condition=':= ticoCobaltDist = "StrategicClouds"'>
            <Cloud name='ticoCobaltCloud'  inherits='PresetStrategicCloud' drawWireframe=':= drawWireframes' wireframeColor='0x601D62B8' drawBoundBox='false' boundBoxColor='0x601D62B8'>
              <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='tconstruct:ore' weight='1.0' />
              <Replaces block='minecraft:netherrack' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='CloudRadius' avg=':= 0.995 * _default_ * ticoCobaltSize ' range=':= 0.995 * _default_ * ticoCobaltSize ' type='normal' />
              <Setting name='CloudThickness' avg=':= 0.995 * _default_ * ticoCobaltSize ' range=':= 0.995 * _default_ * ticoCobaltSize ' type='normal' scaleTo='base' />
              <Setting name='DistributionFrequency' avg=':= 0.990 * _default_ * ticoCobaltFreq ' range=':= 0.990 * _default_ * ticoCobaltFreq ' type='normal' scaleTo='base' />
              <Setting name='CloudHeight' avg=':= 64 ' range=':= 64 ' type='uniform' scaleTo='base' />
              <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='CloudSizeNoise' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='CloudInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' scaleTo='base' />
              <Setting name='OreVolumeNoiseCutoff' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Veins name='ticoCobaltHintVeins' branchType='Bezier'  inherits='PresetHintVeins' drawWireframe=':= drawWireframes' wireframeColor='0x601D62B8' drawBoundBox='false' boundBoxColor='0x601D62B8'>
                <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='tconstruct:ore' 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.084 * _default_ * ticoCobaltFreq  * 0.1 ' range=':= 1.084 * _default_ * ticoCobaltFreq  * 0.1 ' type='normal' scaleTo='base' />
              </Veins>
            </Cloud>
          </IfCondition>
        </ConfigSection>
        <!-- StrategicClouds Preset for Cobalt is complete. -->


        <!-- Starting Vanilla Preset for Cobalt. -->
        <ConfigSection>
          <IfCondition condition=':= ticoCobaltDist = "Vanilla"'>
            <StandardGen name='ticoCobaltStandard'  inherits='PresetStandardGen' drawWireframe=':= drawWireframes' wireframeColor='0x601D62B8' drawBoundBox='false' boundBoxColor='0x601D62B8'>
              <Description>
                A master preset for standardgen  ore distributions.
              </Description>
              <OreBlock block='tconstruct:ore' weight='1.0' />
              <Replaces block='minecraft:netherrack' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='Size' avg=':= 2.0 * oreSize * ticoCobaltSize ' range=':= 1.0 * oreSize * ticoCobaltSize ' type='normal' />
              <Setting name='Frequency' avg=':= 5.333 * oreFreq * ticoCobaltFreq ' range=':= 2.67 * oreFreq * ticoCobaltFreq ' type='normal' scaleTo='base' />
              <Setting name='Height' avg=':= 64 ' range=':= 64 ' type='uniform' scaleTo='base' />
              <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
            </StandardGen>
          </IfCondition>
        </ConfigSection>
        <!-- Vanilla Preset for Cobalt is complete. -->

        <!-- End Cobalt Generation -->


        <!-- Begin Ardite Generation -->

        <!-- Starting SmallDeposits Preset for Ardite. -->
        <ConfigSection>
          <IfCondition condition=':= ticoArditeDist = "SmallDeposits"'>
            <Veins name='ticoArditeVeins'  inherits='PresetSmallDeposits' branchType='Bezier' drawWireframe=':= drawWireframes' wireframeColor='0x60F48A00' drawBoundBox='false' boundBoxColor='0x60F48A00'>
              <Description>
                Small motherlodes without any  branches.  Similar to
                the  deposits produced by StandardGen  distributions.
              </Description>
              <OreBlock block='tconstruct:ore:1' weight='1.0' />
              <Replaces block='minecraft:netherrack' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='MotherlodeFrequency' avg=':= 1.084 * _default_ * ticoArditeFreq ' range=':= 1.084 * _default_ * ticoArditeFreq ' type='normal' scaleTo='base' />
              <Setting name='MotherlodeSize' avg=':= 1.014 * _default_ * ticoArditeSize ' range=':= 1.014 * _default_ * ticoArditeSize ' type='normal' />
              <Setting name='MotherlodeHeight' avg=':= 64 ' range=':= 64 ' type='uniform' scaleTo='base' />
              <Setting name='MotherlodeRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='BranchFrequency' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='BranchInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='BranchLength' avg=':= 0 * _default_ ' range=':= 0 * _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_ * ticoArditeSize ' range=':= _default_ * ticoArditeSize ' 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 * _default_ * ticoArditeSize ' range=':= 0 * _default_ * ticoArditeSize ' type='normal' />
              <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
            </Veins>
          </IfCondition>
        </ConfigSection>
        <!-- SmallDeposits Preset for Ardite is complete. -->


        <!-- Starting StrategicClouds Preset for Ardite. -->
        <ConfigSection>
          <IfCondition condition=':= ticoArditeDist = "StrategicClouds"'>
            <Cloud name='ticoArditeCloud'  inherits='PresetStrategicCloud' drawWireframe=':= drawWireframes' wireframeColor='0x60F48A00' drawBoundBox='false' boundBoxColor='0x60F48A00'>
              <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='tconstruct:ore:1' weight='1.0' />
              <Replaces block='minecraft:netherrack' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='CloudRadius' avg=':= 0.995 * _default_ * ticoArditeSize ' range=':= 0.995 * _default_ * ticoArditeSize ' type='normal' />
              <Setting name='CloudThickness' avg=':= 0.995 * _default_ * ticoArditeSize ' range=':= 0.995 * _default_ * ticoArditeSize ' type='normal' scaleTo='base' />
              <Setting name='DistributionFrequency' avg=':= 0.990 * _default_ * ticoArditeFreq ' range=':= 0.990 * _default_ * ticoArditeFreq ' type='normal' scaleTo='base' />
              <Setting name='CloudHeight' avg=':= 64 ' range=':= 64 ' type='uniform' scaleTo='base' />
              <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='CloudSizeNoise' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='CloudInclination' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='OreDensity' avg=':= _default_ ' range=':= _default_ ' type='normal' scaleTo='base' />
              <Setting name='OreVolumeNoiseCutoff' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Setting name='OreRadiusMult' avg=':= _default_ ' range=':= _default_ ' type='normal' />
              <Veins name='ticoArditeHintVeins' branchType='Bezier'  inherits='PresetHintVeins' drawWireframe=':= drawWireframes' wireframeColor='0x60F48A00' drawBoundBox='false' boundBoxColor='0x60F48A00'>
                <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='tconstruct:ore: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=':= 1.084 * _default_ * ticoArditeFreq  * 0.1 ' range=':= 1.084 * _default_ * ticoArditeFreq  * 0.1 ' type='normal' scaleTo='base' />
              </Veins>
            </Cloud>
          </IfCondition>
        </ConfigSection>
        <!-- StrategicClouds Preset for Ardite is complete. -->


        <!-- Starting Vanilla Preset for Ardite. -->
        <ConfigSection>
          <IfCondition condition=':= ticoArditeDist = "Vanilla"'>
            <StandardGen name='ticoArditeStandard'  inherits='PresetStandardGen' drawWireframe=':= drawWireframes' wireframeColor='0x60F48A00' drawBoundBox='false' boundBoxColor='0x60F48A00'>
              <Description>
                A master preset for standardgen  ore distributions.
              </Description>
              <OreBlock block='tconstruct:ore:1' weight='1.0' />
              <Replaces block='minecraft:netherrack' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='Size' avg=':= 2.0 * oreSize * ticoArditeSize ' range=':= 1.0 * oreSize * ticoArditeSize ' type='normal' />
              <Setting name='Frequency' avg=':= 5.333 * oreFreq * ticoArditeFreq ' range=':= 2.67 * oreFreq * ticoArditeFreq ' type='normal' scaleTo='base' />
              <Setting name='Height' avg=':= 64 ' range=':= 64 ' type='uniform' scaleTo='base' />
              <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
            </StandardGen>
          </IfCondition>
        </ConfigSection>
        <!-- Vanilla Preset for Ardite is complete. -->

        <!-- End Ardite Generation -->

        <!-- Finished adding blocks -->

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

    </IfCondition>

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

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