<?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">

	<structure group="star" name="red_dwarf" ratio="0.2">
		<shell name="core" minThickness="40" maxThickness="50"><!-- legacy radius was 42 -->
			<filler weight="1" block="minecraft:redstone_block" />
		</shell>
		<shell name="low_altitude" minThickness="4" maxThickness="6">
			<filler weight="1" block="warpdrive:gas" metadata="1" />
		</shell>
		<shell name="atmosphere" minThickness="2" maxThickness="2">
			<filler weight="1" block="warpdrive:gas" metadata="1" />
		</shell>
	</structure>

	<structure group="star" name="orange_dwarf" weight="1">
		<shell name="core" minThickness="1" maxThickness="1"><!-- mark the center -->
			<filler weight="1" block="minecraft:obsidian" />
		</shell>
		<shell name="mantle" minThickness="35" maxThickness="45"><!-- add bedrock to prevent warping inside -->
			<filler ratio="0.005" block="minecraft:bedrock" />
			<filler ratio="0.005" block="minecraft:glowstone" />
			<filler weight="1" block="minecraft:air" />
		</shell>
		<shell name="crust1" minThickness="1" maxThickness="1"><!-- add light source and solid block to protect inner side -->
			<filler weight="1" block="minecraft:glowstone" />
		</shell>
		<shell name="crust2" minThickness="2" maxThickness="2">
			<filler weight="1" block="minecraft:lava" />
		</shell>
		<shell name="surface" minThickness="1" maxThickness="1"><!-- add stained glass for color and holding fluid in place -->
			<filler weight="1" block="minecraft:stained_glass" metadata="14" />
		</shell>
	</structure>

	<structure group="star" name="yellow_giant" weight="1">
		<shell name="core" minThickness="1" maxThickness="1"><!-- mark the center -->
			<filler weight="1" block="minecraft:obsidian" />
		</shell>
		<shell name="mantle" minThickness="55" maxThickness="70"><!-- add bedrock to prevent warping inside -->
			<filler ratio="0.005" block="minecraft:bedrock" />
			<filler ratio="0.005" block="minecraft:glowstone" />
			<filler weight="1" block="minecraft:air" />
		</shell>
		<shell name="crust" minThickness="2" maxThickness="2"><!-- add light source and solid block to protect inner side -->
			<filler weight="1" block="minecraft:glowstone" />
		</shell>
		<shell name="surface" minThickness="1" maxThickness="1"><!-- add stained glass for color -->
			<filler weight="1" block="minecraft:stained_glass" metadata="1" />
		</shell>
		<shell name="low_altitude" minThickness="4" maxThickness="6">
			<filler weight="1" block="minecraft:air" />
		</shell>
		<shell name="atmosphere" minThickness="1" maxThickness="1"><!-- add stained glass for color -->
			<filler weight="1" block="minecraft:stained_glass" metadata="4" />
		</shell>
	</structure>

	<structure group="star" name="yellow_supergiant" ratio="0.2">
		<shell name="core" minThickness="1" maxThickness="1"><!-- mark the center -->
			<filler weight="1" block="minecraft:obsidian" />
		</shell>
		<shell name="mantle" minThickness="70" maxThickness="90"><!-- add bedrock to prevent warping inside -->
			<filler ratio="0.01" block="minecraft:bedrock" />
			<filler weight="1" block="minecraft:air" />
		</shell>
		<shell name="crust" minThickness="2" maxThickness="2"><!-- add light source and solid block to protect inner side -->
			<filler weight="1" block="minecraft:glowstone" />
		</shell>
		<shell name="surface" minThickness="1" maxThickness="1"><!-- add stained glass for color -->
			<filler weight="1" block="minecraft:stained_glass" metadata="1" />
		</shell>
		<shell name="low_altitude" minThickness="4" maxThickness="6">
			<filler weight="1" block="minecraft:air" />
		</shell>
		<shell name="atmosphere" minThickness="1" maxThickness="1"><!-- add stained glass for color -->
			<filler weight="1" block="warpdrive:gas" metadata="3" />
		</shell>
	</structure>


	<!-- 
	<structure group="moon" name="test" weight="100">
		<shell name="core" minThickness="1" maxThickness="1">
			<filler block="minecraft:bedrock" ratio=".001" />
		</shell>
		<shell name="mantle" minThickness="1" maxThickness="1">
			<filler block="minecraft:glass" ratio=".001" />
		</shell>
		<shell name="crust" minThickness="1" maxThickness="1">
			<filler block="minecraft:stained_glass" metadata="5" ratio=".001" />
		</shell>
		<shell name="surface" minThickness="1" maxThickness="1">
			<filler block="minecraft:stained_glass" metadata="15" />
		</shell>
	</structure>
	-->

	<structure group="moon" name="overworld.base" weight="100">
		<shell name="core" minThickness="4" maxThickness="15">
			<import group="moon.core" />
		</shell>
		<shell name="mantle" minThickness="3" maxThickness="15">
			<import group="overworld_uncommon" />
		</shell>
		<shell name="flow" minThickness="0" maxThickness="2">
			<import group="moon.flow" />
		</shell>
		<shell name="crust" minThickness="2" maxThickness="10">
			<import group="overworld_common" />
		</shell>
		<shell name="surface" minThickness="1" maxThickness="3">
			<import group="overworld_surface" />
		</shell>
	</structure>

	<structure group="moon" name="overworld.rare" weight="20">
		<shell name="uranium" minThickness="0" maxThickness="2" mods="ic2">
			<filler block="ic2:resource" metadata="10" ratio=".1" /><!-- Uranium block -->
		</shell>
		<shell name="core" minThickness="1" maxThickness="10">
			<import group="moon.core" />
		</shell>
		<shell name="mantle" minThickness="3" maxThickness="15">
			<import group="overworld_rare" />
		</shell>
		<shell name="flow" minThickness="1" maxThickness="3">
			<import group="moon.flow" />
		</shell>
		<shell name="crust" minThickness="2" maxThickness="10">
			<import group="overworld_common" />
		</shell>
		<shell name="surface" minThickness="1" maxThickness="3">
			<import group="overworld_surface" />
		</shell>
	</structure>

	<structure group="moon" name="overworld.empty" weight="20">
		<shell name="core" minThickness="1" maxThickness="1">
			<filler block="minecraft:obsidian" weight="100" />
		</shell>
		<shell name="empty" minThickness="6" maxThickness="29">
			<import group="gas" />
		</shell>
		<shell name="innerCrust" minThickness="1" maxThickness="1">
			<filler block="minecraft:obsidian" weight="100" />
			<filler block="minecraft:glowstone" ratio=".001" />
		</shell>
		<shell name="mantle" minThickness="0" maxThickness="2">
			<filler block="minecraft:obsidian" weight="100" />
		</shell>
		<shell name="crust" minThickness="1" maxThickness="5">
			<import group="overworld_common" />
		</shell>
		<shell name="surface" minThickness="2" maxThickness="3">
			<import group="overworld_surface" />
		</shell>
	</structure>

	<structure group="moon" name="overworld.ship" weight="10">
		<generate group="smallship" />
		<shell name="core" minThickness="5" maxThickness="16">
			<import group="gas" />
		</shell>
		<shell name="mantle" minThickness="3" maxThickness="17">
			<import group="overworld_uncommon" />
		</shell>
		<shell name="flow" minThickness="0" maxThickness="2">
			<filler block="minecraft:obsidian"                  weight="100" mods="!appliedenergistics2,!gregtech" />
			<filler block="gregtech:stone_smooth" metadata="0"  weight="100" mods="gregtech" /><!-- Black granite -->
			<filler block="appliedenergistics2:sky_stone_block" weight="100" mods="appliedenergistics2,!gregtech" /><!-- Sky stone block -->
		</shell>
		<shell name="crust" minThickness="2" maxThickness="10">
			<import group="overworld_common" />
		</shell>
		<shell name="surface" minThickness="1" maxThickness="3">
			<import group="overworld_surface" />
		</shell>
	</structure>

	<structure group="moon" name="overworld.corrupted" weight="20">
		<shell name="uranium" minThickness="0" maxThickness="1" mods="ic2">
			<filler block="ic2:resource" metadata="10" ratio=".1" /><!-- Uranium block -->
		</shell>
		<shell name="core" minThickness="5" maxThickness="16">
			<import group="overworld_rare" />
		</shell>
		<shell name="mantle" minThickness="6" maxThickness="20">
			<import group="overworld_uncommon" />
			<filler block="minecraft:gravel" ratio=".1" />
			<filler block="minecraft:lava" ratio=".05" />
		</shell>
		<shell name="crust" minThickness="10" maxThickness="20">
			<import group="overworld_common" />
			<filler block="minecraft:sand" ratio=".1" />
			<filler block="minecraft:air" ratio=".2" />
		</shell>
		<shell name="surface" minThickness="2" maxThickness="4">
			<import group="overworld_surface" />
			<filler block="minecraft:air" ratio=".35" />
		</shell>
	</structure>

	<structure group="moon" name="nether" ratio="0.1">
		<shell name="uranium" minThickness="0" maxThickness="2" mods="ic2">
			<filler block="ic2:resource" metadata="10" ratio=".1" /><!-- Uranium block -->
		</shell>
		<shell name="core" minThickness="1" maxThickness="5">
			<filler block="minecraft:air" weight="1" />
		</shell>
		<shell name="coreShell" minThickness="1" maxThickness="1">
			<filler block="minecraft:obsidian" weight="100" />
		</shell>
		<shell name="mantle" minThickness="6" maxThickness="20">
			<import group="nether" />
			<filler block="gregtech:stone_smooth" metadata="1"  ratio=".2" mods="gregtech" /><!-- Red granite -->
			<filler block="minecraft:sand" metadata="1"         ratio=".2" mods="!natura" />
			<filler block="natura:nether_tainted_soil"          ratio=".2" mods="natura" />
		</shell>
		<shell name="crust" minThickness="10" maxThickness="20">
			<import group="nether" />
			<filler block="gregtech:stone_smooth" metadata="1"  ratio=".02" mods="gregtech" /><!-- Red granite -->
			<filler block="minecraft:nether_brick"              ratio=".2" />
		</shell>
		<shell name="surface" minThickness="2" maxThickness="4">
			<import group="nether_surface" />
		</shell>
	</structure>

	<structure group="moon" name="nether.corrupted" ratio="0.1">
		<shell name="core" minThickness="1" maxThickness="5">
			<filler block="minecraft:air" weight="1" />
		</shell>
		<shell name="coreShell" minThickness="1" maxThickness="1">
			<filler block="minecraft:obsidian"                  weight="100" mods="!appliedenergistics2,!gregtech" />
			<filler block="gregtech:stone_smooth" metadata="0"  weight="100" mods="gregtech" /><!-- Black granite -->
			<filler block="appliedenergistics2:sky_stone_block" weight="100" mods="appliedenergistics2,!gregtech" /><!-- Sky stone block -->
		</shell>
		<shell name="mantle" minThickness="6" maxThickness="12">
			<import group="nether" />
			<filler block="gregtech:stone_smooth" metadata="1"  ratio=".2" mods="gregtech" /><!-- Red granite -->
			<filler block="minecraft:sand" metadata="1"         ratio=".2" mods="!natura" />
			<filler block="natura:nether_tainted_soil"          ratio=".2" mods="natura" />
		</shell>
		<shell name="crust" minThickness="8" maxThickness="16">
			<import group="nether" />
			<filler block="gregtech:stone_smooth" metadata="1"  ratio=".02" mods="gregtech" /><!-- Red granite -->
			<filler block="minecraft:nether_brick"              ratio=".2" />
			<filler block="minecraft:air"                       ratio=".2" />
		</shell>
		<shell name="surface" minThickness="2" maxThickness="4">
			<import group="nether_surface" />
			<filler block="minecraft:air" ratio=".25" />
		</shell>
	</structure>

	<structure group="moon" name="end.hollow" ratio="0.03">
		<shell name="core" minThickness="5" maxThickness="14">
			<filler block="minecraft:air"      weight="100" />
			<filler block="minecraft:obsidian" ratio=".001" />
		</shell>
		<shell name="coreShell" minThickness="1" maxThickness="2">
			<filler block="minecraft:obsidian"                  weight="100" mods="!appliedenergistics2,!gregtech" />
			<filler block="gregtech:stone_smooth" metadata="0"  weight="100" mods="gregtech" /><!-- Black granite -->
			<filler block="appliedenergistics2:sky_stone_block" weight="100" mods="appliedenergistics2,!gregtech" /><!-- Sky stone block -->
		</shell>
		<shell name="mantle" minThickness="10" maxThickness="25">
			<import group="end" />
			<filler block="minecraft:obsidian"                  weight="60" mods="!appliedenergistics2,!gregtech" />
			<filler block="gregtech:stone_smooth" metadata="0"  weight="60" mods="gregtech" /><!-- Black granite -->
			<filler block="appliedenergistics2:sky_stone_block" weight="60" mods="appliedenergistics2,!gregtech" /><!-- Sky stone block -->
		</shell>
		<shell name="surface" minThickness="2" maxThickness="3">
			<import group="end_surface" />
		</shell>
	</structure>

	<structure group="moon" name="end" ratio="0.05">
		<shell name="core" minThickness="5" maxThickness="15">
			<import group="end" />
			<filler block="minecraft:obsidian"                  weight="30" mods="!appliedenergistics2,!gregtech" />
			<filler block="gregtech:stone_smooth" metadata="0"  weight="30" mods="gregtech" /><!-- Black granite -->
			<filler block="appliedenergistics2:sky_stone_block" weight="30" mods="appliedenergistics2,!gregtech" /><!-- Sky stone block -->
			<filler block="warpdrive:iridium_block" weight="1" mods="!netherores" />
		</shell>
		<shell name="mantle" minThickness="10" maxThickness="25">
			<import group="end" />
			<filler block="minecraft:obsidian" weight="60" />
			<filler block="undergroundbiomes:metamorphic_stone" metadata="2" ratio="0.05" mods="undergroundbiomes" /><!-- Marble -->
		</shell>
		<shell name="surface" minThickness="2" maxThickness="3">
			<import group="end_surface" />
		</shell>
	</structure>



<!--
	<structure group="gascloud" name="testCloud" weight="1">
		<metaShell block="minecraft:glowstone" minCount="5" maxCount="15" minRadius="1" relativeRadius="0.5" />
		<shell name="mantle" minThickness="3" maxThickness="3">
			<filler weight="1" block="warpdrive:gas" metadata="3" />
		</shell>
		<shell name="surface" minThickness="3" maxThickness="3">
			<filler weight="1" block="warpdrive:gas" metadata="1" />
		</shell>
	</structure>
-->

	<for variable="metadataGas" in="0,1,2,3,4,5,6,7,8,9,10,11">
		<structure group="gascloud" name="bigCloud_%metadataGas%" weight="1">
			<metaShell block="minecraft:glowstoneOff" minCount="5" maxCount="10" minRadius="5" relativeRadius="0.5" />
			<shell name="mantle" minThickness="5" maxThickness="15">
				<filler weight="1" block="warpdrive:gas" metadata="%metadataGas%" />
			</shell>
		</structure>

		<structure group="gascloud" name="smallCloud_%metadataGas%" weight="1">
			<metaShell block="minecraft:glowstoneOff" minCount="3" maxCount="7" minRadius="3" relativeRadius="0.5" />
			<shell name="mantle" minThickness="2" maxThickness="8">
				<filler weight="1" block="warpdrive:gas" metadata="%metadataGas%" />
			</shell>
		</structure>
	</for>



	<structure group="asteroid" name="common-cluster" weight="100" mods="!gregtech"><!-- Gregtech needs lots of ores, so we disable the small frequent ones -->
		<metaShell block="" minCount="6" maxCount="10" minRadius="4" relativeRadius="0.5" />
		<shell name="mantle" minThickness="2" maxThickness="5">
			<import group="overworld_common" />
		</shell>
	</structure>

	<structure group="asteroid" name="uncommon-medium" weight="100">
		<metaShell block="" minCount="1" maxCount="3" minRadius="2" relativeRadius="0.5" />
		<shell name="mantle" minThickness="2" maxThickness="4">
			<import group="overworld_uncommon" />
		</shell>
	</structure>
	
	<structure group="asteroid" name="common-geode" weight="30">
		<metaShell block="" minCount="5" maxCount="15" minRadius="1" relativeRadius="0.5" />
		<shell name="mantle" minThickness="6" maxThickness="7">
			<import group="overworld_common" />
		</shell>
		<shell name="surface" minThickness="0" maxThickness="1">
			<import group="overworld_surface" />
		</shell>
	</structure>
	
	<structure group="asteroid" name="rare-geode" weight="10">
		<metaShell block="minecraft:diamond_ore" minCount="1" maxCount="2" minRadius="2" relativeRadius="0.5" />
		<shell name="mantle" minThickness="2" maxThickness="4">
			<import group="overworld_rare" />
		</shell>
		<shell name="mantle" minThickness="1" maxThickness="1">
			<import group="overworld_uncommon" />
		</shell>
	</structure>
	
	<structure group="asteroid" name="stone-large" weight="10" mods="!gregtech"><!-- overworld_allOres doesn't apply to Gregtech -->
		<metaShell block="minecraft:diamond_ore" minCount="1" maxCount="2" minRadius="3" relativeRadius="0.8" />
		<shell name="mantle" minThickness="2" maxThickness="6">
			<import group="overworld_allOres" name="stone" />
			<filler weight="10" block="minecraft:stone" />
			<filler weight="5" block="minecraft:cobblestone" />
		</shell>
	</structure>
	
	<structure group="asteroid" name="uncommon-large" weight="10" mods="gregtech">
		<metaShell block="minecraft:diamond_ore" minCount="1" maxCount="2" minRadius="3" relativeRadius="0.8" />
		<shell name="mantle" minThickness="2" maxThickness="6">
			<import group="overworld_uncommon" />
		</shell>
	</structure>
	
	<structure group="asteroid" name="nether-small" ratio="0.04">
		<metaShell block="minecraft:diamond_ore" minCount="1" maxCount="2" minRadius="2" relativeRadius="0.5" />
		<shell name="mantle" minThickness="2" maxThickness="6">
			<import group="nether" />
		</shell>
	</structure>
	
	<structure group="asteroid" name="nether-medium" ratio="0.04" mods="gregtech"><!-- Gregtech needs more nether ores -->
		<metaShell block="" minCount="1" maxCount="2" minRadius="3" relativeRadius="0.8" />
		<shell name="mantle" minThickness="2" maxThickness="6">
			<import group="nether" />
		</shell>
	</structure>
	
	<structure group="asteroid" name="end-small" ratio="0.028">
		<metaShell block="minecraft:diamond_ore" minCount="1" maxCount="2" minRadius="2" relativeRadius="0.5" />
		<shell name="mantle" minThickness="2" maxThickness="6">
			<import group="end" />
		</shell>
	</structure>
	
	<structure group="asteroid" name="end-small" ratio="0.028"><!-- Gregtech needs more end ores -->
		<metaShell block="" minCount="1" maxCount="2" minRadius="3" relativeRadius="0.8" />
		<shell name="mantle" minThickness="2" maxThickness="6">
			<import group="end" />
		</shell>
	</structure>
</worldGeneration>
