I want a train that run over everything.

I want a train that can go trough fields of biter to join an advanced base surrounded by ennemy fire.
No more cleaning rail path or defenses along rail.
I cannot find a mod doing this so i'm requesting one.
It's very easy mod, but a little bit too cheattyz-em wrote: Tue Nov 27, 2018 1:33 pm I have finally found it![]()
https://mods.factorio.com/mod/invincibl ... -and-power
but it's not supported anymore...
Code: Select all
function on_built_entity( event )
local entity = event.created_entity
if (entity.name == 'big-electric-pole' or entity.name == 'diesel-locomotive' or entity.name == 'cargo-wagon') then
entity.destructible = false;
end
end
Nice work!z-em wrote: Tue Nov 27, 2018 2:30 pm I've updated it to work with current version![]()
![]()
![]()
Here's the link:
https://mods.factorio.com/mod/invincible-trains