DyWorld Chemical Recycling

by Dysoch

DyWorld Chemical Recycling, which recycles ingredients into their components based on their chemical formula. Other mods can add recycling for this. Information can be found on the mod portal for this mod. This mod does NOT require DyWorld-Dynamics, but DyWorld-Dynamics is greatly enhanced by this mod (as is this mod)

Utilities
3 years ago
1.1
651
Owner:
Dysoch
Source:
https://github.com/Dysoch/DyWorld
Homepage:
https://discord.gg/yHJaZrq5Ww
License:
GNU GPLv3
Created:
3 years ago
Latest Version:
0.4.0 (3 years ago)
Factorio version:
1.1
Downloaded by:
651 users

NOTE: This mod does NOT require DyWorld-Dynamics!!!!!!!!!

A fresh take on recycling. This mod voids every item. Everything from vanilla factorio will also have a chance to give back its most basic resources based on its chemical formula. When no chemical formula is present, the recipe will only act as a void recipe.

This mod, while part of the DyWorld series of mods, does NOT require DyWorld. Although it is greatly enchanced by it (DyWorld will be released eventually), it can/will work without it. It will work with any mod that there is. Mods that add things like liquid oxygen, hydrogen, carbon etc will dynamically change the voiding recipes. Instead of coal, carbon will then be an output.

Info for Modders

When no chemical formula is provided in an item prototype, the mod will default it to "none". This means basically just an void recipe.
When you want to add a chemical formula, you have to add a single line into an item/fluid/ammo/tool/module/capsule/gun/armor/repair-tool prototype.
This line is:

Chemical_Formula = "Fe-Cu-",

That is it. This adds iron and copper as its formula, and thus that item has a chance to gain iron or copper ore when voiding in the chemical recycler. The list of supported elements is below, but it is really simple. Each element has the letter(s) the same as on the periodic table. Always end each element with an "-", this is a limitation into the script, because otherwise it can not read each element seperately
One thing is added besides the elements, and that is naphtha. This is a byproduct from oil, and is basically added for DyWorld, but other mods can add it as well.

Currently supported elements:

Hydrogen ("H1-", "H2-", "H3-", "H4-", "H5-", "H6-") (Version 0.1+)
Oxygen ("O1-", "O2-", "O3-", "O4-", "O5-") (Version 0.1+)
Carbon ("C-", "C1-", "C2-") (Version 0.1+)
Sulfur ("S-") (Version 0.1+)
Copper ("Cu-") (Version 0.1+)
Iron ("Fe-") (Version 0.1+)
Uranium ("U-") (Version 0.1+)
Naphtha ("Naphtha-") (Version 0.1+)
Gold ("Au-") (Version 0.2+)
Silver ("Ag-") (Version 0.2+)
Aluminium ("Al-") (Version 0.2+)
Tin ("Sn-") (Version 0.2+)
Lead ("Pb-") (Version 0.2+)
Nickel ("Ni-") (Version 0.2+)
Titanium ("Ti-") (Version 0.2+)
Lithium ("Li-") (Version 0.3+)
Sodium ("Na-") (Version 0.3+)
Chromium ("Cr-") (Version 0.3+)
Cobalt ("Co-") (Version 0.3+)
Zinc ("Zn-") (Version 0.3+)
Tungsten ("W-") (Version 0.3+)
Osmium ("Os-") (Version 0.3+)
(More elements will come)

Example Chemical formula Water fluid prototype:

Chemical_Formula = "H2-O-"

(2 Hydrogen and 1 Oxygen)

Example Chemical formula steel-plate item prototype:

Chemical_Formula = "Fe-C-"

(Iron and Carbon)

Example Chemical formula advanced-circuit item prototype:

Chemical_Formula = "Fe-C-Naphtha-H2-Cu-"

(Iron, Carbon, Naphtha, 2 Hydrogen and Copper)