<?xml version="1.0" encoding="utf-8"?>
<worldGeneration version="3"
				 xmlns="http://warpdrive.lemadec.org"
				 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
				 xsi:schemaLocation="http://warpdrive.lemadec.org WarpDrive.xsd"
				 mods="undergroundbiomes,gregtech">

	<for variable="type" in="igneous,metamorphic,sedimentary">
		<for variable="metadata" from="0" to="7">
			<!-- note: we can't dynamically import from a FillerSet, so we have explicitly declare 1 filler set per GTCEu vein -->
			
			<!-- apatite vein: density 0.25 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="apatite-%type%@%metadata%" weight="40">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_apatite_0"               metadata="%metadata%" ratio="0.1750" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_tricalcium_phosphate_0"  metadata="%metadata%" ratio="0.0625" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_pyrochlore_0"            metadata="%metadata%" ratio="0.0125" />
			</fillerSet>
			
			<!-- cassiterite vein: density 0.2 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="cassiterite-%type%@%metadata%" weight="50">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_tin_0"                   metadata="%metadata%" ratio="0.1500" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_cassiterite_0"           metadata="%metadata%" ratio="0.0500" />
			</fillerSet>
			
			<!-- coal vein: density 0.25 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="coal-%type%@%metadata%" weight="80">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_coal_0"                  metadata="%metadata%" ratio="0.2500" />
			</fillerSet>
			
			<!-- copper_tin vein: density 0.2 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="copper_tin-%type%@%metadata%" weight="80">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_chalcopyrite_0"          metadata="%metadata%" ratio="0.0700" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_zeolite_0"               metadata="%metadata%" ratio="0.0700" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_cassiterite_0"           metadata="%metadata%" ratio="0.0500" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_realgar_0"               metadata="%metadata%" ratio="0.0100" />
			</fillerSet>
			
			<!-- copper vein: density 0.2 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="copper-%type%@%metadata%" weight="80">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_chalcopyrite_0"          metadata="%metadata%" ratio="0.0700" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_iron_0"                  metadata="%metadata%" ratio="0.0700" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_pyrite_0"                metadata="%metadata%" ratio="0.0500" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_copper_0"                metadata="%metadata%" ratio="0.0100" />
			</fillerSet>
			
			<!-- diamond vein: density 0.25 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="diamond-%type%@%metadata%" weight="40">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_graphite_0"              metadata="%metadata%" ratio="0.1750" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_diamond_0"               metadata="%metadata%" ratio="0.0625" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_coal_0"                  metadata="%metadata%" ratio="0.0125" />
			</fillerSet>
			
			<!-- galena vein: density 0.25 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="galena-%type%@%metadata%" weight="40">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_galena_0"                metadata="%metadata%" ratio="0.1750" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_silver_0"                metadata="%metadata%" ratio="0.0625" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_lead_0"                  metadata="%metadata%" ratio="0.0125" />
			</fillerSet>
			
			<!-- garnet_tin vein: density 0.2 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="garnet_tin-%type%@%metadata%" weight="80">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_cassiterite_sand_0"      metadata="%metadata%" ratio="0.0700" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_garnet_sand_0"           metadata="%metadata%" ratio="0.0700" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_asbestos_0"              metadata="%metadata%" ratio="0.0500" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_diatomite_0"             metadata="%metadata%" ratio="0.0100" />
			</fillerSet>
			
			<!-- garnet vein: density 0.25 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="garnet-%type%@%metadata%" weight="10">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_garnet_red_0"            metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_garnet_yellow_0"         metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_amethyst_0"              metadata="%metadata%" ratio="0.0625" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_opal_0"                  metadata="%metadata%" ratio="0.0125" />
			</fillerSet>
			
			<!-- iron vein: density 0.2 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="iron-%type%@%metadata%" weight="120">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_brown_limonite_0"        metadata="%metadata%" ratio="0.0700" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_yellow_limonite_0"       metadata="%metadata%" ratio="0.0700" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_banded_iron_0"           metadata="%metadata%" ratio="0.0500" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_malachite_0"             metadata="%metadata%" ratio="0.0100" />
			</fillerSet>
			
			<!-- lapis vein: density 0.25 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="lapis-%type%@%metadata%" weight="40">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_lazurite_0"              metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_sodalite_0"              metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_lapis_0"                 metadata="%metadata%" ratio="0.0625" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_calcite_0"               metadata="%metadata%" ratio="0.0125" />
			</fillerSet>
			
			<!-- lubricant vein: density 0.25 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="lubricant-%type%@%metadata%" weight="40">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_soapstone_0"             metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_talc_0"                  metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_glauconite_sand_0"       metadata="%metadata%" ratio="0.0625" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_pentlandite_0"           metadata="%metadata%" ratio="0.0125" />
			</fillerSet>
			
			<!-- magnetite vein: density 0.15 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="magnetite-%type%@%metadata%" weight="80">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_magnetite_0"             metadata="%metadata%" ratio="0.1050" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_vanadium_magnetite_0"    metadata="%metadata%" ratio="0.0375" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_gold_0"                  metadata="%metadata%" ratio="0.0075" />
			</fillerSet>
			
			<!-- manganese vein: density 0.25 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="manganese-%type%@%metadata%" weight="20">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_grossular_0"             metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_spessartine_0"           metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_pyrolusite_0"            metadata="%metadata%" ratio="0.0625" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_tantalite_0"             metadata="%metadata%" ratio="0.0125" />
			</fillerSet>
			
			<!-- mica vein: density 0.25 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="mica-%type%@%metadata%" weight="20">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_kyanite_0"               metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_mica_0"                  metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_bauxite_0"               metadata="%metadata%" ratio="0.0625" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_pollucite_0"             metadata="%metadata%" ratio="0.0125" />
			</fillerSet>
			
			<!-- mineral_sand vein: density 0.2 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="mineral_sand-%type%@%metadata%" weight="80">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_basaltic_mineral_sand_0" metadata="%metadata%" ratio="0.0700" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_granitic_mineral_sand_0" metadata="%metadata%" ratio="0.0700" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_fullers_earth_0"         metadata="%metadata%" ratio="0.0500" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_gypsum_0"                metadata="%metadata%" ratio="0.0100" />
			</fillerSet>
			
			<!-- nickel vein: density 0.25 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="nickel-%type%@%metadata%" weight="40">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_garnierite_0"            metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_nickel_0"                metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_cobaltite_0"             metadata="%metadata%" ratio="0.0625" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_pentlandite_0"           metadata="%metadata%" ratio="0.0125" />
			</fillerSet>
			
			<!-- oilsands vein: density 0.3 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="oilsands-%type%@%metadata%" weight="40">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_oilsands_0"              metadata="%metadata%" ratio="0.3000" />
			</fillerSet>
			
			<!-- olivine vein: density 0.25 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="olivine-%type%@%metadata%" weight="20">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_bentonite_0"             metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_magnesite_0"             metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_olivine_0"               metadata="%metadata%" ratio="0.0625" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_glauconite_sand_0"       metadata="%metadata%" ratio="0.0125" />
			</fillerSet>
			
			<!-- redstone vein: density 0.2 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="redstone-%type%@%metadata%" weight="60">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_redstone_0"              metadata="%metadata%" ratio="0.1400" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_ruby_0"                  metadata="%metadata%" ratio="0.0500" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_cinnabar_0"              metadata="%metadata%" ratio="0.0100" />
			</fillerSet>
			
			<!-- salts vein: density 0.2 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="salts-%type%@%metadata%" weight="50">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_rock_salt_0"             metadata="%metadata%" ratio="0.0700" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_salt_0"                  metadata="%metadata%" ratio="0.0700" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_lepidolite_0"            metadata="%metadata%" ratio="0.0500" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_spodumene_0"             metadata="%metadata%" ratio="0.0100" />
			</fillerSet>
			
			<!-- sapphire vein: density 0.25 * {0.35 0.35 0.25 0.05} -->
			<fillerSet group="overworld_common" name="sapphire-%type%@%metadata%" weight="60">
				<filler block="undergroundbiomes:%type%_stone"                                      metadata="%metadata%" weight="1" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_almandine_0"             metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_pyrope_0"                metadata="%metadata%" ratio="0.0875" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_sapphire_0"              metadata="%metadata%" ratio="0.0625" />
				<filler block="undergroundbiomes:%type%_stone_gregtech_ore_green_sapphire_0"        metadata="%metadata%" ratio="0.0125" />
			</fillerSet>
			
			<!-- assorted overworld surface blocks -->
			<fillerSet group="overworld_surface" name="%type%@%metadata%" weight="5">
				<filler block="undergroundbiomes:%type%_stone" weight="100" />
			</fillerSet>
			<fillerSet group="overworld_surface" name="%type%@%metadata%-standstone" weight="5">
				<filler block="undergroundbiomes:%type%_sandstone" metadata="%metadata%" weight="100" />
			</fillerSet>
			<fillerSet group="overworld_surface" name="%type%@%metadata%-clay" weight="5">
				<filler block="undergroundbiomes:%type%_clay"      metadata="%metadata%" weight="100" />
			</fillerSet>
		</for>
	</for>

    <!-- corrupted versions (non-cobblestone) -->
    <for variable="type" in="igneous,metamorphic,sedimentary">
        <for variable="metadata" from="0" to="7">
			<for variable="vein" in="apatite,cassiterite,coal,copper_tin,copper,diamond,galena,garnet_tin,garnet,iron,lapis,lubricant,magnetite,manganese,mica,mineral_sand,nickel,oilsands,olivine,redstone,salts,sapphire">
				
				<!-- common overworld ores with various base blocks -->
				<fillerSet group="overworld_common" name="%vein%-%type%@%metadata%-standstone" weight="5">
					<import group="overworld_common" name="%vein%-%type%@%metadata%" /><!-- import the smooth version -->
					<filler block="undergroundbiomes:%type%_sandstone" metadata="%metadata%" weight="100" />
					<filler block="undergroundbiomes:%type%_clay"      metadata="%metadata%" weight="100" />
				</fillerSet>
			</for>
        </for>
    </for>
	
    <!-- corrupted versions (no sedimentary cobblestone) -->
    <for variable="type" in="igneous,metamorphic">
        <for variable="metadata" from="0" to="7">
			<for variable="vein" in="apatite,cassiterite,coal,copper_tin,copper,diamond,galena,garnet_tin,garnet,iron,lapis,lubricant,magnetite,manganese,mica,mineral_sand,nickel,oilsands,olivine,redstone,salts,sapphire">
				
				<!-- common overworld ores with various base blocks -->
				<fillerSet group="overworld_common" name="%vein%-%type%@%metadata%-cobbleLight" weight="2">
					<import group="overworld_common" name="%vein%-%type%@%metadata%" /><!-- import the smooth version -->
					<filler block="undergroundbiomes:%type%_cobble"    metadata="%metadata%" weight="2" />
				</fillerSet>
				<fillerSet group="overworld_common" name="%vein%-%type%@%metadata%-cobbleHeavy" weight="2">
					<import group="overworld_common" name="%vein%-%type%@%metadata%" /><!-- import the smooth version -->
					<filler block="undergroundbiomes:%type%_cobble"    metadata="%metadata%" weight="10" />
				</fillerSet>
				
				<!-- uncommon overworld veins are just a flat distribution of common veins -->
				<fillerSet group="overworld_uncommon" name="%vein%-%type%@%metadata%" weight="10">
					<import group="overworld_common" name="%vein%-%type%@%metadata%" /><!-- import the common version -->
				</fillerSet>
			</for>
			
			<!-- assorted overworld surface blocks -->
			<fillerSet group="overworld_surface" name="%type%@%metadata%-cobble" weight="2">
				<filler block="undergroundbiomes:%type%_cobble" metadata="%metadata%" weight="100" />
			</fillerSet>
        </for>
    </for>
	
</worldGeneration>