The SpongeBob Movie: Sponge Out of Water

The SpongeBob Movie: Sponge Out of Water aka The SpongeBob SquarePants Movie 2 is a 2015 American 3D live action/animated comedy adventure film based on the cartoon television series SpongeBob SquarePants. A stand alone sequel to The SpongeBob SquarePants Movie (2004)

a evil villain pirate named Burger Beard who steals the Krabby Patty Secret Formula using a magical storybook that makes any text written upon it come true. SpongeBob, Patrick and his friends must travel to the surface to Defeat Burger Beard and get the formula back

Trivia
Just Like Scooby-Doo Camp Scare (2010), Madagascar 3 Europe's Most Wanted (2012), and Bubble Guppies: The Puppy and the Ring (2013)