Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Recycling mod  (Read 916 times)

Urk

  • Bay Watcher
    • View Profile
Recycling mod
« on: June 07, 2011, 02:25:49 am »

Are you tired of endless piles of useless crafts/furniture/armor lying around?

Are you trying to make war with elfs/humans by destroying trade caravans over and over again, leaving you struggling how to handle tons of stuff caravans leave behind?

You can of course sell it to other merchants, drop it to magma or atom smash it.

But why not do something more fun and/or useful with it?

Recycling mod
Recycling mod contains two buildings:
  • Recycling Workshop - recycles armor and clothes made from leather/silk/plant fiber or wool, producing recycled fiber threads that are useful for textile industry.
  • Trash Burner - burns wooden furniture, crafts, weapons and armor and produces coke.

Think about how fun it would be to burn all those ethical wooden items taken from elf's - producing fuel for your metal industry to make more axes to cut down more trees!

Also dirty socks left by goblins of other entities who don't need them anymore can be recycled and used for new products.


Code
For recycled fiber thread there is "fake" plant to make game understand it.
Spoiler (click to show/hide)

Building for recycling workshop:
Spoiler (click to show/hide)

And building for trash burner:
Spoiler (click to show/hide)

Reactions for recycling workshop:
Spoiler (click to show/hide)

Reactions for trash burning:
Spoiler (click to show/hide)

For wooden item burning to work, you need to add line [REACTION_CLASS:REFINE_WOOD] in material_template_default.txt under WOOD_TEMPLATE. This is from genesis-mod so if you have it its here already.

To make buildings and reactions available these need to be put in entity definition:
Spoiler (click to show/hide)

It should work with these, if some people express interest for this mod maybe it can be put available for download somewhere, lets see...
Logged