LuaEntity.set_connected_rail
LuaEntity.set_connected_rail
I want to be able to override the connections between rails. Either to "disconnect" adjacent rails, or to "connect" nonadjacent rails. I'm hopeful that *some * useful behavior, even if it involves teleporting, would come from this.
Re: LuaEntity.set_connected_rail
Unfortunately the way rails work this isn't possible. The game doesn't save which rails are connected to which so having a rail not connected or connected differently wouldn't be save/load stable.
If you want to get ahold of me I'm almost always on Discord.