Skip to content

Instantly share code, notes, and snippets.

@morsk
morsk / gist:bef1fa20946b5ecb3af070fc2d014a49
Last active May 15, 2020 03:24
Add Waypoints Before Stations [Factorio]
/c
--[[ a "station" is an existing station, of which you have many.
a "waypoint" is a single station to add before its stacker.
the table maps station names to the new waypoint name you're adding.
t[k] = v, where key is the station name, and v is the waypoint name. ]]
local station_waypoints = {
["[img=item/iron-ore] [U] @ [img=item/lab]"] = "[img=item/iron-ore] [W] @ [img=item/lab]",
["[img=item/copper-ore] [U] @ [img=item/lab]"] = "[img=item/copper-ore] [W] @ [img=item/lab]",
["[img=item/stone] [U] @ [img=item/lab]"] = "[img=item/stone] [W] @ [img=item/lab]",
["[img=item/coal] [U] @ [img=item/lab]"] = "[img=item/coal] [W] @ [img=item/lab]",