Better Ecology

by Byzzee

Adds in some stuff such as wind turbines, tree planters and air filters to make your factory a bit more eco-friendly ^_^

Content
14 days ago
1.1 - 2.0
2.89K
Environment Manufacturing Power

i Air filtering

5 months ago

I had an unfinished (probably remains unfinished) air filtering mod where I was toying with some of the balance. Are you interested in what I had for that? (some of the code is done already)

5 months ago

Yeah, sure, why not :3

5 months ago
(updated 5 months ago)

The way I built mine:
- Every chunk can only have 1 working filter. This is to prevent excessive spamming. Any extras get turned off. This also lines up with how pollution works, that is calculated for each chunk.
- Every working filter only absorbs very little on it's own.
- The filters produce a trash item (does not matter what it is), that should stack to 1 so the player can't just shove it in a chest and forget about it.
-There may be a way to "pack" this trash item together so it can be put on trains. Mine was to carry it as a liquid in a tank.
- The "trash" item needs to have a way of disposal, mine was the same idea as the coil liquefaction+ it was burnable. Can be anything really, treat it like spoil is treated in the DLC.

After every pollution tick:
- every working filter is checked for pollution, if there isn't enough in the chunk the machines turn off, if there is they turn on. This means that they do actual work. not just run passively even if the air is clean.
- You have a research chain for air filtering, it increases a value for your faction. This gets subtracted from each chunk's pollution as a bonus. This is here so that you need to be manufacturing for that pollution reduction.

This "after pollution tick" and "one for each chunk" rule also makes it sure that the code does not do much, so should be fine on larger maps. I also have some kind of tick offset in there but I don't know if it actually works.

The 2 main goals were to make it a little more involved then "wash filter", while also making sure that it's not an infinite source for something.

New response