Complex sentence: As it does, it leans dangerously to the side, causing a load of pipes to fall off one of its cars close to the large gas tanks, and even taking out a few electrical power poles, but it eventually it makes it through the curve.
Split into simpler sentences: As it does, it leans dangerously to the side, causing a load of pipes to fall off one of its cars and land close to the large gas tanks. The locomotive even taking out a few electrical power poles, but it eventually it makes it through the curve.