Build Trains Automatically-See Mod Portal for instructions
Mods introducing new content into the game.
Trains are great, but what if they could do even more?
Using the Nuclear Trains mod and the train spawner chest will only spawn cargo wagons, not the engines.
It will only build things called "locomotive" in game. I will see if there is a type for locomotives that I can identify them with. I guess this means I will also need to add support for nuclear fuels...
It doesn't work with electric trains :( (E-locomotive)
Doesn't work with Bob's trains, angel's trains, yuoki trains and electric trains
Any chance to make this work with Angels+bobs?
Support for modded Trains would be very nice. Doesn't work with F.A.R.L.
@cooky173, without testing, this is how you do it:
if stack ~= nil then type = game.entity_prototypes[stack.name].type if type == "locomotive" then