<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://enderio.com/recipes" elementFormDefault="unqualified" attributeFormDefault="unqualified"
  xmlns="http://www.w3.org/2001/XMLSchema" xmlns:enderio="http://enderio.com/recipes">
  <element name="recipes">
    <complexType>
      <sequence maxOccurs="unbounded" minOccurs="0">
        <choice maxOccurs="1" minOccurs="1">
          <element name="alias">
            <annotation>
              <documentation>
                Adds an alias into the system. The alias can be used in following elements just like the value itself. Aliases can
                be replaced.
              </documentation>
            </annotation>
            <complexType>
              <sequence>
                <element minOccurs="0" maxOccurs="unbounded" name="config" type="enderio:configComplexType">
                  <annotation>
                    <documentation>
                      Restricts this alias to only be used if the given config value has the given value.
                    </documentation>
                  </annotation>
                </element>
                <element minOccurs="0" maxOccurs="unbounded" name="dependency" type="enderio:dependencyComplexType">
                  <annotation>
                    <documentation>
                      Restricts this alias to only be used if the given elements descriptor can (not) be found in the game. Use this
                      to prevent replacing good aliases with bad ones.
                    </documentation>
                  </annotation>
                </element>
              </sequence>
              <attribute name="name" type="string" use="required">
                <annotation>
                  <documentation>
                    The name of the alias. You can use anything here, but be aware that you share the namespace with all other game
                    elements.
                  </documentation>
                </annotation>
              </attribute>
              <attribute name="item" type="string" use="required">
                <annotation>
                  <documentation>A descriptor naming an item, block, ordict or another alias.</documentation>
                </annotation>
              </attribute>
            </complexType>
          </element>
          <element name="recipe">
            <annotation>
              <documentation>
                A single recipe. It can have any number of crafting or any number of smelting variants (no mixing), but at any time
                only one of them may be active.
              </documentation>
            </annotation>
            <complexType>
              <sequence>
                <element minOccurs="0" maxOccurs="unbounded" name="config" type="enderio:configComplexType">
                  <annotation>
                    <documentation>
                      Restricts this recipe to only be used if the given config value has the given value.
                    </documentation>
                  </annotation>
                </element>
                <element minOccurs="0" maxOccurs="unbounded" name="dependency" type="enderio:dependencyComplexType">
                  <annotation>
                    <documentation>
                      Restricts this recipe to only be used if the given game element can (not) be found in the game.
                    </documentation>
                  </annotation>
                </element>
                <choice minOccurs="1" maxOccurs="1">
                  <element minOccurs="1" maxOccurs="unbounded" name="crafting">
                    <annotation>
                      <documentation>Crafting variants are crafted in a crafting table.</documentation>
                    </annotation>
                    <complexType>
                      <sequence>
                        <element minOccurs="0" maxOccurs="unbounded" name="config" type="enderio:configComplexType">
                          <annotation>
                            <documentation>
                              Restricts this variant to only be used if the given config value has the given value.
                            </documentation>
                          </annotation>
                        </element>
                        <element minOccurs="0" maxOccurs="unbounded" name="dependency" type="enderio:dependencyComplexType">
                          <annotation>
                            <documentation>
                              Restricts this variant to only be used if the given game element can (not) be found in the game.
                            </documentation>
                          </annotation>
                        </element>
                        <choice minOccurs="1" maxOccurs="1">
                          <element minOccurs="1" maxOccurs="1" name="grid">
                            <annotation>
                              <documentation>
                                A grid represents a shaped recipe. All items must be in the exact position they are given here. If
                                the recipe is smaller than 3x3, it may be moved in the grid.
                              </documentation>
                            </annotation>
                            <complexType>
                              <sequence>
                                <element minOccurs="1" maxOccurs="9" name="item">
                                  <annotation>
                                    <documentation>An item to be used for crafting.</documentation>
                                  </annotation>
                                  <complexType>
                                    <attribute use="optional" name="name" type="string" />
                                  </complexType>
                                </element>
                              </sequence>
                              <attribute use="optional" name="size">
                                <annotation>
                                  <documentation>
                                    The size of the grid in the form "width 'x' height". Default is "3x3".
                                  </documentation>
                                </annotation>
                                <simpleType>
                                  <restriction base="string">
                                    <length value="3" />
                                  </restriction>
                                </simpleType>
                              </attribute>
                            </complexType>
                          </element>
                          <element minOccurs="1" maxOccurs="1" name="shapeless">
                            <annotation>
                              <documentation>
                                A shapeless recipe only required the given items to be in the grid, regardless of their position.
                              </documentation>
                            </annotation>
                            <complexType>
                              <sequence>
                                <element minOccurs="1" maxOccurs="9" name="item">
                                  <annotation>
                                    <documentation>An item to be used for crafting.</documentation>
                                  </annotation>
                                  <complexType>
                                    <attribute use="optional" name="name" type="string" />
                                  </complexType>
                                </element>
                              </sequence>
                            </complexType>
                          </element>
                        </choice>
                        <element minOccurs="1" maxOccurs="unbounded" name="output">
                          <annotation>
                            <documentation>The result of the crafting.</documentation>
                          </annotation>
                          <complexType>
                            <sequence>
                              <element minOccurs="0" maxOccurs="unbounded" name="config">
                                <annotation>
                                  <documentation>
                                    Restricts this output to only be used if the given config value has the given value.
                                  </documentation>
                                </annotation>
                                <complexType>
                                  <attribute use="required" name="section" type="string" />
                                  <attribute use="required" name="name" type="string" />
                                  <attribute use="optional" name="value" type="boolean" />
                                </complexType>
                              </element>
                              <element minOccurs="0" maxOccurs="unbounded" name="dependency">
                                <annotation>
                                  <documentation>
                                    Restricts this output to only be used if the given game element can (not) be found in the game.
                                  </documentation>
                                </annotation>
                                <complexType>
                                  <attribute use="required" name="item" type="string" />
                                  <attribute use="optional" name="reverse" type="boolean" />
                                </complexType>
                              </element>
                            </sequence>
                            <attribute use="required" name="name" type="string" />
                            <attribute use="optional" name="amount">
                              <simpleType>
                                <restriction base="int">
                                  <minInclusive value="1" />
                                  <maxInclusive value="64" />
                                </restriction>
                              </simpleType>
                            </attribute>
                          </complexType>
                        </element>
                      </sequence>
                      <attribute use="optional" name="upgrade" type="boolean">
                        <annotation>
                          <documentation>
                            If true, a special recipe class will be used that will copy over all nbt from the first input item of
                            the same type.
                          </documentation>
                        </annotation>
                      </attribute>
                    </complexType>
                  </element>
                  <element minOccurs="1" maxOccurs="unbounded" name="smelting">
                    <annotation>
                      <documentation>Smelting variants are crafted in a furnace (or alloy smelter in furnace mode).</documentation>
                    </annotation>
                    <complexType>
                      <sequence>
                        <element minOccurs="0" maxOccurs="unbounded" name="config" type="enderio:configComplexType">
                          <annotation>
                            <documentation>
                              Restricts this variant to only be used if the given config value has the given value.
                            </documentation>
                          </annotation>
                        </element>
                        <element minOccurs="0" maxOccurs="unbounded" name="dependency" type="enderio:dependencyComplexType">
                          <annotation>
                            <documentation>
                              Restricts this variant to only be used if the given game element can (not) be found in the game.
                            </documentation>
                          </annotation>
                        </element>
                        <element minOccurs="1" maxOccurs="1" name="input">
                          <complexType>
                            <attribute use="required" name="name" type="string" />
                            <attribute name="amount" use="optional">
                              <simpleType>
                                <restriction base="float">
                                  <minExclusive value="0" />
                                </restriction>
                              </simpleType>
                            </attribute>
                          </complexType>
                        </element>
                        <element minOccurs="1" maxOccurs="unbounded" name="output">
                          <annotation>
                            <documentation>The result of the smelting.</documentation>
                          </annotation>
                          <complexType>
                            <sequence>
                              <element minOccurs="0" maxOccurs="unbounded" name="config">
                                <annotation>
                                  <documentation>
                                    Restricts this output to only be used if the given config value has the given value.
                                  </documentation>
                                </annotation>
                                <complexType>
                                  <attribute use="required" name="section" type="string" />
                                  <attribute use="required" name="name" type="string" />
                                  <attribute use="optional" name="value" type="boolean" />
                                </complexType>
                              </element>
                              <element minOccurs="0" maxOccurs="unbounded" name="dependency">
                                <annotation>
                                  <documentation>
                                    Restricts this output to only be used if the given game element can (not) be found in the game.
                                  </documentation>
                                </annotation>
                                <complexType>
                                  <attribute use="required" name="item" type="string" />
                                  <attribute use="optional" name="reverse" type="boolean" />
                                </complexType>
                              </element>
                            </sequence>
                            <attribute use="required" name="name" type="string" />
                            <attribute use="optional" name="amount">
                              <simpleType>
                                <annotation>
                                  <documentation>The number of items to smelt into.</documentation>
                                </annotation>
                                <restriction base="int">
                                  <maxInclusive value="64" />
                                  <minInclusive value="1" />
                                </restriction>
                              </simpleType>
                            </attribute>
                          </complexType>
                        </element>
                      </sequence>
                      <attribute use="optional" name="exp">
                        <annotation>
                          <documentation>
                            The chance to get 1 EXP from the smelting one output item. Note that this is always for one item,
                            regardless of the recipe size. The number must be between 0.0 (for no EXP) and 1.0 for a 100% chance. If
                            this attribute is missing it's value will be taken from already existing smelting recipes that produce
                            this item (really recommended for stuff that already has vanilla smelting recipes). If there's no
                            existing smelting, it will be 0. Please note that items have the possibility to override this value.
                          </documentation>
                        </annotation>
                        <simpleType>
                          <restriction base="float">
                            <minInclusive value="0" />
                            <maxInclusive value="1" />
                          </restriction>
                        </simpleType>
                      </attribute>
                      <attribute name="tinkers" type="boolean" use="optional">
                        <annotation>
                          <documentation>
                            If set to true, the recipe will be registered for the Tinkers' Smeltery. For this to work, the output
                            item must already be registered with Tinkers to smelt into a fluid.
                          </documentation>
                        </annotation>
                      </attribute>
                      <attribute name="vanilla" type="boolean" use="optional">
                        <annotation>
                          <documentation>If set to true, the recipe will be registered for the Vanilla Furnace.</documentation>
                        </annotation>
                      </attribute>
                    </complexType>
                  </element>
                  <element name="casting" minOccurs="1" maxOccurs="unbounded">
                    <annotation>
                      <documentation>Smelting variants are crafted in Tinkers' casting table.</documentation>
                    </annotation>
                    <complexType>
                      <sequence>
                        <element minOccurs="0" maxOccurs="unbounded" name="config" type="enderio:configComplexType">
                          <annotation>
                            <documentation>
                              Restricts this variant to only be used if the given config value has the given value.
                            </documentation>
                          </annotation>
                        </element>
                        <element minOccurs="0" maxOccurs="unbounded" name="dependency" type="enderio:dependencyComplexType">
                          <annotation>
                            <documentation>
                              Restricts this variant to only be used if the given game element can (not) be found in the game.
                            </documentation>
                          </annotation>
                        </element>
                        <element minOccurs="1" maxOccurs="1" name="input">
                          <annotation>
                            <documentation>
                              Items that represent the fluid (type and amount) that needs to be put into the cast.
                            </documentation>
                          </annotation>
                          <complexType>
                            <attribute use="required" name="name" type="string" />
                            <attribute name="amount" use="optional">
                              <annotation>
                                <documentation>
                                  Only valid for Tinkers recipe. Number of input items needed for the output. Note that this is
                                  applied to the amount of fluid, not the number of items to smelt.
                                </documentation>
                              </annotation>
                              <simpleType>
                                <restriction base="float">
                                  <minExclusive value="0" />
                                </restriction>
                              </simpleType>
                            </attribute>
                          </complexType>
                        </element>
                        <element minOccurs="0" maxOccurs="1" name="cast">
                          <annotation>
                            <documentation>The Tinkers cast to use.</documentation>
                          </annotation>
                          <complexType>
                            <attribute use="required" name="name" type="string" />
                            <attribute name="consumed" type="boolean" use="optional" default="false">
                              <annotation>
                                <documentation>Should the cast be consumed?</documentation>
                              </annotation>
                            </attribute>
                          </complexType>
                        </element>
                        <element minOccurs="1" maxOccurs="unbounded" name="output">
                          <annotation>
                            <documentation>The result of the casting process.</documentation>
                          </annotation>
                          <complexType>
                            <attribute use="required" name="name" type="string" />
                          </complexType>
                        </element>
                      </sequence>
                    </complexType>
                  </element>
                  <element name="enchanting" minOccurs="1" maxOccurs="unbounded">
                    <annotation>
                      <documentation>Enchantment recipes used in the Enchanter.</documentation>
                    </annotation>
                    <complexType>
                      <sequence>
                        <element minOccurs="0" maxOccurs="unbounded" name="config" type="enderio:configComplexType">
                          <annotation>
                            <documentation>
                              Restricts this variant to only be used if the given config value has the given value.
                            </documentation>
                          </annotation>
                        </element>
                        <element minOccurs="0" maxOccurs="unbounded" name="dependency" type="enderio:dependencyComplexType">
                          <annotation>
                            <documentation>
                              Restricts this variant to only be used if the given game element can (not) be found in the game.
                            </documentation>
                          </annotation>
                        </element>
                        <element minOccurs="1" maxOccurs="1" name="input">
                          <annotation>
                            <documentation>When this item is used in the Enchanter it will give this recipe.</documentation>
                          </annotation>
                          <complexType>
                            <attribute use="required" name="name" type="string" />
                            <attribute name="amount" use="optional">
                              <annotation>
                                <documentation>
                                  Only valid for Enchanter recipe. Number of input items needed for one level of the enchantment.
                                </documentation>
                              </annotation>
                              <simpleType>
                                <restriction base="int">
                                  <maxInclusive value="64" />
                                  <minInclusive value="1" />
                                </restriction>
                              </simpleType>
                            </attribute>
                            <attribute name="nbt" type="string" use="optional">
                              <annotation>
                                <documentation>
                                  An NBT tag in the same syntax Minecraft uses for recipes, the give command, etc.
                                </documentation>
                              </annotation>
                            </attribute>
                          </complexType>
                        </element>
                        <element minOccurs="1" maxOccurs="1" name="enchantment">
                          <annotation>
                            <documentation>Enchantment to produce.</documentation>
                          </annotation>
                          <complexType>
                            <attribute use="required" name="name" type="string" />
                            <attribute name="costMultiplier" default="1">
                              <annotation>
                                <documentation>
                                  The XP cost of the recipe will be multiplied with this value. Defaults to 1.
                                </documentation>
                              </annotation>
                              <simpleType>
                                <restriction base="double">
                                  <minExclusive value="0" />
                                </restriction>
                              </simpleType>
                            </attribute>
                          </complexType>
                        </element>
                      </sequence>
                    </complexType>
                  </element>
                  <element name="spawning" maxOccurs="unbounded" minOccurs="1">
                    <complexType>
                      <annotation>
                        <documentation>Spawn recipes to be used in the powered spawner.</documentation>
                      </annotation>
                      <sequence>
                        <element minOccurs="0" maxOccurs="unbounded" name="config" type="enderio:configComplexType">
                          <annotation>
                            <documentation>
                              Restricts this variant to only be used if the given config value has the given value.
                            </documentation>
                          </annotation>
                        </element>
                        <element minOccurs="0" maxOccurs="unbounded" name="dependency" type="enderio:dependencyComplexType">
                          <annotation>
                            <documentation>
                              Restricts this variant to only be used if the given game element can (not) be found in the game.
                            </documentation>
                          </annotation>
                        </element>
                        <element minOccurs="1" maxOccurs="unbounded" name="entity">
                          <annotation>
                            <documentation>When this item is used in the Enchanter it will give this recipe.</documentation>
                          </annotation>
                          <complexType>
                            <attribute use="required" name="name" type="string" />
                            <attribute name="costMultiplier" default="1">
                              <annotation>
                                <documentation>
                                  The cost of the recipe will be multiplied with this value. Defaults to 1.
                                </documentation>
                              </annotation>
                              <simpleType>
                                <restriction base="double">
                                  <minExclusive value="0" />
                                </restriction>
                              </simpleType>
                            </attribute>
                            <attribute name="disabled" type="boolean" use="optional" default="false">
                              <annotation>
                                <documentation>Entities that are disabled cannot be spawned by powered spawners.</documentation>
                              </annotation>
                            </attribute>
                          </complexType>
                        </element>
                      </sequence>
                    </complexType>
                  </element>
                  <element minOccurs="1" maxOccurs="unbounded" name="alloying">
                    <annotation>
                      <documentation>Alloying variants are crafted in an alloy smelter.</documentation>
                    </annotation>
                    <complexType>
                      <sequence>
                        <element minOccurs="0" maxOccurs="unbounded" name="config" type="enderio:configComplexType">
                          <annotation>
                            <documentation>
                              Restricts this variant to only be used if the given config value has the given value.
                            </documentation>
                          </annotation>
                        </element>
                        <element minOccurs="0" maxOccurs="unbounded" name="dependency" type="enderio:dependencyComplexType">
                          <annotation>
                            <documentation>
                              Restricts this variant to only be used if the given game element can (not) be found in the game.
                            </documentation>
                          </annotation>
                        </element>
                        <element minOccurs="1" maxOccurs="3" name="input">
                          <complexType>
                            <attribute use="required" name="name" type="string" />
                            <attribute name="amount" use="optional">
                              <annotation>
                                <documentation>Number of input items needed.</documentation>
                              </annotation>
                              <simpleType>
                                <restriction base="int">
                                  <maxInclusive value="64" />
                                  <minInclusive value="1" />
                                </restriction>
                              </simpleType>
                            </attribute>
                          </complexType>
                        </element>
                        <element minOccurs="1" maxOccurs="unbounded" name="output">
                          <annotation>
                            <documentation>The result of the alloying.</documentation>
                          </annotation>
                          <complexType>
                            <sequence>
                              <element minOccurs="0" maxOccurs="unbounded" name="config" type="enderio:configComplexType">
                                <annotation>
                                  <documentation>
                                    Restricts this output to only be used if the given config value has the given value.
                                  </documentation>
                                </annotation>
                              </element>
                              <element minOccurs="0" maxOccurs="unbounded" name="dependency" type="enderio:dependencyComplexType">
                                <annotation>
                                  <documentation>
                                    Restricts this output to only be used if the given game element can (not) be found in the game.
                                  </documentation>
                                </annotation>
                              </element>
                            </sequence>
                            <attribute use="required" name="name" type="string" />
                            <attribute use="optional" name="amount">
                              <simpleType>
                                <annotation>
                                  <documentation>The number of items to smelt into.</documentation>
                                </annotation>
                                <restriction base="int">
                                  <maxInclusive value="64" />
                                  <minInclusive value="1" />
                                </restriction>
                              </simpleType>
                            </attribute>
                          </complexType>
                        </element>
                      </sequence>
                      <attribute use="optional" name="exp">
                        <annotation>
                          <documentation>
                            The chance to get 1 EXP from the smelting one recipe. The number must be between 0.0 (for no EXP) and
                            1.0 for a 100% chance.
                          </documentation>
                        </annotation>
                        <simpleType>
                          <restriction base="float">
                            <minInclusive value="0" />
                            <maxInclusive value="1" />
                          </restriction>
                        </simpleType>
                      </attribute>
                      <attribute name="energy" use="required">
                        <annotation>
                          <documentation>The amount of energy running this recipe takes.</documentation>
                        </annotation>
                        <simpleType>
                          <restriction base="float">
                            <minExclusive value="0" />
                          </restriction>
                        </simpleType>
                      </attribute>
                    </complexType>
                  </element>
                  <element name="sagmilling" maxOccurs="unbounded" minOccurs="1">
                    <annotation>
                      <documentation>Sagmilling recipes are used in a Sag Mill.</documentation>
                    </annotation>
                    <complexType>
                      <sequence>
                        <element name="config" type="enderio:configComplexType" maxOccurs="unbounded" minOccurs="0">
                          <annotation>
                            <documentation>
                              Restricts this variant to only be used if the given config value has the given value.
                            </documentation>
                          </annotation>
                        </element>
                        <element name="dependency" type="enderio:dependencyComplexType" maxOccurs="unbounded" minOccurs="0">
                          <annotation>
                            <documentation>
                              Restricts this variant to only be used if the given game element can (not) be found in the game.
                            </documentation>
                          </annotation>
                        </element>
                        <element minOccurs="1" maxOccurs="1" name="input">
                          <complexType>
                            <attribute use="required" name="name" type="string" />
                          </complexType>
                        </element>
                        <element minOccurs="1" maxOccurs="unbounded" name="output">
                          <annotation>
                            <documentation>The result of the sagmilling.</documentation>
                          </annotation>
                          <complexType>
                            <sequence>
                              <element minOccurs="0" maxOccurs="unbounded" name="config" type="enderio:configComplexType">
                                <annotation>
                                  <documentation>
                                    Restricts this output to only be used if the given config value has the given value.
                                  </documentation>
                                </annotation>
                              </element>
                              <element minOccurs="0" maxOccurs="unbounded" name="dependency" type="enderio:dependencyComplexType">
                                <annotation>
                                  <documentation>
                                    Restricts this output to only be used if the given game element can (not) be found in the game.
                                  </documentation>
                                </annotation>
                              </element>
                            </sequence>
                            <attribute use="required" name="name" type="string" />
                            <attribute use="optional" name="amount">
                              <simpleType>
                                <annotation>
                                  <documentation>The number of items to sagmill into.</documentation>
                                </annotation>
                                <restriction base="int">
                                  <maxInclusive value="64" />
                                  <minInclusive value="1" />
                                </restriction>
                              </simpleType>
                            </attribute>
                            <attribute name="chance" use="optional" default="1">
                              <annotation>
                                <documentation>
                                  The chance that this item is produced by one run of the recipe. The chance is increased by the
                                  "chanceMultiplier" of the used grinding ball.
                                </documentation>
                              </annotation>
                              <simpleType>
                                <restriction base="float">
                                  <minExclusive value="0"></minExclusive>
                                  <maxInclusive value="1"></maxInclusive>
                                </restriction>
                              </simpleType>
                            </attribute>
                            <attribute name="required" type="boolean" use="optional" default="true">
                              <annotation>
                                <documentation>
                                  If required is false, an output for something that doesn't exist in the game is silently skipped.
                                  Use this for optional additional outputs, as the whole recipe still needs at least one output
                                  (unless the whole recipe is optional).
                                </documentation>
                              </annotation>
                            </attribute>
                          </complexType>
                        </element>
                      </sequence>
                      <attribute name="bonus" use="optional" default="multiply_output">
                        <annotation>
                          <documentation>
                            Use of grinding balls is restricted by the bonus type of the recipe. If it is set to "none", it will not
                            have any grinding ball bonuses applied and will not reduce the durability of any balls in the mill at
                            the time it is processed. If it is set to "chance_only", the chance and power multipliers of the
                            grinding balls are applied, but not the grinding multiplier. If it is set to "multiply_output"
                            (default), all multipliers apply.
                          </documentation>
                        </annotation>
                        <simpleType>
                          <restriction base="string">
                            <enumeration value="multiply_output"></enumeration>
                            <enumeration value="chance_only"></enumeration>
                            <enumeration value="none"></enumeration>
                          </restriction>
                        </simpleType>
                      </attribute>
                      <attribute name="energy" use="required">
                        <annotation>
                          <documentation>The amount of energy running this recipe takes.</documentation>
                        </annotation>
                        <simpleType>
                          <restriction base="float">
                            <minExclusive value="0" />
                          </restriction>
                        </simpleType>
                      </attribute>
                    </complexType>
                  </element>
                  <element name="slicing" type="enderio:slicingType" maxOccurs="unbounded" minOccurs="1">
                    <annotation>
                      <documentation>Recipe for the Slice'n'Splice</documentation>
                    </annotation>
                  </element>
                  <element name="fermenting" type="enderio:fermentingType" maxOccurs="unbounded" minOccurs="1"></element>
                </choice>
              </sequence>
              <attribute use="optional" name="required" type="boolean">
                <annotation>
                  <documentation>If a recipe is required, it is an error if none of its variants is valid.</documentation>
                </annotation>
              </attribute>
              <attribute use="required" name="name" type="string">
                <annotation>
                  <documentation>A display name. Used for error messages only.</documentation>
                </annotation>
              </attribute>
              <attribute name="disabled" type="boolean" use="optional">
                <annotation>
                  <documentation>
                    If a recipe is disabled it will not be registered and it will not check the validity of its content. Use this in
                    the user file to disable core recipes.
                  </documentation>
                </annotation>
              </attribute>
            </complexType>
          </element>
          <element name="grindingball" type="enderio:GrindingType"></element>
          <element name="capacitor" type="enderio:CapacitorType"></element>
        </choice>
      </sequence>
    </complexType>
  </element>
  <complexType name="configComplexType">
    <attribute use="required" name="section" type="string"></attribute>
    <attribute use="required" name="name" type="string"></attribute>
    <attribute use="optional" name="value" type="boolean"></attribute>
  </complexType>
  <complexType name="dependencyComplexType">
    <attribute use="required" name="item" type="string"></attribute>
    <attribute use="optional" name="reverse" type="boolean"></attribute>
  </complexType>


  <complexType name="slicingType">
    <sequence>
      <element name="config" type="enderio:configComplexType" maxOccurs="unbounded" minOccurs="0"></element>
      <element name="dependency" type="enderio:dependencyComplexType" maxOccurs="unbounded" minOccurs="0"></element>

      <element name="input" minOccurs="6" maxOccurs="6">
        <complexType>
          <attribute use="required" name="name" type="string" />
          <attribute name="nbt" type="string" use="optional"></attribute>
        </complexType>
      </element>
      <element name="output" minOccurs="1" maxOccurs="1"><complexType>
        <sequence>
                              <element minOccurs="0" maxOccurs="unbounded" name="config" type="enderio:configComplexType">
                                <annotation>
                                  <documentation>
                                    Restricts this output to only be used if the given config value has the given value.
                                  </documentation>
                                </annotation>
                              </element>
                              <element minOccurs="0" maxOccurs="unbounded" name="dependency" type="enderio:dependencyComplexType">
                                <annotation>
                                  <documentation>
                                    Restricts this output to only be used if the given game element can (not) be found in the game.
                                  </documentation>
                                </annotation>
                              </element>

                            </sequence>
                            <attribute use="required" name="name" type="string" />
      </complexType></element>
    </sequence>
    <attribute name="energy" use="required">
      <annotation>
        <documentation>The amount of energy running this recipe takes.</documentation>
      </annotation>
      <simpleType>
        <restriction base="int">
          <minExclusive value="0"></minExclusive>
        </restriction>
      </simpleType>
    </attribute>
  </complexType>

  <complexType name="GrindingType">
        <annotation>
          <documentation>  Grinding balls provide bonus outputs and reduced power use. Using the user config new grinding balls may be added and
  existing ones removed.

  Use of the grinding ball is restricted by the bonusType of the recipe. If it is set to &quot;none&quot;, it will not have any grinding
  ball bonuses applied and will not reduce the durability of any balls in the mill at the time it is  processed. If it is set
  to &quot;chance_only&quot;, the chance and power multipliers of the grinding balls are applied, but not the grinding multiplier. If it
  is set to &quot;multiply_output&quot; (default), all multipliers apply.
</documentation></annotation>
        <sequence>
      <element name="config" type="enderio:configComplexType" minOccurs="0" maxOccurs="unbounded"></element>
      <element name="dependency" type="enderio:dependencyComplexType" minOccurs="0" maxOccurs="unbounded"></element>
      <element name="item" minOccurs="1" maxOccurs="1">
        <complexType>
          <attribute name="name" type="string" use="required"></attribute>
        </complexType>
      </element>
    </sequence>
    <attribute name="name" type="string" use="required"></attribute>
    <attribute name="required" type="boolean" use="optional" default="true"></attribute>
    <attribute name="disabled" type="boolean" use="optional" default="false"></attribute>
    <attribute name="grinding" use="optional" default="1.0">
            <annotation>
              <documentation>The recipe output will be produced this many times. e.g. &quot;3.14&quot; would produce 3 copies of the complete
                        output set and a 14% chance for a forth copy.</documentation></annotation>
            <simpleType>
              <restriction base="float">
                <minExclusive value="0"></minExclusive>
                <maxInclusive value="5"></maxInclusive>
              </restriction>
            </simpleType>
    </attribute>
    <attribute name="chance" use="optional" default="1.0">
            <annotation>
              <documentation>The chances for the different outputs of the recipe are multiplied with this. e.g. if a recipe specifies
                        &lt;output name=&quot;cobblestone&quot; chance=&quot;0.15&quot; /&gt; a chance multiplier of &quot;3.14&quot; would make it a 47.1% chance
                        of getting one cobblestone. Results of more than 100% do not give multiples.</documentation></annotation>
            <simpleType>
        <restriction base="float">
          <minExclusive value="0"></minExclusive>
          <maxInclusive value="5"></maxInclusive>
        </restriction>
      </simpleType>
    </attribute>
    <attribute name="power" use="optional" default="1.0">
            <annotation>
              <documentation>The &quot;energy cost&quot; of the recipe is multiplied with this.</documentation></annotation>
            <simpleType>
        <restriction base="float">
          <minExclusive value="0"></minExclusive>
          <maxInclusive value="5"></maxInclusive>
        </restriction>
      </simpleType>
    </attribute>
    <attribute name="durability" use="required">
            <annotation>
              <documentation>This specifies how long one grinding ball will last before it is used up. The unit is the amount of
                        power used by the SAG Mill.</documentation></annotation>
            <simpleType>
        <restriction base="int">
          <minExclusive value="0"></minExclusive>
        </restriction>
      </simpleType>
    </attribute>
  </complexType>

  <complexType name="fermentingType">
    <sequence>
      <element name="config" type="enderio:configComplexType" minOccurs="0" maxOccurs="unbounded"></element>
      <element name="dependency" type="enderio:dependencyComplexType" maxOccurs="unbounded" minOccurs="0"></element>
      <element name="inputgroup" minOccurs="1" maxOccurs="2">
        <complexType>
          <sequence>
            <element name="input" minOccurs="1" maxOccurs="unbounded">
              <complexType>
                <attribute name="name" type="string" use="required"></attribute>
                <attribute name="multiplier" type="float" use="optional" default="1.0"></attribute>
              </complexType></element>
          </sequence>
        </complexType>
      </element>
      <element name="inputfluid" maxOccurs="1" minOccurs="1">
        <complexType>
          <attribute name="name" type="string" use="required"></attribute>
          <attribute name="multiplier" type="float" default="1.0"></attribute>
        </complexType>
      </element>
      <element name="outputfluid" maxOccurs="1" minOccurs="1">
        <complexType>
          <attribute name="name" type="string" use="required"></attribute>
        </complexType></element>
    </sequence>
    <attribute name="energy" use="required">
      <simpleType>
        <restriction base="int">
          <minExclusive value="0"></minExclusive>
        </restriction>
      </simpleType>
    </attribute>
  </complexType>

  <complexType name="CapacitorType">
    <annotation>
      <documentation>Capacitor Keys</documentation>
    </annotation>
    <sequence>
      <element name="config" type="enderio:configComplexType" minOccurs="0" maxOccurs="unbounded"></element>
      <element name="dependency" type="enderio:dependencyComplexType" minOccurs="0" maxOccurs="unbounded"></element>
      <choice minOccurs="0" maxOccurs="1">
        <element name="scaler" minOccurs="1" maxOccurs="1">
          <complexType>
            <attribute name="name" use="required" type="enderio:ScalerString"></attribute>
          </complexType>
        </element>
        <element name="indexed" minOccurs="1" maxOccurs="1">
          <complexType>
            <sequence>
              <element name="data" minOccurs="1" maxOccurs="unbounded">
                <complexType>
                  <attribute name="value" type="float" use="required"></attribute>
                </complexType>
              </element>
            </sequence>
            <attribute name="step" type="float" use="optional" default="1"></attribute>
          </complexType>
        </element>
      </choice>
    </sequence>
    <attribute name="key" use="required">
      <simpleType>
        <restriction base="string">
          <pattern value="[a-z][a-z0-9]*:[^:]+"></pattern>
        </restriction>
      </simpleType>
    </attribute>
    <attribute name="required" type="boolean" use="optional" default="true"></attribute>
    <attribute name="disabled" type="boolean" use="optional" default="false"></attribute>
    <attribute name="base" type="int" use="required"></attribute>
    <attribute name="scaler" type="enderio:ScalerString" use="optional"></attribute>
  </complexType>
  <simpleType name="ScalerString">
    <restriction base="string">
                  <enumeration value="IDENTITY"></enumeration>
                  <enumeration value="LINEAR_0_8"></enumeration>
                  <enumeration value="QUADRATIC"></enumeration>
                  <enumeration value="QUADRATIC_1_8"></enumeration>
                  <enumeration value="CUBIC"></enumeration>
                  <enumeration value="OCTADIC_1_8"></enumeration>
                  <enumeration value="POWER"></enumeration>
                  <enumeration value="CHARGE"></enumeration>
                  <enumeration value="SPEED"></enumeration>
                  <enumeration value="POWER10"></enumeration>
                  <enumeration value="RANGE"></enumeration>
                  <enumeration value="FIXED"></enumeration>
                  <enumeration value="SPAWNER"></enumeration>
                  <enumeration value="BURNTIME"></enumeration>
                  <enumeration value="CHEMICAL"></enumeration>
                  <enumeration value="DROPOFF"></enumeration>
                </restriction>
  </simpleType>
</schema>