- (How) can you add e.g. the substation an electricity drain ? I.e. it should still work as an energy distributor, but with a small loss, and more important: show the no-power-icon if not electrified.
- Same for containers, and how can you lock resp. better: slow down picking up and placing items in the inventory. Is there an event handler ?
Electricity questions
-
- Fast Inserter
- Posts: 229
- Joined: Tue Sep 16, 2014 5:48 pm
- Contact:
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: Electricity questions
There's no event handler but two mods to investigate that might help you find what you're looking for:
* Flow Network - https://mods.factorio.com/mods/Simdezimon/flownetwork - adds power loss to power network
* KS Power - https://mods.factorio.com/mods/Klonan/KS_Power - bunch of power stuff
* Creative Mode - viewtopic.php?f=97&t=28005 - has some power create/drain accus
* Flow Network - https://mods.factorio.com/mods/Simdezimon/flownetwork - adds power loss to power network
* KS Power - https://mods.factorio.com/mods/Klonan/KS_Power - bunch of power stuff
* Creative Mode - viewtopic.php?f=97&t=28005 - has some power create/drain accus
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
-
- Fast Inserter
- Posts: 229
- Joined: Tue Sep 16, 2014 5:48 pm
- Contact:
Re: Electricity questions
Thanks, but it seems that all entities are hard-coded in some points. I.e. if you want to make something that distributes electricity AND consumes power, you'll have to merge an own subroutine that handles every entity for each tick. Same for the containers, although you might simply use the type "assembling machine" in this case.