• 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.

Scrap Mechanic in the XML Files??

Where is the scrap mechanic located in the XML Files? Is it the "Material" property? Is it meant to be under "Recipes"?

I'm trying to change all cans scrap mechanic to turn them into Aluminum, an element I've added to the game.

Help??

 
I have figured this out thanks to another thread.

https://7daystodie.com/forums/showthread.php?114169-need-help-with-making-a-new-forge&highlight=forge_category

TLDR: You need to add a material to materials.xml, edit your item's material property to said new material, in items.xml, and add a small code in recipes.xml, Ex.

Code:
<recipe name="resourceGold" count="1" tooltip="ttScrapMetalBrass" always_unlocked="true">
<wildcard_forge_category />
</recipe>
In order to make the item scrappable.

Also do not forget that the item's weight defines the amount of material scrapped based on the materials weight.

 
Back
Top