2x1 with 1x1 and a belt. i was trying to do it with stack inserters and here's what i got:
/c for a,b in pairs(game.surfaces[1].find_entities_filtered{type="loader"})do box=b.loader_container;boxpos=box.position;inorout=b.loader_type;pos=b.position;orient=b.direction;neigh=b.belt_neighbours;if inorout=="input"then belts=neigh.inputs;verb="from"else verb="to"belts=neigh.outputs end;for c,d in pairs(belts)do if inorout=="input"then d_target=d;p_target=box else d_target=box;p_target=d end;if d.name=="express-loader"then game.print("Loader-"..verb.."-Loader!")elseif d.name=="express-transport-belt"then game.print("Dumping "..verb.." a belt!")b.destroy()params={name="express-stack-inserter",position=pos,direction=orient,drop_target=d_target,pickup_target=p_target}game.print(serpent.block(params))ent=game.surfaces.nauvis.create_entity(params)ent.update_connections()end end end