Multiple Output Recipes - NoIDontCare/idc-core-docs GitHub Wiki
IDC Core allows for recipes to have multiple outputs. These outputs will automatically be displayed on the crafting UI to indicate to users what items a recipe will create.
Defining multiple outputs on a recipe is simple. An additional output on a recipe is defined as follows:
<secondary_output name="<item name>" count="<count>"/>
An example recipe is provided below:
<recipe name="ammoArrowStone" count="1">
<nameOverride name="customStoneArrowName"/>
<iconOverride name="someCustomIcon"/>
<descriptionOverride name="customRecipeDescription"/>
<tintOverride name="FFFF00"/>
<secondary_output name="ammoArrowIron" count="2"/>
<secondary_output name="ammoArrowExploding" count="5"/>
<ingredient name="resourceSmallStone" count="2"/>
<ingredient name="resourceWood" count="1"/>
<ingredient name="resourceFeather" count="1"/>
</recipe>
The above example will produce 1 stone arrow, 2 iron arrows, and 5 exploding arrows when crafted. Recipes can have up to 5 total output items. Recipe names, descriptions, icons, and icon tints can be overridden as well. The name and description override values should be localization keys.
IDC Core automatically adds a tab to the crafting window to show what a recipe will create. This works with vanilla recipes and modded recipes.