<!-- =================================================================
     Custom Ore Generation "Minecraft Comes Alive" Module: This
     configuration covers rose gold.
     ================================================================= -->


<!-- Minecraft Comes Alive is a mod focusing around villager
     interactions.  However, it does introduce a new ore for "Rose
     Gold." -->




<!-- Is the "Minecraft Comes Alive" mod on the system?  Let's find
     out! -->
<IfModInstalled name="MCA">

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





        <!-- Setup Screen Configuration -->
        <ConfigSection>
            <OptionDisplayGroup name='groupMinecraftComesAlive' displayName='Minecraft Comes Alive' displayState='shown'>
                <Description>
                    Distribution options for Minecraft Comes Alive Ores.
                </Description>
            </OptionDisplayGroup>
            <OptionChoice name='enableMinecraftComesAlive' displayName='Handle Minecraft Comes Alive Setup?' default='true' displayState='shown_dynamic' displayGroup='groupMinecraftComesAlive'>
                <Description> Should Custom Ore Generation handle Minecraft Comes Alive ore generation? </Description>
                <Choice value=':= ?true' displayValue='Yes' description='Use Custom Ore Generation to handle Minecraft Comes Alive ores.'/>
                <Choice value=':= ?false' displayValue='No' description='Minecraft Comes Alive ores will be handled by the mod itself.'/>
            </OptionChoice>

            <!-- Rose Gold Configuration UI Starting -->
            <ConfigSection>
                <OptionChoice name='mccaRoseGoldDist'  displayState=':= if(?enableMinecraftComesAlive, "shown", "hidden")' displayGroup='groupMinecraftComesAlive'>
                    <Description> Controls how Rose Gold is generated </Description>
                    <DisplayName>Minecraft Comes Alive Rose Gold</DisplayName>
                    <Choice value='LayeredVeins' displayValue='Layered Veins'>
                        <Description>
                            Small, fairly rare motherlodes with 2-4 horizontal veins each.
                        </Description>
                    </Choice>
                    <Choice value='Cloud' displayValue='Strategic Cloud'>
                        <Description>
                            Large irregular clouds filled lightly with ore.
                        </Description>
                    </Choice>
                    <Choice value='Vanilla' displayValue='Vanilla'>
                        <Description>
                            Simulates Vanilla Minecraft.
                        </Description>
                    </Choice>
                    <Choice value='none' displayValue='None' description='Rose Gold is not generated in the world.'/>
                </OptionChoice>
                <OptionNumeric name='mccaRoseGoldFreq' default='1'  min='0' max='5' displayState=':= if(?enableMinecraftComesAlive, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupMinecraftComesAlive'>
                    <Description> Frequency multiplier for Minecraft Comes Alive Rose Gold distributions </Description>
                    <DisplayName>Minecraft Comes Alive Rose Gold Freq.</DisplayName>
                </OptionNumeric>
                <OptionNumeric name='mccaRoseGoldSize' default='1'  min='0' max='5' displayState=':= if(?enableMinecraftComesAlive, if(?advOptions, "shown", "hidden"), "hidden")' displayGroup='groupMinecraftComesAlive'>
                    <Description> Size multiplier for Minecraft Comes Alive Rose Gold distributions </Description>
                    <DisplayName>Minecraft Comes Alive Rose Gold Size</DisplayName>
                </OptionNumeric>
            </ConfigSection>
            <!-- Rose Gold Configuration UI Complete -->

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

        <IfCondition condition=':= ?enableMinecraftComesAlive'>




            <!-- Overworld Setup Beginning -->

            <IfCondition condition=':= ?COGActive'>

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

                <IfCondition condition=':= ?blockExists("minecraft:stone")'>
                    <Substitute name='mccaOverworldBlockSubstitute0' 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>
                        <IfCondition condition=':= ?blockExists("MCA:tile.roseGoldOre")'> <Replaces block='MCA:tile.roseGoldOre' weight='1.0' /> </IfCondition>
                    </Substitute>
                </IfCondition>

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

                <!-- Adding blocks -->

                <!-- Begin Rose Gold Generation -->

                <!-- Starting LayeredVeins Preset for Rose Gold. -->
                <ConfigSection>
                    <IfCondition condition=':= mccaRoseGoldDist = "LayeredVeins"'>
                        <Veins name='mccaRoseGoldVeins'  inherits='PresetLayeredVeins' drawWireframe='true' wireframeColor='0x60FFDDA2' drawBoundBox='false' boundBoxColor='0x60FFDDA2'>
                            <Description>
                                Small, fairly rare motherlodes  with
                                2-4 horizontal veins each.
                            </Description>
                            <IfCondition condition=':= ?blockExists("MCA:tile.roseGoldOre")'> <OreBlock block='MCA:tile.roseGoldOre' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='MotherlodeFrequency' avg=':= 0.969 * _default_ * mccaRoseGoldFreq ' range=':= 0.969 * _default_ * mccaRoseGoldFreq ' type='normal' scaleTo='base' />
                            <Setting name='MotherlodeSize' avg=':= 0.995 * _default_ * mccaRoseGoldSize ' range=':= 0.995 * _default_ * mccaRoseGoldSize ' type='normal' />
                            <Setting name='MotherlodeHeight' avg=':= 26 ' range=':= 14 ' 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.984 * _default_ ' range=':= 0.984 * _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_ * mccaRoseGoldSize ' range=':= _default_ * mccaRoseGoldSize ' type='normal' />
                            <Setting name='SegmentAngle' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                            <Setting name='SegmentRadius' avg=':= 0.992 * _default_ * mccaRoseGoldSize ' range=':= 0.992 * _default_ * mccaRoseGoldSize ' 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 Rose Gold is complete. -->


                <!-- Starting Cloud Preset for Rose Gold. -->
                <ConfigSection>
                    <IfCondition condition=':= mccaRoseGoldDist = "Cloud"'>
                        <Cloud name='mccaRoseGoldCloud'  inherits='PresetStrategicCloud' drawWireframe='true' wireframeColor='0x60FFDDA2' drawBoundBox='false' boundBoxColor='0x60FFDDA2'>
                            <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>
                            <IfCondition condition=':= ?blockExists("MCA:tile.roseGoldOre")'> <OreBlock block='MCA:tile.roseGoldOre' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='CloudRadius' avg=':= 0.921 * _default_ * mccaRoseGoldSize ' range=':= 0.921 * _default_ * mccaRoseGoldSize ' type='normal' />
                            <Setting name='CloudThickness' avg=':= 0.921 * _default_ * mccaRoseGoldSize ' range=':= 0.921 * _default_ * mccaRoseGoldSize ' type='normal' scaleTo='base' />
                            <Setting name='DistributionFrequency' avg=':= 0.848 * _default_ * mccaRoseGoldFreq ' range=':= 0.848 * _default_ * mccaRoseGoldFreq ' type='normal' scaleTo='base' />
                            <Setting name='CloudHeight' avg=':= 26 ' range=':= 14 ' 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='mccaRoseGoldHintVeins'  inherits='PresetHintVeins' drawWireframe='true' wireframeColor='0x60FFDDA2' drawBoundBox='false' boundBoxColor='0x60FFDDA2'>
                                <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>
                                <IfCondition condition=':= ?blockExists("MCA:tile.roseGoldOre")'> <OreBlock block='MCA:tile.roseGoldOre' weight='1.0' /> </IfCondition>
                                <IfCondition condition=':= ?blockExists("minecraft:dirt")'> <Replaces block='minecraft:dirt' weight='1.0' /> </IfCondition>
                                <IfCondition condition=':= ?blockExists("minecraft:sandstone")'> <Replaces block='minecraft:sandstone' weight='1.0' /> </IfCondition>
                            </Veins>
                        </Cloud>
                    </IfCondition>
                </ConfigSection>
                <!-- Cloud Preset for Rose Gold is complete. -->


                <!-- Starting Vanilla Preset for Rose Gold. -->
                <ConfigSection>
                    <IfCondition condition=':= mccaRoseGoldDist = "Vanilla"'>
                        <StandardGen name='mccaRoseGoldStandard'  inherits='PresetStandardGen' drawWireframe='true' wireframeColor='0x60FFDDA2' drawBoundBox='false' boundBoxColor='0x60FFDDA2'>
                            <Description>
                                A master preset for standardgen  ore
                                distributions.
                            </Description>
                            <IfCondition condition=':= ?blockExists("MCA:tile.roseGoldOre")'> <OreBlock block='MCA:tile.roseGoldOre' weight='1.0' /> </IfCondition>
                            <IfCondition condition=':= ?blockExists("minecraft:stone")'> <Replaces block='minecraft:stone' weight='1.0' /> </IfCondition>
                            <Biome name='.*'  />
                            <Setting name='Size' avg=':= 6.000 * mccaRoseGoldSize ' range=':= _default_ * mccaRoseGoldSize ' type='normal' />
                            <Setting name='Frequency' avg=':= 5.000 * mccaRoseGoldFreq ' range=':= _default_ * mccaRoseGoldFreq ' type='normal' scaleTo='base' />
                            <Setting name='Height' avg=':= 26 ' range=':= 14 ' type='normal' scaleTo='base' />
                            <Setting name='ParentRangeLimit' avg=':= _default_ ' range=':= _default_ ' type='normal' />
                        </StandardGen>
                    </IfCondition>
                </ConfigSection>
                <!-- Vanilla Preset for Rose Gold is complete. -->

                <!-- End Rose Gold Generation -->

                <!-- Finished adding blocks -->

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



        </IfCondition>

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

</IfModInstalled>
<!-- The "Minecraft Comes Alive" mod is now configured. -->





<!-- =================================================================
     This file was made using the Sprocket 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
     ================================================================= -->
