LOS ANGELES — “Jackass” star Steve-O was sentenced Wednesday to 30 days in jail for climbing at least 100 feet up a crane in Hollywood in a protest against SeaWorld that drew dozens of emergency responders.

Steve-O, whose real name is Stephen Glover, received the sentence after pleading no contest to misdemeanor trespassing and illegal use of fireworks, Los Angeles City Attorney’s spokesman Frank Mateljan said.

Glover said in a statement the sentence makes sense because “if your goal is to make a statement about captivity, you may as well get yourself locked up!”

Glover, 41, scrambled up the crane Aug. 9 at a construction site on Sunset Boulevard. Once at the top, he lit fireworks and inflated a large killer whale balloon emblazoned with “SeaWorld Sucks.”

The protest drew a large number of emergency responders who were unsure if Glover needed rescuing. He was charged with creating a false emergency, vandalism and several fireworks violations.

He also was sentenced Wednesday to three years of probation and ordered to reimburse the city nearly $14,000 for the police and fire response.

Glover, known for his outlandish stunts in the “Jackass” TV show and movies, wore a T-shirt from the anti-Sea World documentary “Blackfish” when he scaled the crane.

Under the terms of his probation, he’ll have to stay away from the neighborhood where the incident took place, refrain from using fireworks and not perform any stunts that are likely to draw police and fire responders.

He’s scheduled to report to jail in December.