
<!-- ================================================================ 

Custom Ore Generation:   Fossils and Archaeology Module

Generates: 
Fossils, Permafrost

================================================================ -->

    <!-- Mod detection -->
    <IfModInstalled name="fossil">
    
        <!-- Starting Configuration for Custom Ore Generation. -->
        <ConfigSection>
        
            
            <!-- Setup Screen Configuration -->
            <ConfigSection>
                <OptionDisplayGroup name='groupFossilsandArchaeology' displayName='Fossils and Archaeology' displayState='shown'> 
                    <Description>
                        Distribution options for Fossils and Archaeology Ores.
                    </Description>
                </OptionDisplayGroup>
                
                <!-- Fossils Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='fsarFossilsDist'  displayState='shown' displayGroup='groupFossilsandArchaeology'> 
                        <Description> Controls how Fossils is generated </Description> 
                        <DisplayName>Fossils and Archaeology Fossils</DisplayName>
                        <Choice value='sparseVeins' displayValue='Sparse Veins'>
                            <Description>
                                Sparse Veins.
                            </Description>
                        </Choice>
                        <Choice value='smallDeposits' displayValue='Small Deposits'>
                            <Description>
                                Small Deposits.
                            </Description>
                        </Choice>
                        <Choice value='strategicCloud' displayValue='Clouds'>
                            <Description>
                                Strategic Clouds.
                            </Description>
                        </Choice>
                        <Choice value='vanillaStdGen' displayValue='Vanilla'>
                            <Description>
                                Vanilla-style clusters.
                            </Description>
                        </Choice>
                        <Choice value='none' displayValue='None' description='Fossils is not generated in the world.'/>
                    </OptionChoice>
                    <OptionNumeric name='fsarFossilsFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupFossilsandArchaeology'>
                        <Description> Frequency multiplier for Fossils and Archaeology Fossils distributions </Description>
                        <DisplayName>Fossils and Archaeology Fossils Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='fsarFossilsSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupFossilsandArchaeology'>
                        <Description> Size multiplier for Fossils and Archaeology Fossils distributions </Description>
                        <DisplayName>Fossils and Archaeology Fossils Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Fossils Configuration UI Complete -->
                
                
                <!-- Permafrost Configuration UI Starting -->
                <ConfigSection>
                    <OptionChoice name='fsarPermafrostDist'  displayState='shown' displayGroup='groupFossilsandArchaeology'> 
                        <Description> Controls how Permafrost is generated </Description> 
                        <DisplayName>Fossils and Archaeology Permafrost</DisplayName>
                        <Choice value='sparseVeins' displayValue='Sparse Veins'>
                            <Description>
                                Sparse Veins.
                            </Description>
                        </Choice>
                        <Choice value='smallDeposits' displayValue='Small Deposits'>
                            <Description>
                                Small Deposits.
                            </Description>
                        </Choice>
                        <Choice value='strategicCloud' displayValue='Clouds'>
                            <Description>
                                Strategic Clouds.
                            </Description>
                        </Choice>
                        <Choice value='vanillaStdGen' displayValue='Vanilla'>
                            <Description>
                                Vanilla-style clusters.
                            </Description>
                        </Choice>
                        <Choice value='none' displayValue='None' description='Permafrost is not generated in the world.'/>
                    </OptionChoice>
                    <OptionNumeric name='fsarPermafrostFreq' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupFossilsandArchaeology'>
                        <Description> Frequency multiplier for Fossils and Archaeology Permafrost distributions </Description>
                        <DisplayName>Fossils and Archaeology Permafrost Freq.</DisplayName>
                    </OptionNumeric>
                    <OptionNumeric name='fsarPermafrostSize' default='1'  min='0' max='5' displayState=':= if(?advOptions,"shown","hidden")' displayGroup='groupFossilsandArchaeology'>
                        <Description> Size multiplier for Fossils and Archaeology Permafrost distributions </Description>
                        <DisplayName>Fossils and Archaeology Permafrost Size</DisplayName>
                    </OptionNumeric>
                </ConfigSection> 
                <!-- Permafrost Configuration UI Complete -->
                
            </ConfigSection>
            <!-- Setup Screen Complete -->


            <!-- Setup Overworld -->
            <IfCondition condition=':= ?COGActive'>
                
                <!-- Starting Original Overworld Ore Removal -->
                <Substitute name='fsarOverworldOreSubstitute0' 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='fossil:fossil:0' />
                    <Replaces block='fossil:permafrost:0' />
                </Substitute>
                <!-- Original Overworld Ore Removal Complete -->
                
                <!-- Adding ores --> 
                
                <!-- Begin Fossils Generation --> 
                
                <!-- Begin SparseVeins distribution of Fossils -->
                <IfCondition condition=':= fsarFossilsDist = "sparseVeins"'>
                
                    <Veins name='fsarFossilsBaseVeins' block='fossil:fossil' inherits='PresetSparseVeins'>
                        <Description>
                            Large veins filled very lightly with ore.  Because they contain less ore per volume, 
                            these veins are relatively wide and long.  Mining the ore from them is time consuming 
                            compared to solid ore veins.  They are also more difficult to follow, since it is 
                            harder to get an idea of their direction while mining.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60FEFDDF</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 1 * fsarFossilsSize * _default_' range=':= 1 * 1 * fsarFossilsSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 32' range=':= 32' type='normal' scaleTo='SeaLevel' />
                        <Setting name='SegmentRadius' avg=':= 1 * 1 * fsarFossilsSize * _default_' range=':= 1 * 1 * fsarFossilsSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1.75 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 5.3 * fsarFossilsFreq * _default_'/>
                        <Setting name='BranchLength' avg=':= 0.45 * _default_' range=':= 0.45 * _default_'/>
                        <Setting name='BranchHeightLimit' avg=':= 10'/>
                        <Setting name='BranchInclination' avg=':= 0' range=':= 0.35'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Fossils Sparse Veins) Settings -->
                    <Veins name='fsarFossilsPrefersVeins' block='fossil:fossil' inherits='fsarFossilsBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60FEFDDF</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Swamp'/>
                        <BiomeType name='desert'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Fossils Sparse Veins) Settings -->
                
                </IfCondition>
                <!-- End SparseVeins distribution of Fossils -->
                
                
                <!-- Begin  Small Deposits distribution of Fossils -->
                <IfCondition condition=':= fsarFossilsDist = "smallDeposits"'>
                
                    <Veins name='fsarFossilsBaseVeins' block='fossil:fossil' inherits='PresetSmallDeposits'>
                        <Description>
                            Small motherlodes without any branches.
                            Similar to the deposits produced by StandardGen distributions.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60FEFDDF</WireframeColor>
                        <Setting name='MotherlodeHeight' avg=':= 32' range=':= 32' type='normal' scaleTo='SeaLevel' /> 
                        <Setting name='MotherlodeSize' avg=':= 1 * 1 * fsarFossilsSize * _default_' range=':= 1 * 1 * fsarFossilsSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1.75 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 5.3 * fsarFossilsFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                    </Veins>
                    
                    <!-- Begin Preferred Biome Distribution (Fossils Small Deposits) Settings -->
                    <Veins name='fsarFossilsPrefersVeins' block='fossil:fossil' inherits='fsarFossilsBaseVeins'>
                        <Description>
                            Spawns 2 more times in preferred biomes.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60FEFDDF</WireframeColor>
                        <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
                        <BiomeType name='Swamp'/>
                        <BiomeType name='desert'/>
                    </Veins>
                    <!-- End Preferred Biome Distribution (Fossils Small Deposits) Settings -->
                
                </IfCondition>
                <!-- End  Small Deposits distribution of Fossils -->
                
                
                <!-- Begin  StrategicCloud distribution of Fossils -->
                <IfCondition condition=':= fsarFossilsDist = "strategicCloud"'>
                
                    <Cloud name='fsarFossilsBaseCloud' block='fossil:fossil' inherits='PresetStrategicCloud'>
                        <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>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60FEFDDF</WireframeColor>
                        <Setting name='CloudRadius' avg=':= 1 * 1.2 * fsarFossilsSize * _default_' range=':= 1 * 1.2 * fsarFossilsSize * _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 1.2 * fsarFossilsSize * _default_' range=':= 1 * 1.2 * fsarFossilsSize * _default_'/>
                        <Setting name='CloudHeight' avg=':= _default_' range=':= _default_' type='normal' scaleTo='SeaLevel'/>
                        <Setting name='OreDensity' avg=':= 1 * 0.75 * _default_' range=':= _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 1 * 1.2 * fsarFossilsSize * _default_' range=':= 1 * 1 * 1.2 * fsarFossilsSize  * _default_'/>
                        <Setting name='DistributionFrequency' avg=':= 1 * 2.5 * fsarFossilsFreq *_default_'/>
                        <Replaces block='minecraft:stone'/>
                        
                        <!-- Begin Fossils Strategic Cloud Hint Veins -->
                        <Veins name='fsarFossilsBaseHintVeins' block='fossil:fossil' inherits='PresetHintVeins'>
                            <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. 
                            </Description>
                            <DrawWireframe>:=drawWireframes</DrawWireframe>
                            <WireframeColor>0x60FEFDDF</WireframeColor>
                            <Replaces block='minecraft:dirt'/>
                            <Replaces block='minecraft:sandstone'/>
                            <Replaces block='minecraft:stone'/>
                        </Veins>
                        <!-- End Fossils Strategic Cloud Hint Veins -->

                    </Cloud>
                    
                
                </IfCondition>
                <!-- End  StrategicCloud distribution of Fossils -->
                
                
                <!-- Begin  Vanilla distribution of Fossils -->
                <IfCondition condition=':= fsarFossilsDist = "vanillaStdGen"'>
                
                    <StandardGen name='fsarFossilsBaseStandard' block='fossil:fossil' inherits='PresetStandardGen'>
                        <Description>
                            This mimics vanilla ore generation.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60FEFDDF</WireframeColor>
                        <Setting name='Size' avg=':= 1 * 2 * fsarFossilsSize * _default_'/>
                        <Setting name='Height' avg=':= _default_' range=':= _default_' type='uniform'/> 
                        <Setting name='Frequency' avg=':= 1 * 1 * fsarFossilsFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                    </StandardGen>
                    
                
                </IfCondition>
                <!-- End  Vanilla distribution of Fossils -->
                
                <!-- End Fossils Generation --> 

                
                <!-- Begin Permafrost Generation --> 
                
                <!-- Begin SparseVeins distribution of Permafrost -->
                <IfCondition condition=':= fsarPermafrostDist = "sparseVeins"'>
                
                    <Veins name='fsarPermafrostBaseVeins' block='fossil:permafrost' inherits='PresetSparseVeins'>
                        <Description>
                            Large veins filled very lightly with ore.  Because they contain less ore per volume, 
                            these veins are relatively wide and long.  Mining the ore from them is time consuming 
                            compared to solid ore veins.  They are also more difficult to follow, since it is 
                            harder to get an idea of their direction while mining.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60A5C3F5</WireframeColor>
                        <Setting name='MotherlodeSize' avg=':= 1 * 1 * fsarPermafrostSize * _default_' range=':= 1 * 1 * fsarPermafrostSize * _default_'/>
                        <Setting name='MotherlodeHeight' avg=':= 32' range=':= 32' type='normal' scaleTo='SeaLevel' />
                        <Setting name='SegmentRadius' avg=':= 1 * 1 * fsarPermafrostSize * _default_' range=':= 1 * 1 * fsarPermafrostSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1.75 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 5.3 * fsarPermafrostFreq * _default_'/>
                        <Setting name='BranchLength' avg=':= 0.45 * _default_' range=':= 0.45 * _default_'/>
                        <Setting name='BranchHeightLimit' avg=':= 10'/>
                        <Setting name='BranchInclination' avg=':= 0' range=':= 0.35'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Frozen'/>
                    </Veins>
                
                </IfCondition>
                <!-- End SparseVeins distribution of Permafrost -->
                
                
                <!-- Begin  Small Deposits distribution of Permafrost -->
                <IfCondition condition=':= fsarPermafrostDist = "smallDeposits"'>
                
                    <Veins name='fsarPermafrostBaseVeins' block='fossil:permafrost' inherits='PresetSmallDeposits'>
                        <Description>
                            Small motherlodes without any branches.
                            Similar to the deposits produced by StandardGen distributions.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60A5C3F5</WireframeColor>
                        <Setting name='MotherlodeHeight' avg=':= 32' range=':= 32' type='normal' scaleTo='SeaLevel' /> 
                        <Setting name='MotherlodeSize' avg=':= 1 * 1 * fsarPermafrostSize * _default_' range=':= 1 * 1 * fsarPermafrostSize * _default_'/>
                        <Setting name='OreDensity' avg=':= 1 * 1.75 * _default_' range=':= _default_'/>
                        <Setting name='MotherlodeFrequency' avg=':= 1 * 5.3 * fsarPermafrostFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Frozen'/>
                    </Veins>
                
                </IfCondition>
                <!-- End  Small Deposits distribution of Permafrost -->
                
                
                <!-- Begin  StrategicCloud distribution of Permafrost -->
                <IfCondition condition=':= fsarPermafrostDist = "strategicCloud"'>
                
                    <Cloud name='fsarPermafrostBaseCloud' block='fossil:permafrost' inherits='PresetStrategicCloud'>
                        <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>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60A5C3F5</WireframeColor>
                        <Setting name='CloudRadius' avg=':= 1 * 1.2 * fsarPermafrostSize * _default_' range=':= 1 * 1.2 * fsarPermafrostSize * _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 1.2 * fsarPermafrostSize * _default_' range=':= 1 * 1.2 * fsarPermafrostSize * _default_'/>
                        <Setting name='CloudHeight' avg=':= _default_' range=':= _default_' type='normal' scaleTo='SeaLevel'/>
                        <Setting name='OreDensity' avg=':= 1 * 0.75 * _default_' range=':= _default_'/>
                        <Setting name='CloudThickness' avg=':= 1 * 1 * 1.2 * fsarPermafrostSize * _default_' range=':= 1 * 1 * 1.2 * fsarPermafrostSize  * _default_'/>
                        <Setting name='DistributionFrequency' avg=':= 1 * 2.5 * fsarPermafrostFreq *_default_'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Frozen'/>
                        
                        <!-- Begin Permafrost Strategic Cloud Hint Veins -->
                        <Veins name='fsarPermafrostBaseHintVeins' block='fossil:permafrost' inherits='PresetHintVeins'>
                            <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. 
                            </Description>
                            <DrawWireframe>:=drawWireframes</DrawWireframe>
                            <WireframeColor>0x60A5C3F5</WireframeColor>
                            <Replaces block='minecraft:dirt'/>
                            <Replaces block='minecraft:sandstone'/>
                            <Replaces block='minecraft:stone'/>
                            <BiomeType name='Frozen'/>
                        </Veins>
                        <!-- End Permafrost Strategic Cloud Hint Veins -->

                    </Cloud>
                
                </IfCondition>
                <!-- End  StrategicCloud distribution of Permafrost -->
                
                
                <!-- Begin  Vanilla distribution of Permafrost -->
                <IfCondition condition=':= fsarPermafrostDist = "vanillaStdGen"'>
                
                    <StandardGen name='fsarPermafrostBaseStandard' block='fossil:permafrost' inherits='PresetStandardGen'>
                        <Description>
                            This mimics vanilla ore generation.
                        </Description>
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
                        <WireframeColor>0x60A5C3F5</WireframeColor>
                        <Setting name='Size' avg=':= 1 * 2 * fsarPermafrostSize * _default_'/>
                        <Setting name='Height' avg=':= _default_' range=':= _default_' type='uniform'/> 
                        <Setting name='Frequency' avg=':= 1 * 1 * fsarPermafrostFreq * _default_'/>
                        <Replaces block='minecraft:stone'/>
                        <BiomeType name='Frozen'/>
                    </StandardGen>
                
                </IfCondition>
                <!-- End  Vanilla distribution of Permafrost -->
                
                <!-- End Permafrost Generation --> 

                <!-- Done adding ores -->
            
            </IfCondition>
            <!-- Overworld Setup Complete -->

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


<!-- This file was made using the Sprocket Configuration Generator. -->