Allow construction-bots to fast-replace
Posted: Sun Nov 20, 2016 6:47 am
I have written a mod that looks for yellow belts and places red belt ghosts under them. Unfortunately construction bots go the ghost and stay there forever rather than place the red belts!
I would like for construction bots to be able to fast-replace these belts, much in the same way they already can swap bricks and concrete where they lay down the new one and pick up the old one.
In a related note, I would like the ability to call surface.can_place_entity{name="entity-ghost" ...} and have it return true if inner_name matches one of the occupying's entity's fast-replace, this would simplify it by allowing usage of can_place_entity instead of keeping track of where ghosts have been placed.
I would like for construction bots to be able to fast-replace these belts, much in the same way they already can swap bricks and concrete where they lay down the new one and pick up the old one.
In a related note, I would like the ability to call surface.can_place_entity{name="entity-ghost" ...} and have it return true if inner_name matches one of the occupying's entity's fast-replace, this would simplify it by allowing usage of can_place_entity instead of keeping track of where ghosts have been placed.