Riot police were drafted in to help deal with a disturbance during which a man was hanging out of a second floor window, Calderdale magistrates heard.
Windows were smashed and household items were thrown onto the street from the flat rented by Robert Alan Vyse, 33, at High Street, Halifax.
He had drunk eight, three-litre bottles of cider, and was shouting he wanted to be sectioned and threatened to jump out of the flat.
James Weeks, prosecuting, said an ambulance crew were first on the scene followed by police around 8.35 pm on February 15.
Significant debris including broken glass littered the street and officers concerned for the safety of others cordoned off the area and told people to stay inside the nearby Irish Centre.
Vyse threatened to set fire to anybody who tried to enter the flat and as the situation escalated riot police were called in.
Mr Weeks said they used their shields above their heads so officers could get closer with the intention of using a taser.
Eventually the door opened and officers made their way up to the second floor where they could hear Vyse shouting.
They kicked the door open and Vyse shouted at the officers to get out or he would jump unless a WPC, who had spoken to him earlier, came and spoke to him.
She did and Vyse was then handcuffed and taken away.
“He told officer he was an alcoholic and had drunk eight three-litre bottles of cider,” said Mr Weeks.
“He was very drunk and didn’t remember throwing things out.”
Eleese Hatton, mitigating, said Vyse had lived at the property since December 1 and his landlady described him as friendly, polite and quiet.
“He has no knowledge of this offence and has a very serious issue with alcohol,” she said.
“He has blackouts, alochol problems and mental health issues. He drinks cheap cider all day, every day.”
Vyse, who is now living at a Bradford hostel and receiving help for his alcoholism, admitted criminal damage.
He was given a two year community order and ordered to pay £300 compensation.