He’s gone from mopping the floor with his opponents to just mopping the floor.

MMA star Conor McGregor spent the past week using his muscle for menial tasks — including taking out the trash, washing floors and polishing brass handrails — at two Brooklyn churches, a pastor told The Post.

It was court-ordered penance for his Barclays Center rampage last April.

McGregor found it “humbling” to do manual labor that didn’t involve throwing a jab, said Pastor Clive Neil (play-sparring with McGregor) at the Bedford Central Church, where the pugilist applied the elbow grease from Monday through Friday last week from 11 a.m. to 4 p.m.

“He kept on using that word — ‘humbling,’ ” the pastor said Sunday. “He was doing physical work — vacuuming, mopping, moving boxes, moving supplies, putting out the garbage and so forth.

“He was quite patient in rubbing down the brass, polishing with spray and a cloth. He has enough strength in his muscles to do that.”

The Dublin-born brawler brought an entourage of “six or seven people,’’ including a couple of “big” bodyguards who kept an eye on him, but “did not help him with any of the work,” Neil said.

Of course, the health-conscious, 154-pound lightweight fighter had his nutritionist on hand to provide him with breakfast and lunch, which included “quinoa, carrots, apple, [and] a smoothie,” according to Neil.

McGregor told the pastor that he was a Catholic and “felt good that we were accommodating him,” the Protestant preacher said.

The mixed-martial-arts champion also learned a thing or two about the Bedford-Stuyvesant neighborhood that Bedford Central calls home, Neil said.

“He told us that in Ireland, he’s known as ‘The Notorious.’ And when he came to Bed-Stuy, he recognized that this is the home of The Notorious B.I.G.,” the pastor said, referring to the late Brooklyn rapper.

McGregor was ordered to do community service for hurling a hand truck at a bus full of rival fighters during an outburst following the UFC 223 event at Barclays Center.

Additional reporting by Max Jaeger