Stealing back the Elements/Fighting Gremlin Prescott and the Bone Pirates

Here is how the Elements of Harmony were retrieved in The Tale of The SquarePants Master Ship Builders.