<!--*************************  CustomOreGen Configuration **********************>
*
*   IMPORTANT: TO CUSTOMIZE THIS CONFIGURATION, COPY THIS FILE TO
*              "CustomOreGen_Config.xml".
*              THIS FILE WILL BE OVERWRITTEN EVERY TIME THE MOD LOADS.
*
*              To override the configuration for specific worlds,
*              or specific dimensions, copy this file to the
*              corresponding save directory.
*
*   CustomOreGen allows you to customize the generation of Ore within
*   your worlds. This file contains a list of "distributions", which
*   place a specific block according to a specific
*   algorithm.  You can have as many distributions as you want, including
*   multiple distributions for the same block type.
*   
*   There are four basic algorithms available:
*   "StandardGen", "Susbstitute", "Veins", and "Cloud".
*
*   This file is written in XML.
*   Many names and values are ***CASE SENSISTIVE***.  
*
*   For details on how to edit this file, please see the online documentation:
*
*   Documentation for original features by JRoush:
*       http://customoregen.shoutwiki.com/wiki/Main_Page
*
*   Documentation for features added by current maintainer:
*       https://github.com/lawremi/CustomOreGen/wiki/Documentation
*
******************************************************************************-->

<Config>
  
    <!--************************   Global Config Options   *********************************
    *   Below are options to control the general behavior of all distributions.
    *************************************************************************************-->
    <ConfigSection>
      
        <OptionDisplayGroup name='groupInternal' displayName=''
                            displayState='hidden'>
            <Description> 
                Hidden, mostly internal options.
            </Description>
        </OptionDisplayGroup>

        <OptionChoice name='COGActive'
                      default=':= dimension.generator = "RandomLevelSource" | dimension.generator = "ATGLevelSource"'
                      displayGroup='groupInternal'>
            <Choice value='true' displayValue='On'/>
            <Choice value='false' displayValue='Off'/>
            <Comment>
              Controls whether COG is active in the current
              dimension. Copy this file to CustomOreGen_Config.xml and
              modify the expression for the default value to control
              where COG is active by default.
            </Comment>
        </OptionChoice>

        <OptionDisplayGroup name='groupGeneral' displayName='General' displayState='hidden'>
            <Description> 
                Options affecting all ore distributions.
            </Description>
        </OptionDisplayGroup>
        
        <OptionNumeric name='oreFreq' default='1' min='0' max='5' displayState='hidden' displayGroup='groupGeneral'>
            <Description> 
                A global multiplier for the frequency of all ore distributions. 
            </Description>
            <DisplayName>Ore Frequency</DisplayName>
        </OptionNumeric>
        
        <OptionNumeric name='oreSize' default='1' min='0' max='5' displayState='hidden' displayGroup='groupGeneral'>
            <Description> 
                A global multiplier for the size of all ore distributions. 
            </Description>
            <DisplayName>Ore Deposit Size</DisplayName>
        </OptionNumeric> 
       
        <OptionChoice name='debugMode' default='false' displayState='shown_dynamic' displayGroup='groupGeneral'>
            <Description> 
                Enable/disable debugging mode, which allows the use of in-game wireframe models and console commands.  Also controls the visibility of some advanced options.
            </Description>
            <Comment>           
                This is a "magic" option - it has meaning outside of this file in the COG engine itelf.  You can change the value, obviously, but do not remove the option itself or change the possible values.
            </Comment>
            <DisplayName>Debugging Mode</DisplayName>
            <Choice value='true' displayValue='On'/>
            <Choice value='false' displayValue='Off'/>
        </OptionChoice> 
        
        <OptionNumeric name='deferredPopulationRange' default='16' displayGroup='groupGeneral'>
            <Description> 
                Radius (in blocks) around a chunk must be generated before COG will add ores to it. 
            </Description>
            <Comment>
                This is a "magic" option - it has meaning outside of this file in the COG engine itelf.  You can change the value, but do not remove the option itself or change the allowed range.  Changing this value is really not recommended unless you know what you are doing.
            </Comment>
            <DisplayState>:= if(?debugMode,"shown","hidden")</DisplayState>
            <DisplayName>Deferred Chunk Gen. Range</DisplayName>
            <Min>0</Min>
            <Max>128</Max>
            <DisplayIncrement>16</DisplayIncrement>
        </OptionNumeric> 
        
        <OptionChoice name='drawWireframes' default='true' displayGroup='groupGeneral'>
            <Description> 
                Default wireframe state for distributions.  
            </Description>
            <Comment>    
                Enabling this is only one of the requirements to actually use wireframes - debugging mode must be on and the client must have Forge and COG installed, cheats enabled, and the wireframe rendering mode set up.       
            </Comment>
            <DisplayState>:= if(?debugMode,"shown","hidden")</DisplayState>
            <DisplayName>Distribution Wireframes</DisplayName>
            <Choice value='true' displayValue='On'/>
            <Choice value='false' displayValue='Off'/>
        </OptionChoice>     
        
        <OptionChoice name='debugDist' default='false' displayGroup='groupGeneral'>
            <Description> Enable/disable testing distributions. </Description>
            <DisplayState>:= if(?debugMode,"shown","hidden")</DisplayState>
            <DisplayName>Test Distributions</DisplayName>
            <Choice value='true' displayValue='On'/>
            <Choice value='false' displayValue='Off'/>
        </OptionChoice>   

        <OptionChoice name='advOptions' default='false'
                      displayState='shown_dynamic'
                      displayGroup='groupGeneral'>
          <Description> 
            Enable/disable advanced frequency and size settings for
            individual distributions. 
          </Description>
          <DisplayName>Advanced Options</DisplayName>
          <Choice value='true' displayValue='On'/>
          <Choice value='false' displayValue='Off'/>
        </OptionChoice>

    </ConfigSection>
    
    <!--*******************************   Presets   ****************************************
    *   Below are useful "preset" distributions.  These don't generate any ore by themselves, 
    *   but they can be used as a base for other distributions.
    *************************************************************************************-->

			<Substitute name='StonifyEverything' block='minecraft:stone' minHeight='1' maxHeight='254'>
				<Replaces block='Technomagi:resource:3' />
				<Replaces block='Technomagi:resource:2' />
            </Substitute>


    <!-- ******************** Import Standard Configs ********************** -->
    <!--
         NOTE: to override a default config, remove the corresponding
         directive (and optionally add something to 'modules/custom')
    -->

   

    <!-- Possible mods to support as standard configs:
         * Pam's Harvest Craft (salt)
         * Mariculture
    -->

    <!-- ***************** Import Mod-provided configs ********************* -->
    <!-- NOTE: mods will overwrite these configs upon each load -->

    
    <!-- ******************** Import Custom Configs ************************ -->

    
    <!--*************************   Testing & Debugging   *********************
    *   I use this section for quick-and-dirty experiments
    **************************************************************************-->
    <IfChoice name='debugDist' value='true'>
       
        <!-- Experimental distributions should go here -->
        
    </IfChoice>
    
</Config>
