Closed Zomis closed 5 years ago
This could use a Selection Tool Item to search and replace. http://lua-api.factorio.com/latest/events.html#on_player_selected_area
See for example https://mods.factorio.com/mods/No0Vad/ore-swapper
This mod does this already: https://mods.factorio.com/mod/upgrade-planner
Also, I believe it will be built-in in 0.17
Create a GUI that shows the number of the different types, and have the possibility to upgrade/downgrade by clicking a button.
The upgrade will be done by marking entities for removal, and when they have been removed, they will be replaced by something else.
LuaForce.logistic_networks
LuaLogisticNetwork.find_cell_closest_to(position)
LuaLogisticCell.is_in_construction_range(position)
Chests
Belts
Normal belts
Underground belts
Splitters
Inserters
Electric Poles
Assembling Machines