• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Smelting other materials in the forge

nuc2019

Refugee
Hi guys!

I'm currently writing a mod and would like to use the forge as a system to store some materials for the recipes.

But I can't figure out where the smelting takes place.

I also can't find the controllers like "WorkstationMaterialInputWindow" and "WorkstationMaterialInputGrid" anywhere under "controllers.xml"

I tried to change the input materials but it doesn't smelt any material now.

blocks.xml

Code:
<property class="Workstation">
<property name="Modules" value="tools,output,fuel,input,material_input"/>
<property name="InputMaterials" value="stone,clay,sand,coal,glas,iron"/>
</property>
windows.xml

Code:
<window name="windowFilterSystemInput" width="254" height="214" panel="Right" controller="WorkstationMaterialInputWindow" materials_accepted="stone,clay,sand,coal,glass,iron" valid_materials_color="[green]" invalid_materials_color="[red]" cursor_area="true" >
Made new items. Yes I want to smelt/save coal in the modified new forge I want to built and other materials

Code:
<item name="unit_coal">
<property name="Extends" value="unit_iron"/>
<property name="CustomIcon" value="resourceCoal"/>
<property name="Material" value="MresourceCoal"/>
</item>
Also made some recipes that use those materials.

I don't really get it how the forge melts things and where I need to tweak to get it run for other materials too.

Does someone already tried to smelt other materials or knows about the smelting mechanic and which files are needed to get it done?

Thanks for the help!

 
Back
Top