I'm not sure exactly what you need, so here's an example of a workshop and the recipes it uses.
This would go in the ThingDefs folder:
And this would go in the RecipeDefs folder:
This would go in the ThingDefs folder:
Code Select
<?xml version="1.0" encoding="utf-8" ?>
<Buildings>
<ThingDef ParentName="BuildingBase">
<DefName>ElecWorkshop</DefName>
<EType>Building_WorkTable</EType>
<Label>Electronics Workshop</Label>
<ThingClass>Building_WorkTable</ThingClass>
<Description>A work table equipped to turn metals into electrical equipent.</Description>
<TexturePath>Things/Building/TableElectronics</TexturePath>
<CostList>
<ResourceCost>
<thingDef>Metal</thingDef>
<count>80</count>
</ResourceCost>
</CostList>
<AltitudeLayer>Waist</AltitudeLayer>
<WorkToBuild>300</WorkToBuild>
<UseStandardHealth>True</UseStandardHealth>
<maxHealth>180</maxHealth>
<Size>(3,1)</Size>
<Overdraw>False</Overdraw>
<DesignationCategory>Furniture</DesignationCategory>
<Passability>Impassable</Passability>
<hasInteractionSquare>True</hasInteractionSquare>
<interactionSquareOffset>(0,0,-1)</interactionSquareOffset>
<itemSurface>True</itemSurface>
<recipes>
<li>MakePowerConduit</li>
<li>MakeSmallLight</li>
<li>MakeBigLight</li>
</recipes>
<inspectorTabs>
<li>UI.ITab_Bills</li>
</inspectorTabs>
</ThingDef>
</Buildings>
And this would go in the RecipeDefs folder:
Code Select
<?xml version="1.0" encoding="utf-8" ?>
<RecipeDefs>
<RecipeDef>
<defName>MakePowerConduit</defName>
<label>Make power conduit segments</label>
<description>Turns metal into power conduits segments.</description>
<jobString>Making power conduits.</jobString>
<workAmount>50</workAmount>
<workTimeSkillNeed>ElectronicsTime</workTimeSkillNeed>
<efficiencySkillNeed>ElectronicsEfficiency</efficiencySkillNeed>
<ingredients>
<li>
<filter>
<thingDefs>
<li>Metal</li>
</thingDefs>
</filter>
<count>1</count>
</li>
</ingredients>
<products>
<li>
<thingDef>PowerConduitResource</thingDef>
<count>5</count>
</li>
</products>
<parentIngredientFilter>
<thingDefs>
<li>Metal</li>
</thingDefs>
</parentIngredientFilter>
<defaultIngredientFilter>
<thingDefs>
<li>Metal</li>
</thingDefs>
</defaultIngredientFilter>
</RecipeDef>
<RecipeDef>
<defName>MakeSmallLight</defName>
<label>Make Small Light</label>
<description>Makes a small light element.</description>
<jobString>Making Small Light.</jobString>
<workAmount>75</workAmount>
<workTimeSkillNeed>ElectronicsTime</workTimeSkillNeed>
<efficiencySkillNeed>ElectronicsEfficiency</efficiencySkillNeed>
<ingredients>
<li>
<filter>
<thingDefs>
<li>Metal</li>
</thingDefs>
</filter>
<count>5</count>
</li>
</ingredients>
<products>
<li>
<thingDef>StandingLampResource</thingDef>
<count>1</count>
</li>
</products>
<parentIngredientFilter>
<thingDefs>
<li>Metal</li>
</thingDefs>
</parentIngredientFilter>
<defaultIngredientFilter>
<thingDefs>
<li>Metal</li>
</thingDefs>
</defaultIngredientFilter>
</RecipeDef>
<RecipeDef>
<defName>MakeBigLight</defName>
<label>Make Large Light</label>
<description>Makes a large light element.</description>
<jobString>Making Large Light.</jobString>
<workAmount>150</workAmount>
<workTimeSkillNeed>ElectronicsTime</workTimeSkillNeed>
<efficiencySkillNeed>ElectronicsEfficiency</efficiencySkillNeed>
<ingredients>
<li>
<filter>
<thingDefs>
<li>Metal</li>
</thingDefs>
</filter>
<count>20</count>
</li>
</ingredients>
<products>
<li>
<thingDef>SunLampResource</thingDef>
<count>1</count>
</li>
</products>
<parentIngredientFilter>
<thingDefs>
<li>Metal</li>
</thingDefs>
</parentIngredientFilter>
<defaultIngredientFilter>
<thingDefs>
<li>Metal</li>
</thingDefs>
</defaultIngredientFilter>
</RecipeDef>
</RecipeDefs>