<!-- =================================================================
     Custom Ore Generation "Tinkers Steelworks" Module: This
     configuration covers limestone and mountain limestone.
     ================================================================= -->


<!-- Adds the High Furnace and the High Tank to Tinker's Construct,
     and allows the creation of steel. Configuration by Reteo. -->




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

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





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

      <!-- Limestone Configuration UI Starting -->
      <ConfigSection>
        <OptionChoice name='tiswLimestoneDist'  displayState=':= if(?enableTinkersSteelworks, "shown", "hidden")' displayGroup='groupTinkersSteelworks'>
          <Description> Controls how Limestone is generated </Description>
          <DisplayName>Tinkers Steelworks Limestone</DisplayName>
          <IfCondition condition=':= (?blockExists("TSteelworks:Limestone")) '>

          <Choice value='StratumClouds' displayValue='Strata'>
            <Description>
              Wide, thin, and flat disks of ore.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("TSteelworks:Limestone")) '>

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

          <IfCondition condition=':= (?blockExists("TSteelworks:Limestone")) '>

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

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


      <!-- Mountain Limestone Configuration UI Starting -->
      <ConfigSection>
        <OptionChoice name='tiswMountainLimestoneDist'  displayState=':= if(?enableTinkersSteelworks, "shown", "hidden")' displayGroup='groupTinkersSteelworks'>
          <Description> Controls how Mountain Limestone is generated </Description>
          <DisplayName>Tinkers Steelworks Mountain Limestone</DisplayName>
          <IfCondition condition=':= (?blockExists("TSteelworks:Limestone")) '>

          <Choice value='StratumClouds' displayValue='Strata'>
            <Description>
              Wide, thin, and flat disks of ore.
            </Description>
          </Choice>
          </IfCondition>

          <IfCondition condition=':= (?blockExists("TSteelworks:Limestone")) '>

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

          <IfCondition condition=':= (?blockExists("TSteelworks:Limestone")) '>

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

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

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

    <IfCondition condition=':= ?enableTinkersSteelworks'>




      <!-- Overworld Setup Beginning -->

      <IfCondition condition=':= ?COGActive'>

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

        <IfCondition condition=':= ?cleanUpTinkersSteelworks'>
          <IfCondition condition=':= ?blockExists("minecraft:stone")'>
            <Substitute name='tiswOverworldBlockSubstitute0' 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='TSteelworks:Limestone' weight='1.0' />
            </Substitute>
          </IfCondition>
        </IfCondition>

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

        <!-- Adding blocks -->

        <!-- Begin Limestone Generation -->

        <!-- Starting StratumClouds Preset for Limestone. -->
        <ConfigSection>
          <IfCondition condition=':= tiswLimestoneDist = "StratumClouds"'>
            <Cloud name='tiswLimestoneCloud'  inherits='PresetStratum' drawWireframe=':= drawWireframes' wireframeColor='0x60C5CCA9' drawBoundBox='false' boundBoxColor='0x60C5CCA9'>
              <Description>
                Wide, thin, and flat disks of  ore.  Primarily, this
                distribution is meant to provide  realistic
                distribution of stone  in a strata formation.
              </Description>
              <OreBlock block='TSteelworks:Limestone' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='CloudRadius' avg=':= 0.972 * _default_ * tiswLimestoneSize ' range=':= 0.972 * _default_ * tiswLimestoneSize ' type='normal' />
              <Setting name='CloudThickness' avg=':= 0.972 * _default_ * tiswLimestoneSize ' range=':= 0.972 * _default_ * tiswLimestoneSize ' type='normal' scaleTo='base' />
              <Setting name='DistributionFrequency' avg=':= 0.945 * _default_ * tiswLimestoneFreq ' range=':= 0.945 * _default_ * tiswLimestoneFreq ' type='normal' scaleTo='base' />
              <Setting name='CloudHeight' avg=':= 38 ' range=':= 26 ' 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' />
            </Cloud>
          </IfCondition>
        </ConfigSection>
        <!-- StratumClouds Preset for Limestone is complete. -->


        <!-- Starting LayeredVeins Preset for Limestone. -->
        <ConfigSection>
          <IfCondition condition=':= tiswLimestoneDist = "LayeredVeins"'>
            <Veins name='tiswLimestoneVeins'  inherits='PresetLayeredVeins' branchType='Bezier' drawWireframe=':= drawWireframes' wireframeColor='0x60C5CCA9' drawBoundBox='false' boundBoxColor='0x60C5CCA9'>
              <Description>
                Small, fairly rare motherlodes  with 2-4 horizontal
                veins each.
              </Description>
              <OreBlock block='TSteelworks:Limestone' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='MotherlodeFrequency' avg=':= 1.416 * _default_ * tiswLimestoneFreq ' range=':= 1.416 * _default_ * tiswLimestoneFreq ' type='normal' scaleTo='base' />
              <Setting name='MotherlodeSize' avg=':= 1.060 * _default_ * tiswLimestoneSize ' range=':= 1.060 * _default_ * tiswLimestoneSize ' type='normal' />
              <Setting name='MotherlodeHeight' avg=':= 38 ' range=':= 26 ' 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.190 * _default_ ' range=':= 1.190 * _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_ * tiswLimestoneSize ' range=':= _default_ * tiswLimestoneSize ' 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.091 * _default_ * tiswLimestoneSize ' range=':= 1.091 * _default_ * tiswLimestoneSize ' 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 Limestone is complete. -->


        <!-- Starting Vanilla Preset for Limestone. -->
        <ConfigSection>
          <IfCondition condition=':= tiswLimestoneDist = "Vanilla"'>
            <StandardGen name='tiswLimestoneStandard'  inherits='PresetStandardGen' drawWireframe=':= drawWireframes' wireframeColor='0x60C5CCA9' drawBoundBox='false' boundBoxColor='0x60C5CCA9'>
              <Description>
                A master preset for standardgen  ore distributions.
              </Description>
              <OreBlock block='TSteelworks:Limestone' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <Biome name='.*'  />
              <Setting name='Size' avg=':= 21.333 * oreSize * tiswLimestoneSize ' range=':= 10.67 * oreSize * tiswLimestoneSize ' type='normal' />
              <Setting name='Frequency' avg=':= 1.333 * oreFreq * tiswLimestoneFreq ' range=':= 0.67 * oreFreq * tiswLimestoneFreq ' type='normal' scaleTo='base' />
              <Setting name='Height' avg=':= 38 ' range=':= 26 ' type='normal' scaleTo='base' />
              <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
            </StandardGen>
          </IfCondition>
        </ConfigSection>
        <!-- Vanilla Preset for Limestone is complete. -->

        <!-- End Limestone Generation -->


        <!-- Begin Mountain Limestone Generation -->

        <!-- Starting StratumClouds Preset for Mountain  Limestone. -->
        <ConfigSection>
          <IfCondition condition=':= tiswMountainLimestoneDist = "StratumClouds"'>
            <Cloud name='tiswMountainLimestoneCloud'  inherits='PresetStratum' drawWireframe=':= drawWireframes' wireframeColor='0x60C5CCA9' drawBoundBox='false' boundBoxColor='0x60C5CCA9'>
              <Description>
                Wide, thin, and flat disks of  ore.  Primarily, this
                distribution is meant to provide  realistic
                distribution of stone  in a strata formation.
              </Description>
              <OreBlock block='TSteelworks:Limestone' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <BiomeType name='Mountain'  />
              <Setting name='CloudRadius' avg=':= 0.972 * _default_ * tiswMountainLimestoneSize ' range=':= 0.972 * _default_ * tiswMountainLimestoneSize ' type='normal' />
              <Setting name='CloudThickness' avg=':= 0.972 * _default_ * tiswMountainLimestoneSize ' range=':= 0.972 * _default_ * tiswMountainLimestoneSize ' type='normal' scaleTo='base' />
              <Setting name='DistributionFrequency' avg=':= 0.945 * _default_ * tiswMountainLimestoneFreq ' range=':= 0.945 * _default_ * tiswMountainLimestoneFreq ' type='normal' scaleTo='base' />
              <Setting name='CloudHeight' avg=':= 178 ' range=':= 78 ' 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' />
            </Cloud>
          </IfCondition>
        </ConfigSection>
        <!-- StratumClouds Preset for Mountain Limestone is  complete. -->


        <!-- Starting LayeredVeins Preset for Mountain  Limestone. -->
        <ConfigSection>
          <IfCondition condition=':= tiswMountainLimestoneDist = "LayeredVeins"'>
            <Veins name='tiswMountainLimestoneVeins'  inherits='PresetLayeredVeins' branchType='Bezier' drawWireframe=':= drawWireframes' wireframeColor='0x60C5CCA9' drawBoundBox='false' boundBoxColor='0x60C5CCA9'>
              <Description>
                Small, fairly rare motherlodes  with 2-4 horizontal
                veins each.
              </Description>
              <OreBlock block='TSteelworks:Limestone' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <BiomeType name='Mountain'  />
              <Setting name='MotherlodeFrequency' avg=':= 1.416 * _default_ * tiswMountainLimestoneFreq ' range=':= 1.416 * _default_ * tiswMountainLimestoneFreq ' type='normal' scaleTo='base' />
              <Setting name='MotherlodeSize' avg=':= 1.060 * _default_ * tiswMountainLimestoneSize ' range=':= 1.060 * _default_ * tiswMountainLimestoneSize ' type='normal' />
              <Setting name='MotherlodeHeight' avg=':= 178 ' range=':= 78 ' 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.190 * _default_ ' range=':= 1.190 * _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_ * tiswMountainLimestoneSize ' range=':= _default_ * tiswMountainLimestoneSize ' 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.091 * _default_ * tiswMountainLimestoneSize ' range=':= 1.091 * _default_ * tiswMountainLimestoneSize ' 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 Limestone is  complete. -->


        <!-- Starting Vanilla Preset for Mountain Limestone. -->
        <ConfigSection>
          <IfCondition condition=':= tiswMountainLimestoneDist = "Vanilla"'>
            <StandardGen name='tiswMountainLimestoneStandard'  inherits='PresetStandardGen' drawWireframe=':= drawWireframes' wireframeColor='0x60C5CCA9' drawBoundBox='false' boundBoxColor='0x60C5CCA9'>
              <Description>
                A master preset for standardgen  ore distributions.
              </Description>
              <OreBlock block='TSteelworks:Limestone' weight='1.0' />
              <ReplacesOre block='stone' weight='1.0' />
              <BiomeType name='Mountain'  />
              <Setting name='Size' avg=':= 21.333 * oreSize * tiswMountainLimestoneSize ' range=':= 10.67 * oreSize * tiswMountainLimestoneSize ' type='normal' />
              <Setting name='Frequency' avg=':= 1.333 * oreFreq * tiswMountainLimestoneFreq ' range=':= 0.67 * oreFreq * tiswMountainLimestoneFreq ' type='normal' scaleTo='base' />
              <Setting name='Height' avg=':= 178 ' range=':= 78 ' type='normal' scaleTo='base' />
              <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
            </StandardGen>
          </IfCondition>
        </ConfigSection>
        <!-- Vanilla Preset for Mountain Limestone is  complete. -->

        <!-- End Mountain Limestone Generation -->

        <!-- Finished adding blocks -->

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

    </IfCondition>

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

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