Make entity consumption depend on pollution

Place to get help with not working mods / modding interface.
Villfuk02
Long Handed Inserter
Long Handed Inserter
Posts: 79
Joined: Mon Apr 30, 2018 7:23 am
Contact:

Make entity consumption depend on pollution

Post by Villfuk02 »

I'd like to make my entity consume more power in polluted chunks. How would i do that?
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Make entity consumption depend on pollution

Post by DaveMcW »

Make a second copy with higher power consumption.

Periodically scan the map and replace all entities with the high/low version depending on pollution. You don't have to do this very often since pollution spreads rather slowly.
Post Reply

Return to “Modding help”