Code: Select all
roboport.surface.create_entity{name="entity-ghost", position=belts.position, inner_name="fast-transport-belt", direction = belts.direction, force=roboport.force}
Here is an example of a belt created via this method, directly to the left of the player. Notice how the underground belt is facing south (transporting north) instead of north (transporting north).