[Observation]using the tree's code

Place to post guides, observations, things related to modding that are not mods themselves.
donoya
Fast Inserter
Fast Inserter
Posts: 119
Joined: Thu Dec 04, 2014 10:55 pm
Contact:

[Observation]using the tree's code

Post by donoya »

I've noticed that there are some people who are struggling with the possibility of machines that destroy pollution. I think that a clever solution would be to base it off of the in-game trees. I'm not entirely sure if that would work so correct me if I'm wrong, but I think it may be the answer that some people are looking for.
User avatar
Schorty
Fast Inserter
Fast Inserter
Posts: 185
Joined: Tue Aug 12, 2014 10:29 am
Contact:

Re: [Observation]using the tree's code

Post by Schorty »

The problem with the trees code is that they reduce pollution passivly. So no power or resources needed for the process and thats not really ideal ;)
Tired of not being able to reduce the pollution? Try the Air-Filter-Mod
With this, you are able to use the pollution levels in your circuit network: Pollution detector
User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: [Observation]using the tree's code

Post by L0771 »

can use a assembler machine with negative pollution, it consume resources, i think can return nothing.
Can see it in energy_source.emissions of entity.
User avatar
Schorty
Fast Inserter
Fast Inserter
Posts: 185
Joined: Tue Aug 12, 2014 10:29 am
Contact:

Re: [Observation]using the tree's code

Post by Schorty »

This is actually working. At least the part with the reduced pollution. But you can't do a recipe without a result. So I created a recipe which requires 1 coal and puts out 1 coal. Also I can set the amount of pollution reduced, as you said, L0771, in the energy_source.emission property. I don't have any sprites, so I don't know if it's worth posting this "mod" :D
Last edited by Schorty on Mon Dec 22, 2014 11:05 pm, edited 1 time in total.
Tired of not being able to reduce the pollution? Try the Air-Filter-Mod
With this, you are able to use the pollution levels in your circuit network: Pollution detector
User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: [Observation]using the tree's code

Post by L0771 »

Schorty wrote:This is actually working. At least the part with the reduced pollution. But you can't do a recipe without a result. So I created a recipe wich required 1 coal and puts out 1 coal. Also I can set the amount of pollution reduced, as you said, L0771, in the energy_source.emission property. I don't have any sprites, so I don't know if it's worth posting this "mod" :D
This "mod" have only 3 lines.
Post Reply

Return to “Modding discussion”