Raymond Edward Murray, 32 appeared in the Blenheim District Court on Tuesday on one charge of shoplifting, one of wilful damage and one of offensive behaviour.
According to the police summary of events Murray stole a bottle of cider valued at $8.99 from New World in Porirua about 6.30pm on October 24.
He put the bottle down his pants and made no attempt to pay for it while he was at the checkout buying cigarettes.
When he was stopped by security and the police were called he admitted to the theft.
Four days later on October 28 Murray was in Blenheim, at St Mary's School.
He was intoxicated and attempted to get into a locked classroom.
When the door didn't open he smashed a pane of glass in the door and left the school grounds.
After leaving he came across a 9-year-old girl delivering circulars.
He attempted to talk to her and hug her, then chased her when she ran away.
He had no explanation for his actions when he was spoken to by police.
Judge Barry pointed out Murray's issue with alcohol.
"You have very little recollection and are clearly an alcoholic," he said.
He sentenced him to a total of 60 hours community work and ordered him to pay reparations of $175 for the window.
- The Marlborough Express