View difference between Paste ID: z7Q8ZF8E and QUczBDvi
SHOW: | | - or go back to the newest paste.
1
<!--************************  CustomOreGen Minecraft Ores Module *********************************
2
*
3
*   This file contains Presets, Options, and Distributions for the 7 vanilla minecraft ores:
4
*       Coal, Iron, Gold, Redstone, Diamond, Lapis Lazuli, and Emerald.
5
*
6
***********************************************************************************************-->
7
<ConfigSection>
8
9
    <!--***************************   Options + Symbols   ***********************************
10
    *
11
    *   Below are options and symbols for Coal, Iron, Gold, Redstone, Diamond, Lapis Lazuli, 
12
    *   and Emerald.  Each ore has a "type" option corresponding to select which distribution
13
    *   is used for that ore in the overworld, and 3 mystcraft symbols for selecting 
14
    *   distributions in mystcraft ages.
15
    *
16
    *   Each ore also has its own overall "frequency" and "size" multipliers.  These are 
17
    *   provided so people can tweak the rarity of each ore from the options file rather 
18
    *   than having to edit the config directly.
19
    *
20
    *************************************************************************************-->
21
    <ConfigSection>
22
    
23
        <OptionDisplayGroup name='groupStdOres' displayName='Minecraft Ores' displayState='shown'>
24
            <Description> 
25
                Distribution options for the vanilla Minecraft ores.
26
            </Description>
27
        </OptionDisplayGroup>
28
29
        <!--*******************   Coal   ***********************-->
30
        <ConfigSection>
31
        
32
            <OptionChoice name='coalDist' default='layeredVeins' displayState='shown' displayGroup='groupStdOres'>
33
                <Description> Controls how Coal is generated </Description>
34
                <DisplayName>Coal Type</DisplayName>
35
                <Choice value='layeredVeins' displayValue='Veins'>
36
                    <Description> 
37
                        Single short, wide veins found near ground level and only sparsely filled with ore.  Most common in swamps.  
38
                    </Description>
39
                </Choice>
40
                <Choice value='strategicClouds' displayValue='Clouds'>
41
                    <Description> 
42
                        Rare, sparsely populated clouds of ore extending over several chunks.  Found only in swamps. 
43
                    </Description>
44
                </Choice>
45
                <Choice value='vanillaStdGen' displayValue='Clusters'>
46
                    <Description> 
47
                        Small evenly scattered clusters of ore.  This is the vanilla coal generation.
48
                    </Description>
49
                </Choice>
50
                <Choice value='none' displayValue='None' description='No coal is generated at all.'/>
51
            </OptionChoice>
52
            
53
            <OptionNumeric name='coalFreq' default='1'  min='0' max='5' displayState='hidden' displayGroup='groupStdOres'>
54
                <Description> Frequency multiplier for Coal distributions </Description>
55
                <DisplayName>Coal Freq.</DisplayName>
56
            </OptionNumeric> 
57
            
58
            <OptionNumeric name='coalSize' default='1'  min='0' max='5' displayState='hidden' displayGroup='groupStdOres'>
59
                <Description> Size multiplier for Coal distributions </Description>
60
                <DisplayName>Coal Size</DisplayName>
61
            </OptionNumeric>
62
63
            <MystcraftSymbol name='coalClusters' displayName='Coal Clusters'/>
64
            <MystcraftSymbol name='coalVeins' displayName='Coal Veins'/>
65
            <MystcraftSymbol name='coalClouds' displayName='Coal Clouds'>
66-
                <Instability>:= 50 * (age.coalClusters + age.coalVeins + age.coalClouds - 1)^3</Instability>
66+
                <Instability>:= 50 * (max(1, age.coalClusters + age.coalVeins + age.coalClouds) - 1)^3</Instability>
67
            </MystcraftSymbol>
68
       
69
        </ConfigSection>        
70
            
71
        <!--*******************   Iron   ***********************-->
72
        <ConfigSection>
73
            
74
            <OptionChoice name='ironDist' default='layeredVeins' displayState='shown' displayGroup='groupStdOres'>
75
                <Description> Controls how Iron is generated </Description>
76
                <DisplayName>Iron Type</DisplayName>
77
                <Choice value='layeredVeins' displayValue='Veins'>
78
                    <Description> 
79
                        Groups of long narrow veins found about one third of the way down to bedrock.  Especially common in snowy or icy areas.  
80
                    </Description>
81
                </Choice>
82
                <Choice value='strategicClouds' displayValue='Clouds'>
83
                    <Description> 
84
                        Rare, sparsely populated clouds of ore extending over several chunks.  Found only in snowy or icy areas.
85
                    </Description>
86
                </Choice>
87
                <Choice value='vanillaStdGen' displayValue='Clusters'>
88
                    <Description> 
89
                        Small evenly scattered clusters of ore.  This is the vanilla iron generation.
90
                    </Description>
91
                </Choice>
92
                <Choice value='none' displayValue='None' description='No iron is generated at all.'/>
93
            </OptionChoice>
94
            
95
            <OptionNumeric name='ironFreq' default='1'  min='0' max='5' displayState='hidden' displayGroup='groupStdOres'>
96
                <Description> Frequency multiplier for Iron distributions </Description>
97
                <DisplayName>Iron Freq.</DisplayName>
98
            </OptionNumeric>
99
            
100
            <OptionNumeric name='ironSize' default='1'  min='0' max='5' displayState='hidden' displayGroup='groupStdOres'>
101
                <Description> Size multiplier for Iron distributions </Description>
102
                <DisplayName>Iron Size</DisplayName>
103
            </OptionNumeric>    
104
            
105
            <MystcraftSymbol name='ironClusters' displayName='Iron Clusters'/>
106
            <MystcraftSymbol name='ironVeins' displayName='Iron Veins'/>
107
            <MystcraftSymbol name='ironClouds' displayName='Iron Clouds'>
108-
                <Instability>:= 50 * (age.ironClusters + age.ironVeins + age.ironClouds - 1)^3</Instability>
108+
                <Instability>:= 50 * (max(1, age.ironClusters + age.ironVeins + age.ironClouds) - 1)^3</Instability>
109
            </MystcraftSymbol>
110
            
111
        </ConfigSection>           
112
        
113
        <!--*******************   Gold   ***********************-->
114
        <ConfigSection>
115
        
116
            <OptionChoice name='goldDist' default='layeredVeins' displayState='shown' displayGroup='groupStdOres'>
117
                <Description> Controls how Gold is generated </Description>
118
                <DisplayName>Gold Type</DisplayName>
119
                <Choice value='layeredVeins' displayValue='Veins'>
120
                    <Description> 
121
                        Groups of long narrow veins found about two thirds of the way down to bedrock.  Most common in temperate hardwood forests, but still very rare.
122
                    </Description>
123
                </Choice>
124
                <Choice value='strategicClouds' displayValue='Clouds'>
125
                    <Description> 
126
                        Rare, sparsely populated clouds of ore extending over several chunks.  Found only in temperate hardwood forests.
127
                    </Description>
128
                </Choice>
129
                <Choice value='vanillaStdGen' displayValue='Clusters'>
130
                    <Description> 
131
                        Small clusters of ore scattered evenly from bedrock about halfway to the surface.  This is the vanilla gold generation.
132
                    </Description>
133
                </Choice>
134
                <Choice value='none' displayValue='None' description='No gold is generated at all.'/>
135
            </OptionChoice>
136
            
137
            <OptionNumeric name='goldFreq' default='1'  min='0' max='5' displayState='hidden' displayGroup='groupStdOres'>
138
                <Description> Frequency multiplier for Gold distributions </Description>
139
                <DisplayName>Gold Freq.</DisplayName>
140
            </OptionNumeric>
141
            
142
            <OptionNumeric name='goldSize' default='1'  min='0' max='5' displayState='hidden' displayGroup='groupStdOres'>
143
                <Description> Size multiplier for Gold distributions </Description>
144
                <DisplayName>Gold Size</DisplayName>
145
            </OptionNumeric> 
146
            
147
            <MystcraftSymbol name='goldClusters' displayName='Gold Clusters'/>
148
            <MystcraftSymbol name='goldVeins' displayName='Gold Veins'/>
149
            <MystcraftSymbol name='goldClouds' displayName='Gold Clouds'>
150-
                <Instability>:= 50 * (age.goldClusters + age.goldVeins + age.goldClouds - 1)^3</Instability>
150+
                <Instability>:= 50 * (max(1, age.goldClusters + age.goldVeins + age.goldClouds) - 1)^3</Instability>
151
            </MystcraftSymbol>
152
            
153
        </ConfigSection>           
154
        
155
        <!--*****************   Redstone   *********************-->
156
        <ConfigSection>        
157
        
158
            <OptionChoice name='redstoneDist' default='layeredVeins' displayState='shown' displayGroup='groupStdOres'>
159
                <Description> Controls how Redstone is generated </Description>
160
                <DisplayName>Redstone Type</DisplayName>
161
                <Choice value='layeredVeins' displayValue='Veins'>
162
                    <Description> 
163
                        Single vertical veins starting near the surface and extending down about halfway to bedrock.  Most common in desert climates.
164
                    </Description>
165
                </Choice>
166
                <Choice value='strategicClouds' displayValue='Clouds'>
167
                    <Description> 
168
                        Rare, sparsely populated clouds of ore extending over several chunks.  Found only in desert climates.
169
                    </Description>
170
                </Choice>
171
                <Choice value='vanillaStdGen' displayValue='Clusters'>
172
                    <Description> 
173
                        Small clusters of ore scattered evenly from bedrock about one quarter of the way to the surface.  This is the vanilla redstone generation.
174
                    </Description>
175
                </Choice>
176
                <Choice value='none' displayValue='None' description='No redstone is generated at all.'/>
177
            </OptionChoice>
178
            
179
            <OptionNumeric name='redstoneFreq' default='1'  min='0' max='5' displayState='hidden' displayGroup='groupStdOres'>
180
                <Description> Frequency multiplier for Redstone distributions </Description>
181
                <DisplayName>Redstone Freq.</DisplayName>
182
            </OptionNumeric>
183
            
184
            <OptionNumeric name='redstoneSize' default='1'  min='0' max='5' displayState='hidden' displayGroup='groupStdOres'>
185
                <Description> Size multiplier for Redstone distributions </Description>
186
                <DisplayName>Redstone Size</DisplayName>
187
            </OptionNumeric>    
188
                
189
            <MystcraftSymbol name='redstoneClusters' displayName='Redstone Clusters'/>
190
            <MystcraftSymbol name='redstoneVeins' displayName='Redstone Veins'/>
191
            <MystcraftSymbol name='redstoneClouds' displayName='Redstone Clouds'>
192-
                <Instability>:= 50 * (age.redstoneClusters + age.redstoneVeins + age.redstoneClouds - 1)^3</Instability>
192+
                <Instability>:= 50 * (max(1, age.redstoneClusters + age.redstoneVeins + age.redstoneClouds) - 1)^3</Instability>
193
            </MystcraftSymbol>
194
            
195
        </ConfigSection>           
196
        
197
        <!--*****************   Diamond   **********************-->
198
        <ConfigSection> 
199
        
200
            <OptionChoice name='diamondDist' default='layeredVeins' displayState='shown' displayGroup='groupStdOres'>
201
                <Description> Controls how Diamonds are generated </Description>
202
                <DisplayName>Diamond Type</DisplayName>
203
                <Choice value='layeredVeins' displayValue='Veins'>
204
                    <Description> 
205
                        Short lava-filled tubes extending upward from bedrock with diamonds around the edges. 
206
                    </Description>
207
                </Choice>
208
                <Choice value='strategicClouds' displayValue='Clouds'>
209
                    <Description> 
210
                        Uncommon, sparsely populated clouds of ore covering roughly one chunk.
211
                    </Description>
212
                </Choice>
213
                <Choice value='vanillaStdGen' displayValue='Clusters'>
214
                    <Description> 
215
                        Small clusters of ore scattered evenly from bedrock about one quarter of the way to the surface.  This is the vanilla diamond generation.
216
                    </Description>
217
                </Choice>
218
                <Choice value='none' displayValue='None' description='No diamonds are generated at all.'/>
219
            </OptionChoice>
220
            
221
            <OptionNumeric name='diamondFreq' default='1'  min='0' max='5' displayState='hidden' displayGroup='groupStdOres'>
222
                <Description> Frequency multiplier for Diamond distributions </Description>
223
                <DisplayName>Diamond Freq.</DisplayName>
224
            </OptionNumeric>
225
            
226
            <OptionNumeric name='diamondSize' default='1'  min='0' max='5' displayState='hidden' displayGroup='groupStdOres'>
227
                <Description> Size multiplier for Diamond distributions </Description>
228
                <DisplayName>Diamond Size</DisplayName>
229
            </OptionNumeric>    
230
                
231
            <MystcraftSymbol name='diamondClusters' displayName='Diamond Clusters'/>
232
            <MystcraftSymbol name='diamondVeins' displayName='Diamond Veins'/>
233
            <MystcraftSymbol name='diamondClouds' displayName='Diamond Clouds'>
234-
                <Instability>:= 50 * (age.diamondClusters + age.diamondVeins + age.diamondClouds - 1)^3</Instability>
234+
                <Instability>:= 50 * (max(1, age.diamondClusters + age.diamondVeins + age.diamondClouds) - 1)^3</Instability>
235
            </MystcraftSymbol>
236
            
237
        </ConfigSection>           
238
        
239
        <!--***************   Lapis Lazuli   *******************-->
240
        <ConfigSection> 
241
        
242
            <OptionChoice name='lapisDist' default='layeredVeins' displayState='shown' displayGroup='groupStdOres'>
243
                <Description> Controls how Lapis Lazuli is generated </Description>
244
                <DisplayName>Lapis Lazuli Type</DisplayName>
245
                <Choice value='layeredVeins' displayValue='Veins'>
246
                    <Description> 
247
                        Single vertical veins starting near bedrock and extending about halfway to the surface.  Most common under ocean floors.
248
                    </Description>
249
                </Choice>
250
                <Choice value='strategicClouds' displayValue='Clouds'>
251
                    <Description> 
252
                        Rare, sparsely populated clouds of ore extending over several chunks.  Found only under oceans.
253
                    </Description>
254
                </Choice>
255
                <Choice value='vanillaStdGen' displayValue='Clusters'>
256
                    <Description> 
257
                        Small clusters of ore scattered evenly from bedrock about halfway to the surface.  This is the vanilla lapis lazuli generation.
258
                    </Description>
259
                </Choice>
260
                <Choice value='none' displayValue='None' description='No lapis lazuli is generated at all.'/>
261
            </OptionChoice>
262
            
263
            <OptionNumeric name='lapisFreq' default='1'  min='0' max='5' displayState='hidden' displayGroup='groupStdOres'>
264
                <Description> Frequency multiplier for Lapis Lazuli distributions </Description>
265
                <DisplayName>Lapis Lazuli Freq.</DisplayName>
266
            </OptionNumeric>
267
            
268
            <OptionNumeric name='lapisSize' default='1'  min='0' max='5' displayState='hidden' displayGroup='groupStdOres'>
269
                <Description> Size multiplier for Lapis Lazuli distributions </Description>
270
                <DisplayName>Lapis Lazuli Size</DisplayName>
271
            </OptionNumeric>    
272
            
273
            <MystcraftSymbol name='lapisClusters' displayName='Lapis Lazuli Clusters'/>
274
            <MystcraftSymbol name='lapisVeins' displayName='Lapis Lazuli Veins'/>
275
            <MystcraftSymbol name='lapisClouds' displayName='Lapis Lazuli Clouds'>
276-
                <Instability>:= 50 * (age.lapisClusters + age.lapisVeins + age.lapisClouds - 1)^3</Instability>
276+
                <Instability>:= 50 * (max(1, age.lapisClusters + age.lapisVeins + age.lapisClouds) - 1)^3</Instability>
277
            </MystcraftSymbol>
278
            
279
        </ConfigSection>           
280
        
281
        <!--*****************   Emerald   **********************-->
282
        <ConfigSection>
283
        
284
            <OptionChoice name='emeraldDist' default='layeredVeins' displayState='shown' displayGroup='groupStdOres'>
285
                <Description> Controls how Emeralds are generated </Description>
286
                <DisplayName>Emerald Type</DisplayName>
287
                <Choice value='layeredVeins' displayValue='Veins'>
288
                    <Description> 
289
                        Short sloping tubes filled sparsely with emeralds and a few ... surprises.  Vastly more common under open grassy hills.
290
                    </Description>
291
                </Choice>
292
                <Choice value='strategicClouds' displayValue='Clouds'>
293
                    <Description> 
294
                        Uncommon, sparsely populated clouds of ore covering roughly one chunk.  Found only under open grassy hills.
295
                    </Description>
296
                </Choice>
297
                <Choice value='vanillaStdGen' displayValue='Clusters'>
298
                    <Description> 
299
                        Single blocks scattered near bedrock under open grassy highlands.  This is the vanilla emerald generation.
300
                    </Description>
301
                </Choice>
302
                <Choice value='none' displayValue='None' description='No emeralds are generated at all.'/>
303
            </OptionChoice>
304
            
305
            <OptionNumeric name='emeraldFreq' default='1'  min='0' max='5' displayState='hidden' displayGroup='groupStdOres'>
306
                <Description> Frequency multiplier for Emerald distributions </Description>
307
                <DisplayName>Emerald Freq.</DisplayName>
308
            </OptionNumeric>
309
            
310
            <OptionNumeric name='emeraldSize' default='1'  min='0' max='5' displayState='hidden' displayGroup='groupStdOres'>
311
                <Description> Size multiplier for Emerald distributions </Description>
312
                <DisplayName>Emerald Size</DisplayName>
313
            </OptionNumeric> 
314
            
315
            <MystcraftSymbol name='emeraldClusters' displayName='Emerald Clusters'/>
316
            <MystcraftSymbol name='emeraldVeins' displayName='Emerald Veins'/>
317
            <MystcraftSymbol name='emeraldClouds' displayName='Emerald Clouds'>
318-
                <Instability>:= 50 * (age.emeraldClusters + age.emeraldVeins + age.emeraldClouds - 1)^3</Instability>
318+
                <Instability>:= 50 * (max(1, age.emeraldClusters + age.emeraldVeins + age.emeraldClouds) - 1)^3</Instability>
319
            </MystcraftSymbol>
320
321
        </ConfigSection>
322
        
323
     </ConfigSection>    
324
   
325
    <!--*****************************   Distributions   *************************************
326
    *   
327
    *   Below are the actual distributions for the vanilla ores in the overworld and 
328
    *   mystcraft ages.  There are currently 3 types of distribution for each ore:
329
    *     Layered Veins:  
330
    *       Some form of veins or clusters arranged loosely by height and more common 
331
    *       in affiliated biomes.
332
    *     Strategic Clouds:  
333
    *       Huge, rare, low-density clouds.  Size and frequency are fairly consistent; 
334
    *       density is varied to reflect ore rarity.  May be surrounded by a scattering 
335
    *       of single blocks as hints to help guide players in.
336
    *     Vanilla Clusters:
337
    *       A re-creation of the vanilla ore generation using the StandardGen algorithm.
338
    *
339
    *************************************************************************************-->
340
    <IfCondition condition=':= dimension.generator = "RandomLevelSource"'>
341
        
342
        <!--**********   Vanilla Deposit Removal   *************-->
343
        <Substitute name='StandardOreSubstitute' block='stone'>
344
            <Description> 
345
                Replace vanilla-generated ore clusters with stone.   
346
            </Description>
347
            <Comment>  
348
                The global option deferredPopulationRange must be large enough to catch all ore clusters (>= 32).
349
            </Comment>
350
            <Replaces block='oreCoal'/> 
351
            <Replaces block='oreIron'/> 
352
            <Replaces block='oreGold'/> 
353
            <Replaces block='oreRedstone'/> 
354
            <Replaces block='oreDiamond'/> 
355
            <Replaces block='oreLapis'/> 
356
            <Replaces block='oreEmerald'/>
357
        </Substitute>
358
        
359
        <!--*******************   Coal   ***********************-->
360
        <ConfigSection>
361
        
362
            <IfCondition condition=':= if(age
363
                    &amp; (age.coalClusters + age.coalVeins + age.coalClouds > 0 )
364
                    , age.coalClusters > 0, coalDist = "vanillaStdGen")'>    
365
                <StandardGen name='CoalStandard' block='oreCoal' inherits='PresetStandardGen'> 
366
                    <Description> Equivalent to vanilla minecraft coal distribution </Description>
367
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
368
                    <WireframeColor>0x60101010</WireframeColor>
369
                    <Setting name='Size' avg=':= 2 * coalSize * _default_'/> 
370-
                    <Setting name='Frequency' avg=':= coalFreq * if(age,age.coalClusters,1) * _default_'/>
370+
                    <Setting name='Frequency' avg=':= coalFreq * if(age,max(age.coalClusters,1),1) * _default_'/>
371
                </StandardGen> 
372
            </IfCondition>   
373
            
374
            <IfCondition condition=':= if(age
375
                    &amp; (age.coalClusters + age.coalVeins + age.coalClouds > 0 )
376
                    , age.coalVeins > 0, coalDist = "layeredVeins")'>    
377
                <Veins name='CoalVeins' block='oreCoal' inherits='PresetSparseVeins'>    
378
                    <Description>
379
                        Coal spawns just near the surface, and up into hills and mountains.  The veins are
380
                        long and thick, but sparsely filled with ore and often broken up by caves or depressions
381
                        in the terrain.
382
                    </Description>
383
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
384
                    <WireframeColor>0x60101010</WireframeColor>
385-
                    <Setting name='MotherlodeFrequency' avg=':= 10.7 * coalFreq * if(age,age.coalVeins,1) * _default_'/>
385+
                    <Setting name='MotherlodeFrequency' avg=':= 10.7 * coalFreq * if(age,max(age.coalVeins,1),1) * _default_'/>
386
                    <Setting name='MotherlodeSize' avg=':= coalSize * _default_' range=':= coalSize * _default_'/>
387
                    <Setting name='MotherlodeHeight' avg=':= 60/64 * dimension.groundLevel' range=':= 10/64 * dimension.groundLevel'/>
388
                    <Setting name='BranchLength' avg=':= 0.45 * _default_' range=':= 0.45 * _default_'/>
389
                    <Setting name='BranchInclination' avg='0' range='0.35'/>
390
                    <Setting name='BranchHeightLimit' avg='10'/>
391
                    <Setting name='SegmentRadius' avg=':= coalSize * _default_' range=':= coalSize * _default_'/>
392
                    <Setting name='OreDensity' avg=':= 1.75 * _default_' range=':= _default_'/>
393
                </Veins>
394
                <Veins name='CoalVeinsSwamp' inherits='CoalVeins'>
395
                    <Description>  This roughly triples the chance of finding coal in a swamp. </Description>      
396
                    <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
397
                    <Setting name='MotherlodeHeight' avg=':= _default_' range=':= 2 * _default_'/>
398
                    <Setting name='BranchHeightLimit' avg=':= 2 * _default_'/>  
399
                    <Biome name='Swampland'/>
400
                    <Biome name='Green\s*Swamplands'/> <Comment> ExtraBiomesXL </Comment>
401
                </Veins>      
402
            </IfCondition>     
403
            
404
            <IfCondition condition=':= if(age
405
                    &amp; (age.coalClusters + age.coalVeins + age.coalClouds > 0 )
406
                    , age.coalClouds > 0, coalDist = "strategicClouds")'>    
407
                <Cloud name='CoalCloud' block='oreCoal' inherits='PresetStrategicCloud'>
408
                    <Description>  
409
                        Diffuse coal cloud surrounded by single-block "hint" veins, found in swamps.
410
                    </Description> 
411
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
412
                    <WireframeColor>0x60101010</WireframeColor> 
413-
                    <Setting name='DistributionFrequency' avg=':= 5 * coalFreq * if(age,age.coalClouds,1) * _default_'/>
413+
                    <Setting name='DistributionFrequency' avg=':= 5 * coalFreq * if(age,max(age.coalClouds,1),1) * _default_'/>
414
                    <Setting name='CloudRadius' avg=':= 1.2 * coalSize * _default_' range=':= 1.2 * coalSize * _default_'/>
415
                    <Setting name='CloudThickness' avg=':= coalSize * _default_' range=':= coalSize * _default_'/>
416
                    <Setting name='OreDensity' avg=':= 0.75 * _default_'/>
417
                    <Biome name='Swampland'/>
418
                    <Biome name='Green\s*Swamplands'/> <Comment> ExtraBiomesXL </Comment>  
419
                    <Veins name='CoalHintVeins' block='oreCoal' inherits='PresetHintVeins'>
420
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
421
                        <WireframeColor>0x60101010</WireframeColor> 
422
                        <Setting name='MotherlodeFrequency' avg=':= 1.2 * _default_' range=':= _default_'/> 
423
                        <Setting name='MotherlodeRangeLimit' avg=':= coalSize * _default_' range=':= coalSize * _default_'/>
424
                    </Veins>                
425
                </Cloud>
426
            </IfCondition>  
427
            
428
        </ConfigSection>
429
                
430
        <!--*******************   Iron   ***********************-->
431
        <ConfigSection>
432
        
433
            <IfCondition condition=':= if(age
434
                    &amp; (age.ironClusters + age.ironVeins + age.ironClouds > 0 )
435
                    , age.ironClusters > 0, ironDist = "vanillaStdGen")'>
436
                <StandardGen name='IronStandard' block='oreIron' inherits='PresetStandardGen'> 
437
                    <Description> Equivalent to vanilla minecraft iron distribution </Description>
438
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
439
                    <WireframeColor>0x40221100</WireframeColor> 
440
                    <Setting name='Size' avg=':= ironSize * _default_'/> 
441-
                    <Setting name='Frequency' avg=':= ironFreq * if(age,age.ironClusters,1) * _default_'/>
441+
                    <Setting name='Frequency' avg=':= ironFreq * if(age,max(age.ironClusters,1),1) * _default_'/>
442
                    <Setting name='Height' avg=':= 32/64 * dimension.groundLevel' range=':= 32/64 * dimension.groundLevel'/> 
443
                </StandardGen> 
444
            </IfCondition>
445
                
446
            <IfCondition condition=':= if(age
447
                    &amp; (age.ironClusters + age.ironVeins + age.ironClouds > 0 )
448
                    , age.ironVeins > 0, ironDist = "layeredVeins")'>
449
                <Veins name='IronVeins' block='oreIron' inherits='PresetLayeredVeins'>
450
                    <Description> 
451
                        Iron spawns in the height 30-50 range.  The veins are average in length and size.
452
                    </Description> 
453
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
454
                    <WireframeColor>0x40221100</WireframeColor> 
455-
                    <Setting name='MotherlodeFrequency' avg=':= 0.9 * ironFreq * if(age,age.ironVeins,1) * _default_'/>
455+
                    <Setting name='MotherlodeFrequency' avg=':= 0.9 * ironFreq * if(age,max(age.ironVeins,1),1) * _default_'/>
456
                    <Setting name='MotherlodeSize' avg=':= ironSize * _default_' range=':= ironSize * _default_'/>
457
                    <Setting name='MotherlodeHeight' avg=':= 43/64 * dimension.groundLevel' range=':= 10.5/64 * dimension.groundLevel' type='normal'/>
458
                    <Setting name='BranchHeightLimit' avg='10.5'/>
459
                    <Setting name='SegmentRadius' avg=':= ironSize * _default_' range=':= ironSize * _default_'/>
460
                </Veins>
461
                <Veins name='IronVeinsCold' inherits='IronVeins'>
462
                    <Description> This roughly triples the chance of finding iron in cold/icy biomes. </Description> 
463
                    <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
464
                    <Setting name='MotherlodeHeight' avg=':=_default_' range=':= 2 * _default_'/>
465
                    <Setting name='BranchHeightLimit' avg=':= 2 * _default_'/>  
466
                    <Biome name='Taiga'/>
467
                    <Biome name='TaigaHills'/>
468
                    <Biome name='Ice\s*Plains'/>
469
                    <Biome name='Ice\s*Mountains'/>
470
                    <Biome name='Alpine'/> <Comment> ExtraBiomesXL </Comment>
471
                    <Biome name='Glacier'/> <Comment> ExtraBiomesXL </Comment>
472
                    <Biome name='Ice\s*Wasteland'/> <Comment> ExtraBiomesXL </Comment>
473
                    <Biome name='Mountain\s*Taiga'/> <Comment> ExtraBiomesXL </Comment>
474
                    <Biome name='Snow\s*Forest'/> <Comment> ExtraBiomesXL </Comment>
475
                    <Biome name='Tundra'/> <Comment> ExtraBiomesXL </Comment>
476
                </Veins>
477
            </IfCondition>   
478
                
479
            <IfCondition condition=':= if(age
480
                    &amp; (age.ironClusters + age.ironVeins + age.ironClouds > 0 )
481
                    , age.ironClouds > 0, ironDist = "strategicClouds")'>
482
                <Cloud name='IronCloud' block='oreIron' inherits='PresetStrategicCloud'>
483
                    <Description>  
484
                        Diffuse iron cloud surrounded by single-block "hint" veins, found in cold biomes.
485
                    </Description> 
486
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
487
                    <WireframeColor>0x40221100</WireframeColor> 
488-
                    <Setting name='DistributionFrequency' avg=':= 2.5 * ironFreq * if(age,age.ironClouds,1) * _default_'/>
488+
                    <Setting name='DistributionFrequency' avg=':= 2.5 * ironFreq * if(age,max(age.ironClouds,1),1) * _default_'/>
489
                    <Setting name='CloudRadius' avg=':= ironSize * _default_' range=':= ironSize * _default_'/>
490
                    <Setting name='CloudThickness' avg=':= ironSize * _default_' range=':= ironSize * _default_'/> 
491
                    <Biome name='Taiga'/>
492
                    <Biome name='TaigaHills'/>
493
                    <Biome name='Ice\s*Plains'/>
494
                    <Biome name='Ice\s*Mountains'/>
495
                    <Biome name='Alpine'/> <Comment> ExtraBiomesXL </Comment>
496
                    <Biome name='Glacier'/> <Comment> ExtraBiomesXL </Comment>
497
                    <Biome name='Ice\s*Wasteland'/> <Comment> ExtraBiomesXL </Comment>
498
                    <Biome name='Mountain\s*Taiga'/> <Comment> ExtraBiomesXL </Comment>
499
                    <Biome name='Snow\s*Forest'/> <Comment> ExtraBiomesXL </Comment>
500
                    <Biome name='Tundra'/> <Comment> ExtraBiomesXL </Comment>   
501
                    <Veins name='IronHintVeins' block='oreIron' inherits='PresetHintVeins'>
502
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
503
                        <WireframeColor>0x40221100</WireframeColor>
504
                        <Setting name='MotherlodeFrequency' avg=':= _default_' range=':= _default_'/>   
505
                        <Setting name='MotherlodeRangeLimit' avg=':= ironSize * _default_' range=':= ironSize * _default_'/>              
506
                    </Veins>                         
507
                </Cloud> 
508
            </IfCondition>      
509
       
510
        </ConfigSection>           
511
        
512
        <!--*******************   Gold   ***********************-->
513
        <ConfigSection>
514
        
515
            <IfCondition condition=':= if(age
516
                    &amp; (age.goldClusters + age.goldVeins + age.goldClouds > 0 )
517
                    , age.goldClusters > 0, goldDist = "vanillaStdGen")'>
518
                <StandardGen name='GoldStandard' block='oreGold' inherits='PresetStandardGen'> 
519
                    <Description> Equivalent to vanilla minecraft gold distribution </Description>
520
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
521
                    <WireframeColor>0x40443300</WireframeColor> 
522
                    <Setting name='Size' avg=':= goldSize * _default_'/> 
523-
                    <Setting name='Frequency' avg=':= 0.1 * goldFreq * if(age,age.goldClusters,1) * _default_'/>
523+
                    <Setting name='Frequency' avg=':= 0.1 * goldFreq * if(age,max(age.goldClusters,1),1) * _default_'/>
524
                    <Setting name='Height' avg=':= 16/64 * dimension.groundLevel' range=':= 16/64 * dimension.groundLevel'/>
525
                </StandardGen> 
526
            </IfCondition>
527
                
528
            <IfCondition condition=':= if(age
529
                    &amp; (age.goldClusters + age.goldVeins + age.goldClouds > 0 )
530
                    , age.goldVeins > 0, goldDist = "layeredVeins")'>
531
                <Veins name='GoldVeins' block='oreGold' inherits='PresetLayeredVeins'> 
532
                    <Description> 
533
                        Gold spawns in the height 10-30 range.  The veins are shorter than average,
534
                        and much rarer overall.  Gold is not easy to find.
535
                    </Description>  
536
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
537
                    <WireframeColor>0x40443300</WireframeColor> 
538-
                    <Setting name='MotherlodeFrequency' avg=':= 0.85 * goldFreq * if(age,age.goldVeins,1) * _default_'/>
538+
                    <Setting name='MotherlodeFrequency' avg=':= 0.85 * goldFreq * if(age,max(age.goldVeins,1),1) * _default_'/>
539
                    <Setting name='MotherlodeSize' avg=':= 0.8 * goldSize * _default_' range=':= 0.5 * goldSize * _default_'/>
540
                    <Setting name='MotherlodeHeight' avg=':= 20/64 * dimension.groundLevel' range=':= 10/64 * dimension.groundLevel' type='normal'/>
541
                    <Setting name='BranchHeightLimit' avg='10'/>  
542
                    <Setting name='BranchFrequency' avg=':= 0.85 * _default_'/> 
543
                    <Setting name='BranchLength' avg=':= 0.75 * _default_' range=':= 0.66 * _default_'/>
544
                    <Setting name='SegmentRadius' avg=':= 0.7 * goldSize * _default_' range=':= 0.5 * goldSize * _default_'/>
545
                    <Setting name='SegmentAngle' avg='0.6' range='0.40' /> 
546
                </Veins>
547
                <Veins name='GoldVeinsForest' inherits='GoldVeins'>
548
                    <Description> This roughly triples the chance of finding gold in forested biomes. </Description> 
549
                    <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
550
                    <Setting name='MotherlodeHeight' avg=':=_default_' range=':= 2 * _default_'/>
551
                    <Setting name='BranchHeightLimit' avg=':= 2 * _default_'/>  
552
                    <Biome name='Forest'/>    
553
                    <Biome name='ForestHills'/>      
554
                    <Biome name='Birch\s*Forest'/> <Comment> ExtraBiomesXL </Comment>
555
                    <Biome name='Autumn\s*Woods'/> <Comment> ExtraBiomesXL </Comment>
556
                    <Biome name='Forested\s*Island'/> <Comment> ExtraBiomesXL </Comment>
557
                    <Biome name='Forested\s*Hills'/> <Comment> ExtraBiomesXL </Comment>
558
                    <Biome name='Rainforest'/> <Comment> ExtraBiomesXL </Comment>
559
                    <Biome name='Woodlands'/> <Comment> ExtraBiomesXL </Comment>
560
                </Veins>
561
            </IfCondition>
562
                
563
            <IfCondition condition=':= if(age
564
                    &amp; (age.goldClusters + age.goldVeins + age.goldClouds > 0 )
565
                    , age.goldClouds > 0, goldDist = "strategicClouds")'>
566
                <Cloud name='GoldCloud' block='oreGold' inherits='PresetStrategicCloud'>
567
                    <Description>  
568
                        Diffuse gold cloud surrounded by single-block "hint" veins, found in forest biomes.
569
                    </Description> 
570
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
571
                    <WireframeColor>0x40443300</WireframeColor> 
572-
                    <Setting name='DistributionFrequency' avg=':= 4.5 * goldFreq * if(age,age.goldClouds,1) * _default_'/>
572+
                    <Setting name='DistributionFrequency' avg=':= 4.5 * goldFreq * if(age,max(age.goldClouds,1),1) * _default_'/>
573
                    <Setting name='CloudRadius' avg=':= 0.8 * goldSize * _default_' range=':= 0.8 * goldSize * _default_'/>
574
                    <Setting name='CloudThickness' avg=':= 0.8 * goldSize * _default_' range=':= goldSize * _default_'/>
575
                    <Setting name='OreDensity' avg=':= 0.3 * _default_'/>
576
                    <Biome name='Forest'/>    
577
                    <Biome name='ForestHills'/>      
578
                    <Biome name='Birch\s*Forest'/> <Comment> ExtraBiomesXL </Comment>
579
                    <Biome name='Autumn\s*Woods'/> <Comment> ExtraBiomesXL </Comment>
580
                    <Biome name='Forested\s*Island'/> <Comment> ExtraBiomesXL </Comment>
581
                    <Biome name='Forested\s*Hills'/> <Comment> ExtraBiomesXL </Comment>
582
                    <Biome name='Rainforest'/> <Comment> ExtraBiomesXL </Comment>
583
                    <Biome name='Woodlands'/> <Comment> ExtraBiomesXL </Comment>  
584
                    <Veins name='GoldHintVeins' block='oreGold' inherits='PresetHintVeins'>
585
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
586
                        <WireframeColor>0x40443300</WireframeColor>
587
                        <Setting name='MotherlodeFrequency' avg=':= 0.3 * _default_' range=':= _default_'/>
588
                        <Setting name='MotherlodeRangeLimit' avg=':= 0.75 * goldSize * _default_' range=':= 0.65 * goldSize * _default_'/>                    
589
                    </Veins>             
590
                </Cloud>
591
            </IfCondition>      
592
       
593
        </ConfigSection>           
594
        
595
        <!--*****************   Redstone   *********************-->
596
        <ConfigSection>
597
       
598
            <IfCondition condition=':= if(age
599
                    &amp; (age.redstoneClusters + age.redstoneVeins + age.redstoneClouds > 0 )
600
                    , age.redstoneClusters > 0, redstoneDist = "vanillaStdGen")'>
601
                <StandardGen name='RedstoneStandard' block='73' inherits='PresetStandardGen'> 
602
                    <Description> Equivalent to vanilla minecraft redstone distribution </Description>
603
                    <Comment> The name "oreRedstone" is ambiguous, so we have to use the block ID (73) </Comment>
604
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
605
                    <WireframeColor>0x40550000</WireframeColor> 
606
                    <Setting name='Size' avg=':= 7/8 * redstoneSize * _default_'/>
607-
                    <Setting name='Frequency' avg=':= 0.4 * redstoneFreq * if(age,age.redstoneClusters,1) * _default_'/>
607+
                    <Setting name='Frequency' avg=':= 0.4 * redstoneFreq * if(age,max(age.redstoneClusters,1),1) * _default_'/>
608
                    <Setting name='Height' avg=':= 8/64 * dimension.groundLevel' range=':= 8/64 * dimension.groundLevel'/>
609
                </StandardGen>
610
            </IfCondition>
611
                
612
            <IfCondition condition=':= if(age
613
                    &amp; (age.redstoneClusters + age.redstoneVeins + age.redstoneClouds > 0 )
614
                    , age.redstoneVeins > 0, redstoneDist = "layeredVeins")'>
615
                <Veins name='RedstoneVeins' block='73' inherits='PresetVerticalVeins'> 
616
                    <Comment> The name "oreRedstone" is ambiguous, so we have to use the block ID (73) </Comment>    
617
                    <Description> 
618
                        Isolated veins (no motherlodes) that run vertically.  These veins are fairly common, but a challenge to mine because you have to tunnel straight down.
619
                    </Description>  
620
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
621
                    <WireframeColor>0x40550000</WireframeColor> 
622-
                    <Setting name='MotherlodeFrequency' avg=':= 1.3 * redstoneFreq * if(age,age.redstoneVeins,1) * _default_'/>
622+
                    <Setting name='MotherlodeFrequency' avg=':= 1.3 * redstoneFreq * if(age,max(age.redstoneVeins,1),1) * _default_'/>
623
                    <Setting name='SegmentRadius' avg=':= redstoneSize * _default_' range=':= redstoneSize * _default_'/>
624
                </Veins>
625
                <Veins name='RedstoneVeinsDesert' inherits='RedstoneVeins'> 
626
                    <Description> This roughly triples the chance of finding redstone in deserts. </Description> 
627
                    <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/> 
628
                    <Replaces block='stone'/>
629
                    <Replaces block='sandstone'/> 
630
                    <Biome name='Desert'/>    
631
                    <Biome name='DesertHills'/>          
632
                    <Biome name='Mountainous\s*Desert'/> <Comment> ExtraBiomesXL </Comment>
633
                </Veins>
634
            </IfCondition>
635
                
636
            <IfCondition condition=':= if(age
637
                    &amp; (age.redstoneClusters + age.redstoneVeins + age.redstoneClouds > 0 )
638
                    , age.redstoneClouds > 0, redstoneDist = "strategicClouds")'>
639
                <Cloud name='RedstoneCloud' block='73' inherits='PresetStrategicCloud'>
640
                    <Comment> The name "oreRedstone" is ambiguous, so we have to use the block ID (73) </Comment> 
641
                    <Description> 
642
                        Diffuse redstone cloud surrounded by single-block "hint" veins, found in deserts.
643
                    </Description> 
644
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
645
                    <WireframeColor>0x40550000</WireframeColor> 
646-
                    <Setting name='DistributionFrequency' avg=':= 4.5 * redstoneFreq * if(age,age.redstoneClouds,1) * _default_'/>
646+
                    <Setting name='DistributionFrequency' avg=':= 4.5 * redstoneFreq * if(age,max(age.redstoneClouds,1),1) * _default_'/>
647
                    <Setting name='CloudRadius' avg=':= 0.65 * redstoneSize * _default_' range=':= 0.5 * redstoneSize * _default_'/>
648
                    <Setting name='CloudThickness' avg=':= 0.7 * redstoneSize * _default_' range=':= 0.7 * redstoneSize * _default_'/>
649
                    <Biome name='Desert'/>    
650
                    <Biome name='DesertHills'/>          
651
                    <Biome name='Mountainous\s*Desert'/> <Comment> ExtraBiomesXL </Comment>  
652
                    <Veins name='RedstoneHintVeins' block='73' inherits='PresetHintVeins'>
653
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
654
                        <WireframeColor>0x40550000</WireframeColor>
655
                        <Setting name='MotherlodeFrequency' avg=':= 0.7 * _default_' range=':= _default_'/>
656
                        <Setting name='MotherlodeRangeLimit' avg=':= 0.65 * redstoneSize * _default_' range=':= 0.65 * redstoneSize * _default_'/>                    
657
                        <Replaces block='stone'/>
658
                        <Replaces block='sandstone'/>             
659
                    </Veins>         
660
                </Cloud>
661
            </IfCondition>  
662
        
663
        </ConfigSection>           
664
        
665
        <!--*****************   Diamond   **********************-->
666
        <ConfigSection> 
667
            
668
            <IfCondition condition=':= if(age
669
                    &amp; (age.diamondClusters + age.diamondVeins + age.diamondClouds > 0 )
670
                    , age.diamondClusters > 0, diamondDist = "vanillaStdGen")'>
671
                <StandardGen name='DiamondStandard' block='oreDiamond' inherits='PresetStandardGen'> 
672
                    <Description> Equivalent to vanilla minecraft diamond distribution </Description>
673
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
674
                    <WireframeColor>0x40336699</WireframeColor> 
675
                    <Setting name='Size' avg=':= 7/8 * diamondSize * _default_'/>
676-
                    <Setting name='Frequency' avg=':= 1/20 * diamondFreq * if(age,age.diamondClusters,1) * _default_'/>
676+
                    <Setting name='Frequency' avg=':= 1/20 * diamondFreq * if(age,max(age.diamondClusters,1),1) * _default_'/>
677
                    <Setting name='Height' avg=':= 8/64 * dimension.groundLevel' range=':= 8/64 * dimension.groundLevel'/>
678
                </StandardGen>
679
            </IfCondition>
680
                
681
            <IfCondition condition=':= if(age
682
                    &amp; (age.diamondClusters + age.diamondVeins + age.diamondClouds > 0 )
683
                    , age.diamondVeins > 0, diamondDist = "layeredVeins")'>
684
                <Veins name="DiamondVeins" block='oreDiamond' inherits='PresetPipeVeins' seed='0xF186'>
685
                    <Description> Short sparsely filled tubes starting at bedrock. </Description>
686
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
687
                    <WireframeColor>0x40336699</WireframeColor> 
688-
                    <Setting name='MotherlodeFrequency' avg=':= 0.8 * diamondFreq * if(age,age.diamondVeins,1) * _default_'/> 
688+
                    <Setting name='MotherlodeFrequency' avg=':= 0.8 * diamondFreq * if(age,max(age.diamondVeins,1),1) * _default_'/> 
689
                    <Setting name='MotherlodeHeight' avg=':= 3/64 * dimension.groundLevel' range='0'/>
690
                    <Setting name='MotherlodeSize' avg=':= diamondSize * _default_' range=':= diamondSize * _default_'/>
691
                    <Setting name='SegmentRadius' avg=':= diamondSize * _default_' range=':= diamondSize * _default_'/>
692
                    <Setting name='OreDensity' avg=':= 1.0 * _default_'/>
693
                </Veins>
694
                <Veins name="DiamondVeinsLava" block='10' inherits='DiamondVeins' seed='0xF186'>
695
                    <Description> Fills center of each tube with lava, forming "kimberlite pipes" </Description>
696
                    <Setting name='MotherlodeSize' avg=':= 0.5 * _default_'/>
697
                    <Setting name='SegmentRadius' avg=':= 0.5 * _default_'/>
698
                    <Setting name='OreDensity' avg='1' range='0'/>
699
                    <Replaces block='stone'/>
700
                    <Replaces block='dirt'/>
701
                    <Replaces block='gravel'/>
702
                    <Replaces block='oreDiamond'/>
703
                </Veins>
704
            </IfCondition>
705
                
706
            <IfCondition condition=':= if(age
707
                    &amp; (age.diamondClusters + age.diamondVeins + age.diamondClouds > 0 )
708
                    , age.diamondClouds > 0, diamondDist = "strategicClouds")'>
709
                <Cloud name='DiamondCloud' block='oreDiamond' inherits='PresetStrategicCloud'>
710
                    <Description>  Diffuse diamond cloud with no internal density noise. </Description> 
711
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
712
                    <WireframeColor>0x40336699</WireframeColor> 
713-
                    <Setting name='DistributionFrequency' avg=':= 10 * diamondFreq * if(age,age.diamondClouds,1) * _default_'/>
713+
                    <Setting name='DistributionFrequency' avg=':= 10 * diamondFreq * if(age,max(age.diamondClouds,1),1) * _default_'/>
714
                    <Setting name='CloudRadius' avg=':= 0.5 * diamondSize * _default_' range=':= 0.5 * diamondSize * _default_'/>
715
                    <Setting name='CloudThickness' avg=':= 0.2 * diamondSize * _default_' range=':= 0.17 * diamondSize * _default_'/>
716
                    <Setting name='CloudHeight' avg=':= 14/64 * dimension.groundLevel' range=':= 5/64 * dimension.groundLevel'/>
717
                    <Setting name='OreRadiusMult' avg='1' range='0.2'/>
718
                    <Setting name='OreDensity' avg=':= 0.4 * _default_'/>                
719
                    <Setting name='OreVolumeNoiseCutoff' avg='0'/>   
720
                </Cloud>
721
            </IfCondition>
722
        
723
        </ConfigSection>           
724
        
725
        <!--***************   Lapis Lazuli   *******************-->
726
        <ConfigSection> 
727
        
728
            <IfCondition condition=':= if(age
729
                    &amp; (age.lapisClusters + age.lapisVeins + age.lapisClouds > 0 )
730
                    , age.lapisClusters > 0, lapisDist = "vanillaStdGen")'>
731
                <StandardGen name='LapisLazuliStandard' block='oreLapis' inherits='PresetStandardGen'> 
732
                    <Description> Equivalent to vanilla minecraft lapis lazuli distribution </Description>
733
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
734
                    <WireframeColor>0x40000055</WireframeColor> 
735
                    <Setting name='Size' avg=':= 6/8 * lapisSize * _default_'/>
736-
                    <Setting name='Frequency' avg=':= 0.05 * lapisFreq * if(age,age.lapisClusters,1) * _default_'/>
736+
                    <Setting name='Frequency' avg=':= 0.05 * lapisFreq * if(age,max(age.lapisClusters,1),1) * _default_'/>
737
                    <Setting name='Height' avg=':= 16/64 * dimension.groundLevel' range=':= 16/64 * dimension.groundLevel' type='normal'/>
738
                </StandardGen>
739
            </IfCondition>
740
                
741
            <IfCondition condition=':= if(age
742
                    &amp; (age.lapisClusters + age.lapisVeins + age.lapisClouds > 0 ) 
743
                    , age.lapisVeins > 0, lapisDist = "layeredVeins")'>
744
                <Veins name='LapisLazuliVeins' block='oreLapis' inherits='PresetVerticalVeins'>         
745
                    <Description> 
746
                        Lapis Lazuli spawns in isolated veins that run vertically upward, much like redstone.  However,
747
                        lapis veins are too deep to break the suface except occassionally under oceans.
748
                    </Description> 
749
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
750
                    <WireframeColor>0x40000055</WireframeColor> 
751-
                    <Setting name='MotherlodeFrequency' avg=':= 0.4 * lapisFreq * if(age,age.lapisVeins,1) * _default_'/>
751+
                    <Setting name='MotherlodeFrequency' avg=':= 0.4 * lapisFreq * if(age,max(age.lapisVeins,1),1) * _default_'/>
752
                    <Setting name='MotherlodeHeight' avg=':= 8/64 * dimension.groundLevel' range='4'/>
753
                    <Setting name='BranchLength' avg=':= 36/64 * dimension.groundLevel' range='12' type='normal'/>
754
                    <Setting name='BranchInclination' avg=':= -_default_' range=':=_default_'/>     
755
                    <Setting name='SegmentRadius' avg=':= lapisSize * _default_' range=':= lapisSize * _default_'/>          
756
                </Veins> 
757
                <Veins name='LapisLazuliVeinsOcean' inherits='LapisLazuliVeins'>
758
                    <Description> This roughly triples the chance of finding lapis lazuli under oceans. </Description> 
759
                    <Setting name='MotherlodeFrequency' avg=':= 2 * _default_'/>
760
                    <Replaces block='stone'/>
761
                    <Replaces block='dirt'/> 
762
                    <Replaces block='sand'/>
763
                    <Replaces block='clay'/>  <!-- BUG FIX! Clay was not replaced on the ocean bottom -->
764
                    <Biome name='Ocean'/> 
765
                    <Biome name='Frozen\s*Ocean'/>      
766
                </Veins>
767
            </IfCondition>
768
                
769
            <IfCondition condition=':= if(age
770
                    &amp; (age.lapisClusters + age.lapisVeins + age.lapisClouds > 0 ) 
771
                    , age.lapisClouds > 0, lapisDist = "strategicClouds")'>
772
                <Cloud name='LapisLazuliCloud' block='oreLapis' inherits='PresetStrategicCloud'>
773
                    <Description>  Diffuse lapis lazuli cloud surrounded by single-block "hint" veins, found under oceans </Description> 
774
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
775
                    <WireframeColor>0x40000055</WireframeColor> 
776-
                    <Setting name='DistributionFrequency' avg=':= 2.5 * lapisFreq * if(age,age.lapisClouds,1) * _default_'/>
776+
                    <Setting name='DistributionFrequency' avg=':= 2.5 * lapisFreq * if(age,max(age.lapisClouds,1),1) * _default_'/>
777
                    <Setting name='CloudRadius' avg=':= 0.65 * lapisSize * _default_' range=':= 0.5 * lapisSize * _default_'/>
778
                    <Setting name='CloudThickness' avg=':= 0.7 * lapisSize * _default_' range=':= 0.7 * lapisSize * _default_'/> 
779
                    <Replaces block='stone'/> <!-- BUG FIX! Replaces were missing from the ocean clouds -->
780
                    <Replaces block='dirt'/> 
781
                    <Replaces block='sand'/>
782
                    <Replaces block='clay'/>  <!-- BUG FIX! Clay was not replaced on the ocean bottom -->
783
                    <Biome name='Ocean'/> 
784
                    <Biome name='Frozen\s*Ocean'/>   
785
                    <Veins name='LapisLazuliHintVeins' block='oreLapis' inherits='PresetHintVeins'>
786
                        <DrawWireframe>:=drawWireframes</DrawWireframe>
787
                        <WireframeColor>0x40000055</WireframeColor>
788
                        <Setting name='MotherlodeFrequency' avg=':= 0.7 * _default_' range=':= _default_'/>
789
                        <Setting name='MotherlodeRangeLimit' avg=':= 0.65 * lapisSize * _default_' range=':= 0.65 * lapisSize * _default_'/>                  
790
                    </Veins>                    
791
                </Cloud>
792
            </IfCondition>
793
        
794
        </ConfigSection>           
795
        
796
        <!--*****************   Emerald   **********************-->
797
        <ConfigSection>
798
799
            <IfCondition condition=':= if(age
800
                    &amp; (age.emeraldClusters + age.emeraldVeins + age.emeraldClouds > 0 ) 
801
                    , age.emeraldClusters > 0, emeraldDist = "vanillaStdGen")'>
802
                <StandardGen name='EmeraldStandard' block='oreEmerald' inherits='PresetStandardGen'> 
803
                    <Description> Equivalent to vanilla minecraft diamond distribution </Description>
804
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
805
                    <WireframeColor>0x40339966</WireframeColor> 
806
                    <Setting name='Size' avg=':= 2/8 * emeraldSize * _default_'/>
807-
                    <Setting name='Frequency' avg=':= 6/20 * emeraldFreq * if(age,age.emeraldClusters,1) * _default_' 
807+
                    <Setting name='Frequency' avg=':= 6/20 * emeraldFreq * if(age,max(age.emeraldClusters,1),1) * _default_' 
808-
                                              range=':= 2 * emeraldFreq * if(age,age.emeraldClusters,1)'/>
808+
                                              range=':= 2 * emeraldFreq * if(age,max(age.emeraldClusters,1),1)'/>
809
                    <Setting name='Height' avg=':= 18/64 * dimension.groundLevel' range=':= 14/64 * dimension.groundLevel'/>
810
                    <Biome name='Extreme\s*Hills'/>
811
                    <Biome name='Extreme\s*Hills\s*Edge'/>
812
                    <Biome name='Green\s*Hills'/> <Comment> ExtraBiomesXL </Comment>
813
                </StandardGen>   
814
            </IfCondition>         
815
                
816
            <IfCondition condition=':= if(age
817
                    &amp; (age.emeraldClusters + age.emeraldVeins + age.emeraldClouds > 0 )
818
                    , age.emeraldVeins > 0, emeraldDist = "layeredVeins")'>
819
                <Veins name="EmeraldVeins" block='oreEmerald' inherits='PresetPipeVeins' seed='0x3966'>
820
                    <Description> Short sparsely filled tubes.  5x more common in Extreme Hills. </Description>
821
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
822
                    <WireframeColor>0x40339966</WireframeColor>
823-
                    <Setting name='MotherlodeFrequency' avg=':= 0.9 * emeraldFreq * if(age,age.emeraldVeins,1) * _default_'/> 
823+
                    <Setting name='MotherlodeFrequency' avg=':= 0.9 * emeraldFreq * if(age,max(age.emeraldVeins,1),1) * _default_'/> 
824
                    <Setting name='MotherlodeHeight' avg=':= 10/64 * dimension.groundLevel' range=':= 4/64 * dimension.groundLevel'/>
825
                    <Setting name='MotherlodeSize' avg=':= 0.85 * emeraldSize * _default_' range=':= 0.7 * emeraldSize * _default_'/>
826
                    <Setting name='BranchInclination' avg='0.55' range='0.7' type='normal'/>
827
                    <Setting name='SegmentRadius' avg=':= 0.85 * emeraldSize * _default_' range=':= 0.7 * emeraldSize * _default_'/>
828
                    <Setting name='OreDensity' avg=':= 1.2 * _default_'/>
829
                    <Biome name='.*' weight='0.20'/>
830
                    <Biome name='Extreme\s*Hills'/>
831
                    <Biome name='Extreme\s*Hills\s*Edge'/>
832
                    <Biome name='Green\s*Hills'/> <Comment> ExtraBiomesXL </Comment>
833
                </Veins>
834
                <Veins name="EmeraldVeinsSilverfish" block='monsterStoneEgg' inherits='EmeraldVeins' seed='0x3966'>
835
                    <Description> 
836
                        Fill center of tubes with silverfish spawners. 
837
                        Credit: based on novel examples by AnonymousViking from the MC forums.
838
                    </Description>
839
                    <Setting name='MotherlodeSize' avg='0.51' range='0.1'/>
840
                    <Setting name='SegmentRadius' avg='0.51' range='0.1'/>
841
                    <Setting name='OreDensity' avg='1' range='0'/>
842
                    <Replaces block='stone'/>
843
                    <Replaces block='oreEmerald'/>
844
                </Veins>
845
            </IfCondition>
846
                
847
            <IfCondition condition=':= if(age
848
                    &amp; (age.emeraldClusters + age.emeraldVeins + age.emeraldClouds > 0 )
849
                    , age.emeraldClouds > 0, emeraldDist = "strategicClouds")'>
850
                <Cloud name='EmeraldCloud' block='oreEmerald' inherits='PresetStrategicCloud'>
851
                    <Description>  
852
                        Diffuse emerald cloud with no internal density noise, found in extreme hills.
853
                    </Description> 
854
                    <DrawWireframe>:=drawWireframes</DrawWireframe>
855
                    <WireframeColor>0x40339966</WireframeColor>                
856-
                    <Setting name='DistributionFrequency' avg=':= 45 * emeraldFreq * if(age,age.emeraldClouds,1) * _default_'/>
856+
                    <Setting name='DistributionFrequency' avg=':= 45 * emeraldFreq * if(age,max(age.emeraldClouds,1),1) * _default_'/>
857
                    <Setting name='CloudRadius' avg=':= 0.4 * emeraldSize * _default_' range=':= 0.4 * emeraldSize * _default_'/>
858
                    <Setting name='CloudThickness' avg=':= 0.2 * emeraldSize * _default_' range=':= 0.17 * emeraldSize * _default_'/>
859
                    <Setting name='CloudHeight' avg=':= 10/64 * dimension.groundLevel' range=':= 5/64 * dimension.groundLevel'/>
860
                    <Setting name='OreRadiusMult' avg='1' range='0.2'/> 
861
                    <Setting name='OreDensity' avg=':= 0.4 * _default_'/> 
862
                    <Setting name='OreVolumeNoiseCutoff' avg='0'/>   
863
                    <Biome name='Extreme\s*Hills'/>
864
                    <Biome name='Extreme\s*Hills\s*Edge'/>
865
                    <Biome name='Green\s*Hills'/> <Comment> ExtraBiomesXL </Comment>
866
                </Cloud>
867
            </IfCondition>
868
            
869
        </ConfigSection>
870
        
871
    </IfCondition>
872
    
873
</ConfigSection>