Adding multiple ingredients to a recipe

Started by Gruhlum, September 09, 2016, 11:01:57 AM

Previous topic - Next topic

Gruhlum

I am making a simple mod that let's me craft bionic bodyparts and it works fine. The only problem I have is that I don't know where to add a second ingredient in the code. I tried it pretty much everywhere in the code below with no success.

<ingredients>
      <li>
        <filter>
          <thingDefs>
            <li>Plasteel</li>
          </thingDefs>
        </filter>
        <count>50</count>
      </li>
    </ingredients>
    <fixedIngredientFilter>
      <thingDefs>
        <li>Plasteel</li>
      </thingDefs>
    </fixedIngredientFilter>

Master Bucketsmith

It should work like so:
<ingredients>
      <li>
        <filter>
          <thingDefs>
            <li>Plasteel</li>
          </thingDefs>
        </filter>
        <count>50</count>
      </li>
      <li>
        <filter>
          <thingDefs>
            <li>Steel</li>
          </thingDefs>
        </filter>
        <count>25</count>
      </li>
    </ingredients>
    <fixedIngredientFilter>
      <thingDefs>
        <li>Plasteel</li>
        <li>Steel</li>
      </thingDefs>
    </fixedIngredientFilter>