An opportunistic burglary was committed so a man could provide for his child, Calderdale magistrates heard.
Scott Pearson, 36, of Crown Street, Halifax, admitted the daytime burglary at Old Lee Bank, Wheatley, Halifax.
The court was told the householder had left for work shortly before the burglary.
Unemployed Pearson was caught on camera making an unsuccessful attempt to gain entry through a side door before smashing windows to gain entry.
He stole jewellery and games worth £960 and more than £1,000 damage.
Erica Topham, mitigating, said Pearson had been out of trouble for six years and it was a one-off event.
She said he wanted to see his daughter off to school and was walking to a bus stop to see the child and his girlfriend.
An argument developed during which his girlfriend claimed he had never paid towards his daughter’s upkeep.
“He walked back up the road. It was opportunistic - he had seen the car go from the drive,” she said.
“He thought ‘I will get something, I will give it to her for the child’.”
Magistrates gave Pearson a 12 month community order during which time he has to undertake 200 hours unpaid work. He was also ordered to pay £260 compensation and a £60 victim surcharge.