Dwarf Fortress

Dwarf Fortress

62 ratings
Recycle clothes and armor (cloth and leather)
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
73.517 KB
22 Jan, 2023 @ 11:34am
22 Jan, 2023 @ 12:57pm
2 Change Notes ( view )

Subscribe to download
Recycle clothes and armor (cloth and leather)

Description
Recycle cloth and leather clothing/armor

Do you have an excess of unused poor quality leather armor from various sieges? Tons of worn clothes filling up your stockpiles? Here is a solution to these problems.

This mod adds new reactions to allow your dwarves to try to extract cloth or leather from any clothing or armor made from these materials, destroying the clothing/armor in the process. The chance to extract useful material (i.e. 1 piece of cloth/leather) is 50% for upper body wear/headwear/legwear/shields and 25% for footwear and handwear (since they are created in pairs). If the reaction fails, the clothing/armor is destroyed with nothing in return.

New reactions:

Clothier's shop: 5 recycle clothes reactions are added, and take clothing of the specified type made from any woven material (e.g. plant, silk, yarn).

Leather works: 6 recycle leather clothes/armor reactions are added, and should take any clothes or armor (including shields) made from any type of leather.


For technical reasons, there are separate reactions for each main type of clothing/armor. This includes upper body wear (e.g. tunics, cloaks, leather armor, etc.), headwear (caps, hoods, leather helms, etc.), legwear (pants, leggings, thongs, etc.), handwear (gloves and mittens), footwear (shoes, socks, leather boots) and shields (leather shields and bucklers).


Notes

When you set a dwarf to work on one of the reactions, the dwarf will grab the nearest piece of clothing that fits the reaction chosen. This can be a XXPig tail sockXX or a ☼Giant cave spider silk sock☼; the reaction does not differentiate by item quality (this is in fact not possible to do with the current modding system as far as I know).

Thus, it's a good idea to build a Clothier's shop and/or Leather worker, and set the workshop to only take from a specific stockpile of poor quality clothes/armor before starting the reactions.

To get rid of worn clothes your dwarves are hoarding, you can use DFHack with the command cleanowned scattered x, which marks all worn owned clothes for dumping. Then put the dump zone in the middle of the stockpile linked to your Clothier's shop, wait for your dwarves to dump everything, unforbid the clothes, and then start mass recycling.


This mod must be loaded after the vanilla_entities (e.g. at the bottom) to add the reactions properly.

This mod should enable recycling of clothes or leather armor added by other mods, as long as their material is woven (e.g. plant cloth/silk/yarn), or leather.

I haven't yet tested if this recycling works on adamantine cloth clothes, but it might. Let me know if you try.
5 Comments
jt93hardy 4 Nov, 2024 @ 1:41pm 
Does this Work with (spoilers) Material
mapo5271 24 Aug, 2024 @ 9:02am 
Is it possible to do this also for wood items like cabinet, bins etc.? In real life I can destroy some wooden cabinet and us it for fire material. It would be fin if you can to this!
DW420 17 Mar, 2024 @ 1:08am 
@DiddyDivine.

Yes, there is. Just filter your clothing stockpiles to discriminate incoming goods.
vanguardascendant 21 Jan, 2024 @ 8:36am 
Does recycling clothes train the clothier skill?
Count 22 Jan, 2023 @ 8:21pm 
Excellent! Thanks for the mod.

It's a damn shame that there isn't a way to sort used clothing into stockpiles without DFhack. But I'm glad you've allowed us to recycle the materials if we wish!