It doesn crash the game, its WORSE, WAY WORSE, it duplicate entities to infinity.
I made a small spaceship, made less than 10 trips (using the mod everything on nalvis except fulgora, i have little to do in Space), this small spaceship have 2 thrusters and some tanks between, some pipes under 4 storage tanks.
The game started to slow down a bit, and every trip the time to run the scrip to transform the spaceship become longer and longer, to now 5 min.
After I learned what was causing the problem, Im VERY impressed that the GAME could handle this absurdity AND your script didnt crash.
These 4 tanks in less than 10 trips, duplicated to 29710 tanks (just the tanks, the pipes and everything else was fine).... how the F the game was managing to place 30k storage tanks sprites in the screen (with 20 fps on my potato PC) and calculating everything is just black magic to me.
The problem starts with 2 entities occupying the same space but in different layers, dont know if you can fix it, but try at least doing something to prohibit the use of these underground pipes in the spaceship.
Other than that, Im loving your mod.