Automatically lay track ghosts when walking or driving over them.
Mods introducing new content into the game.
Trains are great, but what if they could do even more?
Rather than go by entity name, wouldn't it work better to go by entity type?
That does sound like a better idea. I didn't know that's possible. Do you have a link to some documentation about this?
Thanks!
https://lua-api.factorio.com/latest/LuaItemStack.html#LuaItemStack.prototype
You can probably iterate all item prototypes on_configuration_changed, and record all of the rail type item names?
Interesting, I'll look into it. Thanks!
Also do it on_init, for first boot.
I just updated the code so it now goes by type. Thanks for the suggestion!