Here is how Trixie became the new Princess in The Tale of The SquarePants Master Ship Builders.
Trixie: (looked at her reflection threw the Tree of Harmony) I don't believe it! I'm an Alicorn! It almost looked like that I'm a Princess!
Twilight Sparkle: Because you are a Princess, Trixie.
Princess Celestia: That's right. And just like Twilight, You will soon become a greater princess in all of Equestria.
At Hogwarts Castle.
Titanic: Attention, Everyone and Everypony.
Olympic: We are all gathered here today for a very special occasion.
Britannic: We are to celebrate the new princess of Equestria.
Titanic II: We hereby proclaim The Great and Powerful Trixie, The Princess of Equestria!
Everyone and Everypony cheered and Trixie gave her waves to her friends.
Pongolo Pete: Princess Trixie and Princess Twilight would make a great team.
Captain Stubbs: Indeed they would, Pongolo Pete. Indeed they would.
Princess Luna: SpongeBob, Your Ship Building shed will be a historical landmark that you will always make.
SpongeBob SquarePants: Really?
Patrick Star: You deserve it, Buddy!
Sandy Cheeks: And you'll have us to help ya!
Squidward Tentacles: As long as we get a break!
Mr. Krabs: You're a hero, SpongeBob!
Plankton: You were the best, SpongeBob!
Karen: We owe it all to you for making a great team out of us!
Gary the Snail: Meow!
Mickey Mouse: SpongeBob, You are now an official Manager of The Krusty Krab 2 and The SquarePants Master Ship Builders!
SpongeBob SquarePants: Manager. This is the greatest day of my life!!!!
The story ends.
Jiminy Cricket: And that is how SpongeBob built the S.S. Headliner and The SquarePants Master Ship Builders and defeated Merlock the Magician.
Princess Yuna: Wow!
Snowdrop: Great story, Jiminy!
Nyx: We love it!
Jiminy Cricket: I'm glad you all do!
Princess Yuna: I sure can't wait until our trip soon.
Snowdrop: Me either.
Princess Skyla: I look forward to having some fun.
Princess Luna: Yuna! Snowdrop!
Hiro: It's time to come home!
Snowdrop: Yes, Hiro!
Princess Yuna: Coming, Mama. (winks as the film ends)